Skip to content

Commit

Permalink
Merge pull request #2 from hostcc/feature/disable-schedule
Browse files Browse the repository at this point in the history
Implement disabling scheduled irrigation
  • Loading branch information
hostcc authored Aug 3, 2023
2 parents 81eabb4 + ef657fd commit bb0de25
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 bb0de25

Please sign in to comment.