Fix motion detection sensor

pull/16/head
Madelena Mak 2 years ago committed by GitHub
parent 5417021181
commit bea4430721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,14 +42,11 @@ template:
# Update screen only when occupancy is detected. # Update screen only when occupancy is detected.
- trigger: - binary_sensor:
platform: time_pattern
seconds: "/5"
binary_sensor:
- name: Weatherman Motion Detected - name: Weatherman Motion Detected
unique_id: "dfa78de7-d761-425f-9731-86f1af332eac" unique_id: "dfa78de7-d761-425f-9731-86f1af332eac"
device_class: "occupancy" device_class: "occupancy"
delay_off: 5min delay_off: 1min
state: >- state: >-
{%- if states('binary_sensor.living_room_hue_sensor_motion') == 'on' or states('binary_sensor.front_door_switchbot_contact_sensor_motion_detected') == 'on' or states('binary_sensor.kitchen_counter_motion_sensor_motion') == 'on' %} {%- if states('binary_sensor.living_room_hue_sensor_motion') == 'on' or states('binary_sensor.front_door_switchbot_contact_sensor_motion_detected') == 'on' or states('binary_sensor.kitchen_counter_motion_sensor_motion') == 'on' %}
on on

Loading…
Cancel
Save