diff options
| author | Joe Mou <dev@mou.fo> | 2026-07-06 03:06:10 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-08-11 07:17:05 -0400 |
| commit | 4d186d04b5945a9c06c45cbab9c5d6c3e0b889e7 (patch) | |
| tree | 5a2c3bfcc074b3da841b4b4b68f8b43886e1ea00 /hostnix/elmo | |
| parent | ef4592c24a0c896fd4bf0059699f3ebaf79f2a11 (diff) | |
HA: Legacy switch template deprecation
Diffstat (limited to 'hostnix/elmo')
| -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") ]; - }; - }; + } + ]; } ]; |
