Feature: Schedule devices turning on/off
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-17 00:01:13 +01:00
parent 0154d19b71
commit db17b68e90
9 changed files with 144 additions and 3 deletions

View File

@@ -117,8 +117,18 @@ devices:
timeout: 60
bedroom_air_filter:
&air_filter bedroom_air_filter:
!AirFilter
name: "Air Filter"
room: "Bedroom"
topic: "pico/filter/test"
# Run the air filter everyday for 19:00 to 20:00
schedule:
0 0 19 * * *:
on:
- *air_filter
0 0 20 * * *:
off:
- *air_filter

View File

@@ -89,7 +89,7 @@ devices:
topic: "zigbee2mqtt/workbench/charger"
timeout: 5
workbench_outlet:
&outlet workbench_outlet:
!IkeaOutlet
name: "Outlet"
room: "Workbench"
@@ -121,4 +121,13 @@ devices:
!AirFilter
name: "Air Filter"
room: "Bedroom"
topic: "pio/filter/test"
topic: "pico/filter/test"
# schedule:
# 0/30 * * * * *:
# on:
# - *outlet
#
# 15/30 * * * * *:
# off:
# - *outlet