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

Cannot get a switch template working

$
0
0

Hi guys,
I have been trying to create and test a switch template using UI but have an issue.
I can turn on/off the template manually, but it does not pass on/off testing.
Also system log shows warning every minute if I use the switch template in thermostat.
Can anyone help? Thanks!

Value template:

{{ is_state_attr('climate.thermostat_1', 'hvac_action', 'heating') }}

Turn on action:

action: climate.set_temperature
data:
  temperature: 30
target:
  entity_id:
    - climate.thermostat_5
    - climate.thermostat_4
    - climate.thermostat_1
    - climate.thermostat_3
    - climate.thermostat_2

Turn off action:

action: climate.set_temperature
data:
  temperature: 10
target:
  entity_id:
    - climate.thermostat_5
    - climate.thermostat_4
    - climate.thermostat_1
    - climate.thermostat_3
    - climate.thermostat_2

11 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 106189

Trending Articles



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