Skip to content

Commit

Permalink
Merge pull request EverythingSmartHome#113 from EverythingSmartHome/e…
Browse files Browse the repository at this point in the history
…p1-timeouts

Add configurable timeouts for PIR and Occupancy
  • Loading branch information
EverythingSmartHome authored Oct 24, 2023
2 parents 63224ac + 1935354 commit cfa3816
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions everything-presence-one-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ binary_sensor:
id: pir_motion_sensor
device_class: motion
filters:
- delayed_off: ${pir_delay_off}
- delayed_off: !lambda 'return id(pir_off_latency).state * 1000.0;'
- platform: template
name: Occupancy
id: occupancy
device_class: occupancy
filters:
- delayed_off: ${occupancy_delay_off}
- delayed_off: !lambda 'return id(occupancy_off_latency).state * 1000.0;'
lambda: |-
if ( id(mmwave).state or id(pir_motion_sensor).state) {
return true;
Expand Down Expand Up @@ -559,6 +559,34 @@ number:
- delay: 1s
- switch.turn_on: mmwave_sensor

- platform: template
name: Occupancy off latency
icon: mdi:clock-end
entity_category: config
id: occupancy_off_latency
min_value: 1
max_value: 60
initial_value: 15
optimistic: true
step: 1
restore_value: true
unit_of_measurement: seconds
mode: slider

- platform: template
name: PIR off latency
icon: mdi:clock-end
entity_category: config
id: pir_off_latency
min_value: 1
max_value: 60
initial_value: 10
optimistic: true
step: 1
restore_value: true
unit_of_measurement: seconds
mode: slider

- platform: template
name: "Temperature Offset"
id: temperature_offset_ui
Expand Down

0 comments on commit cfa3816

Please sign in to comment.