Skip to content

Commit

Permalink
Implement disabling schduled irrigation
Browse files Browse the repository at this point in the history
* Added ability to disable scheduled irrigation w/o a need to turn off
  all days in schedule. IOW, allows to preserve the schedule with single
  switch disabling or enabling it (per each controller). The capability
  is provided by `hostcc/esphome-component-dynamic-on-time` component as
  of version `1.1.0`
  • Loading branch information
hostcc committed Aug 3, 2023
1 parent 81eabb4 commit ef657fd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ switch:
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
entity_category: config
- platform: template
id: lawn_sprinklers_disabled
name: "Lawn sprinklers: disable schedule"
icon: "mdi:calendar-remove"
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
entity_category: config

# Schedule, flowerbed sprinklers
- platform: template
Expand Down Expand Up @@ -110,6 +117,13 @@ switch:
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
entity_category: config
- platform: template
id: flowerbed_sprinklers_disabled
name: "Flowerbed sprinklers: disable schedule"
icon: "mdi:calendar-remove"
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
entity_category: config

number:
# Schedule, lawn sprinklers
Expand Down Expand Up @@ -165,7 +179,7 @@ number:
mode: box

external_components:
source: github://hostcc/esphome-component-dynamic-on-time@main
source: github://hostcc/esphome-component-dynamic-on-time@1.1.0

dynamic_on_time:
- id: lawn_schedule
Expand All @@ -179,6 +193,7 @@ dynamic_on_time:
fri: lawn_sprinklers_fri
sat: lawn_sprinklers_sat
sun: lawn_sprinklers_sun
disabled: lawn_sprinklers_disabled
on_time:
- logger.log:
format: 'schedule: Waiting for water tank to be full'
Expand All @@ -204,6 +219,7 @@ dynamic_on_time:
fri: flowerbed_sprinklers_fri
sat: flowerbed_sprinklers_sat
sun: flowerbed_sprinklers_sun
disabled: flowerbed_sprinklers_disabled
on_time:
- logger.log:
format: 'schedule: Waiting for water tank to be full'
Expand Down

0 comments on commit ef657fd

Please sign in to comment.