diff --git a/Occupancy_Socket_Control_with_Notifications.yaml b/Occupancy_Socket_Control_with_Notifications.yaml index 82ff93a..9e28c63 100644 --- a/Occupancy_Socket_Control_with_Notifications.yaml +++ b/Occupancy_Socket_Control_with_Notifications.yaml @@ -43,15 +43,13 @@ variables: zone_entity: !input home_zone trigger: - - platform: zone + - platform: numeric_state entity_id: !input home_zone - event: leave - zone: !input home_zone + below: 1 id: home_emptied - - platform: zone + - platform: numeric_state entity_id: !input home_zone - event: enter - zone: !input home_zone + above: 0 id: someone_returned condition: []