diff options
Diffstat (limited to 'hostnix')
| -rw-r--r-- | hostnix/elmo/home-assistant.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hostnix/elmo/home-assistant.nix b/hostnix/elmo/home-assistant.nix index fa1d2fa..d17c41b 100644 --- a/hostnix/elmo/home-assistant.nix +++ b/hostnix/elmo/home-assistant.nix @@ -102,13 +102,13 @@ in brightness_mode_time_light = 3 * 60 * 60; }; - switch = [ + template = [ { - platform = "template"; - switches = { - midea_cool = { + switch = [ + { unique_id = "switch_midea_cool"; - value_template = "{{ is_state('climate.air_conditioner_1', 'cool') and state_attr('climate.air_conditioner_1', 'temperature')|float < 72 }}"; + name = "midea_cool"; + state = "{{ is_state('climate.air_conditioner_1', 'cool') and state_attr('climate.air_conditioner_1', 'temperature')|float < 72 }}"; turn_on = [ { service = "climate.set_temperature"; @@ -120,8 +120,8 @@ in } ]; turn_off = [ (ha.action.off "climate.air_conditioner_1") ]; - }; - }; + } + ]; } ]; |
