automations/areas/ceiling_off.yaml
#
# Turn off ceiling wash lights
#
# Ceiling wash lights should be off when napping or sleeping.
#
# @subscribe input_boolean.nap_mode
# @subscribe input_boolean.night_mode
#
- id: ceiling_off
alias: "Ceiling OFF"
trigger:
# When nap mode is enabled.
- platform: state
entity_id: input_boolean.nap_mode
to: 'on'
# When night mode is enabled.
- platform: state
entity_id: input_boolean.night_mode
to: 'on'
action:
# Turn off ceiling wash lights.
- service: homeassistant.turn_off
data:
entity_id:
- group.ceiling_lights
transition: 10