You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Automation for 10:00 PM tasks - This automation handles various actions that need to occur at 10 PM.
# Defines the Automation for 10:00 PM tasks triggers, conditions, and actions.
# -------------------------------------------------------------------
######################################################################
- alias: 'Shut down AMP in Living room'
id: 3b41321c-8242-4cf5-9a93-b2b7aeeb8ea0
trigger:
- platform: time
at: '22:00:00'
action:
- wait_template: >-
{{ not is_state('input_boolean.guest_mode', 'on') or is_state('group.bed', 'on') }}
- wait_template: >-
{{ not is_state('media_player.livingroomCC', 'playing') }}
- wait_template: >-
{{ not is_state('media_player.everywhere', 'playing') }}
- service: script.speech_engine
data:
call_no_announcement: 1
call_garage_check: 1
call_window_check: 1
- wait_template: >-
{{ not is_state('media_player.livingroomCC', 'playing') }}
- service: switch.turn_off
entity_id: switch.lr_amp

Powered by TurnKey Linux.