PiDome Forum

PiDome platform forum.

You are not logged in.

#1 2015-05-30 11:26:10

philpritchard
Member
Registered: 2015-05-30
Posts: 2

Almost there.... data working in one direction

hello just getting my head around this, fantastic work so far.. keep it up.. thankyou
having some trouble with mysensors and serial gw. almost working or half working.. i think i can see the problem just don't know where to change it.
i have serial gw connected to rpi, and mysensors relay with buttons the relay and buttons and gateway work sending through serial terminal all good.
the serial connection to the rpi and pidome work good.

Screenshot_from_2015_05_30_20_16_16.jpg

the buttons on the relay module change the value in [ control/views] [ sensors ] [ truck relay ] and you can see in in the sensor logs as the image shows.

but if i try and change the buttons in pidome... it sends a t=24 and i think it should be a 2.
0;0;3;0;9;send: 0-0-10-10 s=0,c=1,t=24,pt=0,l=1,st=ok:0

im not sure what version im using its not very old

any help would be much appreciated.

thanks again..

Phil

Offline

#2 2015-05-30 14:11:44

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: Almost there.... data working in one direction

The t parameter is the sub-type which is being used

From mysensors:
s=child-sensor-id,
c=message-type
t=sub-type
pt=payload-type (see MyMessage.h)
l=length

The sub types are the types from this list:
http://www.mysensors.org/download/serial_api_14

Have you used V_LIGHT or V_VAR1 ?

Offline

#3 2015-05-31 02:06:35

philpritchard
Member
Registered: 2015-05-30
Posts: 2

Re: Almost there.... data working in one direction

thanks....
your right, i had the V_LIGHT and S_LIGHT switched around i was thinking V=variable and S=switch.
works very well now. strange it came out with t=24..

why would this only work once if the light is on and only once when i save it..
Screenshot_from_2015_05_31_11_05_00.jpg

is it possible to check for the presence of a sensor, i want to have a relay module and a gateway in my truck to control some work lights on the tray and monitor the switches on the tool boxe doors
and movement sensors on the house able to turn the lights on and warn when the tool boxes open.


hope im not being a pain in the ass..

thanks again for the help

phil

Offline

#4 2017-07-09 10:54:01

krdmtpNof
Member
Registered: 2017-07-09
Posts: 20

Re: Almost there.... data working in one direction

payday loans baton rouge
<a href="http://payday1000loans3000online.com/#bestcash"> cash loans </a>
get rid of payday loans
&lt;a href=&quot;http://payday1000loans3000online.com/#loan&quot;&gt; online payday loans &lt;/a&gt;
next payday loans
short term loans
top payday loans

Offline

Board footer