Unable to control Relay With Button Actuator
Posted: Monday 18 January 2016 18:45
Hello,
I'm just beginning to work with Domoticz and MySensors.
I Build a few sensors like pressure, temp, humidity..all working fine.
With the Relay Actuator I got some difficulties to have it controlled by Domoticz. When I press the button attached to the sensor the relay switches and serial output is generated ( see logging below)
Hope anyone could help me out, some hints or a working sketch would be very appreciated!
Setup:
Domoticz 2.4231 running on a Windows machine.
Arduino Pro mini 3.3v with NRF24L01+ for Gateway and sensors with caps ( tested multiple Nrf's )
Voltage 3,3v verified on NRF
Default MySensors sketch for Serial gateway and Relay With Button Actuator
Act is disabled on the switch in Domoticz otherwise i got a error sending...
When i tick the button on the sensor, the status is updated in Domoticz
Serial output:
Gateway startup:
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
0;0;3;0;14;Gateway startup complete.
Relay sensor startup:
send: 0-0-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.1
send: 0-0-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
repeater started, id=0, parent=0, distance=0
send: 0-0-0-0 s=255,c=3,t=11,pt=0,l=14,sg=0,st=ok:Relay & Button
send: 0-0-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
send: 0-0-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
Press the physical button on the sensor:
send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
This is an ack from gateway
Incoming change for sensor:1, New status: 1
Press again:
send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
This is an ack from gateway
Incoming change for sensor:1, New status: 0
Gateway Response when pressing the sensor button:
0;0;3;0;9;read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
0;0;3;0;9;send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
0;1;1;0;2;1
Press again:
0;0;3;0;9;read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
0;0;3;0;9;send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
0;1;1;0;2;0
Thanks in advance!
Erik
I'm just beginning to work with Domoticz and MySensors.
I Build a few sensors like pressure, temp, humidity..all working fine.
With the Relay Actuator I got some difficulties to have it controlled by Domoticz. When I press the button attached to the sensor the relay switches and serial output is generated ( see logging below)
Hope anyone could help me out, some hints or a working sketch would be very appreciated!
Setup:
Domoticz 2.4231 running on a Windows machine.
Arduino Pro mini 3.3v with NRF24L01+ for Gateway and sensors with caps ( tested multiple Nrf's )
Voltage 3,3v verified on NRF
Default MySensors sketch for Serial gateway and Relay With Button Actuator
Act is disabled on the switch in Domoticz otherwise i got a error sending...
When i tick the button on the sensor, the status is updated in Domoticz
Serial output:
Gateway startup:
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
0;0;3;0;14;Gateway startup complete.
Relay sensor startup:
send: 0-0-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.1
send: 0-0-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
repeater started, id=0, parent=0, distance=0
send: 0-0-0-0 s=255,c=3,t=11,pt=0,l=14,sg=0,st=ok:Relay & Button
send: 0-0-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
send: 0-0-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
Press the physical button on the sensor:
send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
This is an ack from gateway
Incoming change for sensor:1, New status: 1
Press again:
send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
This is an ack from gateway
Incoming change for sensor:1, New status: 0
Gateway Response when pressing the sensor button:
0;0;3;0;9;read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
0;0;3;0;9;send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
0;1;1;0;2;1
Press again:
0;0;3;0;9;read: 0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
0;0;3;0;9;send: 0-0-0-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
0;1;1;0;2;0
Thanks in advance!
Erik