Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103101

Directly pass sensor value to the entity

$
0
0

Hi!

Is there an option to pass value of sensor directly to the switch entity state?
Like

action:
  do_magic:
    entity_id: switch.my_cool_socket
    value: {{ states('sensor.my_cool_calculated_sensor') }}

instead of writing long story with choose or if-then-else.
I want to use template sensor which has on/off values to control my power socket.

Thank you.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 103101

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>