How does domoticz scripts respond to a NACK from mysensors
Moderator: leecollings
-
- Posts: 52
- Joined: Sunday 27 December 2015 19:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: The Netherlands
- Contact:
How does domoticz scripts respond to a NACK from mysensors
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 ?
- gizmocuz
- Posts: 2552
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: How does domoticz scripts respond to a NACK from mysensors
you will probably get a log line entry, but that's it
Quality outlives Quantity!
-
- Posts: 52
- Joined: Sunday 27 December 2015 19:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: The Netherlands
- Contact:
Re: How does domoticz scripts respond to a NACK from mysensors
Just did a test, turns out there is no feedback in the log about the switch not responding.

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.

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.
Who is online
Users browsing this forum: No registered users and 1 guest