Page 1 of 1

How does domoticz scripts respond to a NACK from mysensors

Posted: Sunday 13 November 2016 7:59
by Rolo
I have some mysensors 2.0 nodes, working fine. For example a outdoor licht switch, just on/off. When I switch the light in the webinterface and the node is not responding the interface gives a error pop-up to indicate the command has not reached the node. This is nice, you know that there is a problem. My question is : how is this handled when switching from a LUA script, there is no human reading the error, wil the script just skip the action or wil it retry the action for some time ? Or should I program the error handing myself in the LUA script ?

Re: How does domoticz scripts respond to a NACK from mysensors

Posted: Sunday 13 November 2016 8:51
by gizmocuz
you will probably get a log line entry, but that's it

Re: How does domoticz scripts respond to a NACK from mysensors

Posted: Sunday 13 November 2016 9:29
by Rolo
Just did a test, turns out there is no feedback in the log about the switch not responding.

Image

First the mysensors node is on and you see the switches (Unit 1 and Unit 2) in the log.
Then I power down the mysensors node and that's the yellow section in the log, you see the script firing but no switch action or error about not responding.

So now I know that the script does continue when a mysensors node is not responding but it takes more script work to act on this failure.
I could read the status after a command and when it's not in the desired state try to switch it again, or send an notification.