Hi.
Most of my execution rules are LOOP rules. That means the state of the devices is checked once a second (Do not log this event checked, of course). Why? Because it makes everything much simpler and reliable as the states are checked every second. In order not to flood the network (MQTT, Z-wave...) by sending out commands every second for every LOOP rule, the target was always a Virtual Device. Then there was 2 EVENTS that turned on/off the real device. OK, no problems there, everything works for years without any problem.
But to eliminate the extra virtual devices and EVENTS I tried to add a line to eliminate loop sending out every second by adding AND IF "IS NOT EQUAL" to a same Control Device.
The test EVENT:
It works perfectly. Will send out command to a control device only on a state change. Not every second! I would just like to ask if this is the correct approach, or should I expect any issues later on.
Thank you
Br,
Dali
Most of my execution rules are LOOP rules. That means the state of the devices is checked once a second (Do not log this event checked, of course). Why? Because it makes everything much simpler and reliable as the states are checked every second. In order not to flood the network (MQTT, Z-wave...) by sending out commands every second for every LOOP rule, the target was always a Virtual Device. Then there was 2 EVENTS that turned on/off the real device. OK, no problems there, everything works for years without any problem.
But to eliminate the extra virtual devices and EVENTS I tried to add a line to eliminate loop sending out every second by adding AND IF "IS NOT EQUAL" to a same Control Device.
The test EVENT:
It works perfectly. Will send out command to a control device only on a state change. Not every second! I would just like to ask if this is the correct approach, or should I expect any issues later on.
Thank you
Br,
Dali
Comment