Skip to content

Commit

Permalink
Merge branch 'main' into feature/guest-bathroom-fan-when-showering
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuo13 committed Oct 14, 2024
2 parents 2430015 + 59a0a30 commit dfc086a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 26 deletions.
3 changes: 1 addition & 2 deletions automation/fans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
- trigger: state
entity_id: switch.dimmer_dry_contact_relay_2
to: "on"
for:
minutes: 20
for: "00:20:00"
conditions: []
actions:
- action: switch.turn_off
Expand Down
3 changes: 1 addition & 2 deletions automation/motion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
entity_id: binary_sensor.4_in_1_sensor_home_security_motion_detection
from: "on"
to: "off"
for:
minutes: 3
for: "00:03:00"
conditions:
- condition: state
entity_id: light.zooz_unknown_type_a000_id_a008_level
Expand Down
11 changes: 3 additions & 8 deletions automation/sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
entity_id: binary_sensor.flood_sensor_water_leak_state
from: "off"
to: "on"
for:
seconds: 15
for: "00:00:15"
actions:
- action: notify.email
data_template:
Expand Down Expand Up @@ -44,10 +43,7 @@
- binary_sensor.zcombo_g_smoke_co_alarm_low_battery_level_3
from: "off"
to: "on"
for:
hours: 1
minutes: 0
seconds: 0
for: "01:00:00"
# Smoke alarms will start chirping the minute they reach 77% battery
# level. They will stay at 78% for several days however. Send notification
# just before they drop to 77%. Would prefer to trigger only if it's been
Expand All @@ -59,8 +55,7 @@
- sensor.zcombo_g_smoke_co_alarm_battery_level_2
- sensor.zcombo_g_smoke_co_alarm_battery_level_3
below: 78
for:
hours: 8
for: "08:00:00"
actions:
- action: notify.mobile_apps
data:
Expand Down
21 changes: 7 additions & 14 deletions automation/smoke_alarms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,42 @@
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected
to: 'on'
for:
seconds: 15
for: "00:00:15"
variables:
type_detected: 'Smoke'
location_detected: 'laundry'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected
to: 'on'
for:
seconds: 15
for: "00:00:15"
variables:
type_detected: 'Carbon monoxide'
location_detected: 'laundry'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_2
to: 'on'
for:
seconds: 15
for: "00:00:15"
variables:
type_detected: 'Smoke'
location_detected: 'hallway'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_2
to: 'on'
for:
seconds: 15
for: "00:00:15"
variables:
type_detected: 'Carbon monoxide'
location_detected: 'hallway'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3
to: 'on'
for:
seconds: 15
for: "00:00:15"
variables:
type_detected: 'Smoke'
location_detected: 'workshop'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3
to: 'on'
for:
seconds: 15
for: "00:00:15"
variables:
type_detected: 'Carbon monoxide'
location_detected: 'workshop'
Expand Down Expand Up @@ -76,8 +70,7 @@
- binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3
- binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3
to: 'on'
for:
seconds: 15
for: "00:00:15"
actions:
action: light.turn_on
data:
Expand Down

0 comments on commit dfc086a

Please sign in to comment.