mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
34 lines
832 B
YAML
34 lines
832 B
YAML
alias: Handle Clints Meds
|
|
id: automation_handle_clints_meds
|
|
description: 'Manage the booleans associated with Clints meds'
|
|
trigger:
|
|
- id: homeassistant_start
|
|
platform: homeassistant
|
|
event: start
|
|
|
|
- id: boolean_changed
|
|
platform: state
|
|
entity_id:
|
|
- input_boolean.clint_needs_am_meds
|
|
- input_boolean.clint_needs_pm_meds
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id:
|
|
- input_boolean.clint_needs_am_meds
|
|
- input_boolean.clint_needs_pm_meds
|
|
state: 'off'
|
|
|
|
sequence:
|
|
- service: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.clint_needs_meds
|
|
|
|
default:
|
|
- service: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.clint_needs_meds |