You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggest editing opensprinkler binding to set autoupdate to off by default for station control channels.
Expected Behavior
Rule created to switch on station 2 when station 1 is commanded off.
Should result in station 2 turning on whenever station 1 is turned off.
Current Behavior
station2 appears (in the log) to turn on and back off again. In the opensprinkler interface, station 2 is not turned on at all, but instead results in a "scheduled" status to run 36 hours in the future.
Possible Solution
After adding autoupdate="false" to the items, the rule operates as expected. I suspect the problem arises when the binding almost simultaneously sends the commands to stop station 1 and start station 2. However, when autoupdate is forced off, the rule doesn't trigger until after the opensprinkler device has confirmed successful completion of stopping station 1, so the command to start station 2 no longer conflicts.
Steps to Reproduce (for Bugs)
Create rule as follows:
rule "run station2 after running station1"
when
Item station1 changed from ON to OFF
then
station2.sendCommand(ON)
end
using the openhab interface (BasicUI), turn on station 1.
still using the openhab interface, turn off station 1.
Added the change as it was easy to find. Veto means it will default to 'false' and you can over ride this with the metadata to re-enable it if anyone wants to.
Suggest editing opensprinkler binding to set autoupdate to off by default for station control channels.
Expected Behavior
Rule created to switch on station 2 when station 1 is commanded off.
Should result in station 2 turning on whenever station 1 is turned off.
Current Behavior
station2 appears (in the log) to turn on and back off again. In the opensprinkler interface, station 2 is not turned on at all, but instead results in a "scheduled" status to run 36 hours in the future.
Possible Solution
After adding
autoupdate="false"
to the items, the rule operates as expected. I suspect the problem arises when the binding almost simultaneously sends the commands to stop station 1 and start station 2. However, when autoupdate is forced off, the rule doesn't trigger until after the opensprinkler device has confirmed successful completion of stopping station 1, so the command to start station 2 no longer conflicts.Steps to Reproduce (for Bugs)
This should result in the incorrect behaviour.
Context
https://community.openhab.org/t/opensprinkler-stations-jumping-straight-back-to-off-when-on-command-sent/130178
Your Environment
The text was updated successfully, but these errors were encountered: