Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Switch Shelly By Netatmo
- trigger:
- - platform: template
- value_template: '{{ states.climate.netatmo_smart_thermostat.attributes.temperature != states.climate.netatmo_smart_thermostat.attributes.current_temperature }}'
- action:
- service_template: >
- {% if states.climate.netatmo_smart_thermostat.attributes.temperature > states.climate.netatmo_smart_thermostat.attributes.current_temperature %} switch.turn_on
- {% elif states.climate.netatmo_smart_thermostat.attributes.temperature < states.climate.netatmo_smart_thermostat.attributes.current_temperature %} switch.turn_off
- {% endif %}
- entity_id: switch.shelly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement