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

Add a link between command (params) & states? #501

Open
mStirner opened this issue Sep 26, 2024 · 1 comment
Open

Add a link between command (params) & states? #501

mStirner opened this issue Sep 26, 2024 · 1 comment

Comments

@mStirner
Copy link
Member

Add a link between params & states?
A state could be used to keep track of setted parameters/values.

E.g. Temperature.
You set the tempretature via Command parameter in the range of 16-32°C.
The command is send to the device, and this "should" temperature is then setted as state.

Then there needs a link between the command "set temperature" & the state temperature.

Originally posted by @mStirner in OpenHausIO/frontend#141 (comment)

@mStirner
Copy link
Member Author

mStirner commented Sep 26, 2024

A quick guess how it could be done: command & state alias.
If they are both the same, the (can) are linked.
Either automatically or with labels:

oh.link[0].state=POWER
oh.link[0].cmd=POWER

-- or --

oh.links[].enabled=POWER

But what then?
When commands & states are linked, what now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant