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

Rules - map variables to each other? #1863

Closed
flatsiedatsie opened this issue May 7, 2019 · 1 comment
Closed

Rules - map variables to each other? #1863

flatsiedatsie opened this issue May 7, 2019 · 1 comment

Comments

@flatsiedatsie
Copy link
Contributor

This may be a little far out, but I'd be curious if there are any ways to generate this functionality.

  • I have a device with a humidity sensor ( between 0 and 100% ).
  • I have a device with a servo that can rotate ( between 0 and 100% )

I'd like to map the value of the first to the value of the second, so that when the first one changes, the second one follows. For example, if I glue a little paper arrow to the servo I could make an analog data dashboard.

This functionality could be used in many more situations though.

  • Turn an air fan higher the warmer/dustier it gets.
  • Turn a light brighter the darker it gets.

A user may also want to invert this.

  • Increase the speed of the bubble blowing machine the less people are in the room.

Thinking out loud, a hack might be to create 10 rules, each going something like:
if humidity > 90, then set servo to 95%
if humidty > 80, then set servo to 85%
etc

mapping-vars

I'd be curious if functionality like this would be interesting, or if it would just complicate things (pun intended).

@mrstegeman
Copy link
Contributor

I believe this is a duplicate of #805.

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

No branches or pull requests

2 participants