mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 11:16:37 +00:00
Switching to VSCode and adding in some comments
This commit is contained in:
@@ -4,10 +4,16 @@
|
||||
## Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
######################################################################################################
|
||||
|
||||
# Set the AMP settings
|
||||
amp_settings:
|
||||
# Define the sequence of actions to be performed
|
||||
sequence:
|
||||
# Set the volume for the specified media players
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
# Set the entity ID for the media players to be controlled
|
||||
# If the "media_player" variable is not defined, set it to a list of media player entities
|
||||
# If the "media_player" variable is a list, convert it to a comma-separated string
|
||||
entity_id: >-
|
||||
{% if media_player | length == 0 %}
|
||||
{% set media_player = [
|
||||
@@ -22,6 +28,9 @@ amp_settings:
|
||||
{% endif %}
|
||||
|
||||
{{ media_player }}
|
||||
# Set the volume level for the media players
|
||||
# If the "volume_level" variable is not defined, set it based on the current time of day
|
||||
# Otherwise, use the value of the "volume_level" variable
|
||||
volume_level: >-
|
||||
{% if volume_level is none %}
|
||||
{% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %}
|
||||
@@ -34,13 +43,13 @@ amp_settings:
|
||||
{% endif %}
|
||||
{{volume_level}}
|
||||
|
||||
# If the "switch.lr_amp" switch is off and the "group.bed" group is off, turn on the "switch.lr_amp" switch
|
||||
- condition: state
|
||||
entity_id: switch.lr_amp
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: group.bed
|
||||
state: 'off'
|
||||
|
||||
- service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.lr_amp
|
||||
|
@@ -15,9 +15,13 @@
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
######################################################################################################
|
||||
|
||||
# Define the "speech_engine" script
|
||||
speech_engine:
|
||||
# Set the mode to "queued"
|
||||
mode: queued
|
||||
# Define the sequence of actions to be performed
|
||||
sequence:
|
||||
# If the state of the "group.family" entity is "home" or the state of the "input_boolean.guest_mode" entity is "on", proceed with the script
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
@@ -27,8 +31,12 @@ speech_engine:
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'on'
|
||||
|
||||
# Run the "script.speech_processing" service with the specified media player and speech message
|
||||
- service: script.speech_processing
|
||||
data:
|
||||
# Set the entity ID for the media players to be controlled
|
||||
# If the "media_player" variable is not defined, set it to a list of media player entities
|
||||
# If the "media_player" variable is a list, convert it to a comma-separated string
|
||||
media_player: >-
|
||||
{% if media_player | length == 0 %}
|
||||
{% set media_player = [
|
||||
@@ -39,8 +47,10 @@ speech_engine:
|
||||
{% set media_player = media_player|join(', ') %}
|
||||
{% endif %}
|
||||
{{ media_player }}
|
||||
# Include the speech message from the "speech/briefing.yaml" template file
|
||||
speech_message: !include ../templates/speech/briefing.yaml
|
||||
|
||||
# Turn off the "input_boolean.home_stats" and "input_boolean.responsibilities" input booleans
|
||||
- service: input_boolean.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
|
@@ -330,6 +330,9 @@ tweet_youtube_engine_setup:
|
||||
],
|
||||
"GardenLED": [
|
||||
"LOOK! We Got MORE Solar LED Garden Lights! (https://youtube.com/shorts/TigbEg3YIZI)"
|
||||
],
|
||||
"RokuOnHA": [
|
||||
"Adding Roku to Home Assistant (https://youtu.be/XvrVhsP1bB4)"
|
||||
]
|
||||
|
||||
} %}
|
||||
|
Reference in New Issue
Block a user