Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opensprinkler] Sequencing station commands can lead to unexpected behaviour unless autoupdate='false' #11815

Closed
raaahbin opened this issue Dec 19, 2021 · 1 comment · Fixed by #11816
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@raaahbin
Copy link

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)

  1. Create rule as follows:
rule "run station2 after running station1"
when
	Item station1 changed from ON to OFF
then
	station2.sendCommand(ON)
end
  1. using the openhab interface (BasicUI), turn on station 1.
  2. still using the openhab interface, turn off station 1.

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

  • Versions used: openhab 3.1.0, 3.2.0M5
  • Environment name and version: opensprinkler hardware version 3.1 - DC; firmware 2.1.9 (9)
  • Operating System and version: openhab running on MacOS 10.15.7
@raaahbin raaahbin added the bug An unexpected problem or unintended behavior of an add-on label Dec 19, 2021
@Skinah
Copy link
Contributor

Skinah commented Dec 19, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants