mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
35 lines
863 B
YAML
35 lines
863 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:
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.clint_needs_meds
|
|
|
|
default:
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.clint_needs_meds
|