From 0ed7d094a5e5b3c220765fc2d3707bd0f6f61e7c Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 24 Jan 2021 14:47:33 +0000 Subject: [PATCH] Fix Hue sensor templates --- zigbee2mqtt/z2m-hue-motion-sensor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zigbee2mqtt/z2m-hue-motion-sensor.yaml b/zigbee2mqtt/z2m-hue-motion-sensor.yaml index 59f4ed7..15d79c5 100644 --- a/zigbee2mqtt/z2m-hue-motion-sensor.yaml +++ b/zigbee2mqtt/z2m-hue-motion-sensor.yaml @@ -65,7 +65,7 @@ action: - choose: - conditions: - condition: template - value_template: {{ trigger.to_state.state == "on" }} + value_template: "{{ trigger.to_state.state == 'on' }}" - condition: numeric_state entity_id: !input motion_sensor attribute: illuminance_lux @@ -79,7 +79,7 @@ action: brightness_pct: !input brightness - conditions: - condition: template - value_template: {{ trigger.to_state.state == "off" }} + value_template: "{{ trigger.to_state.state == 'off' }}" sequence: - service: light.turn_off target: !input target_lights