Switching to VSCode and adding in some comments

This commit is contained in:
ccostan 2022-12-19 18:44:47 -05:00
parent 78157d8ad5
commit eb3e7553a6
12 changed files with 62 additions and 14 deletions

View File

@ -1 +1 @@
2022.11.1 2022.12.4

5
config/.vscode/settings.json vendored Executable file
View File

@ -0,0 +1,5 @@
{
"files.associations": {
"*.yaml": "home-assistant"
}
}

View File

@ -83,6 +83,7 @@
- switch.foyer_outlet - switch.foyer_outlet
- switch.den_outlet - switch.den_outlet
- switch.living_room_outlet - switch.living_room_outlet
- switch.living_room_tv_outlet
- service: light.turn_on - service: light.turn_on
entity_id: entity_id:
- light.living_room_accents - light.living_room_accents

View File

@ -2,35 +2,46 @@
## Shut it all down. No one is here ## Shut it all down. No one is here
###################################################################### ######################################################################
# Define an alias for this automation
- alias: 'Away Mode' - alias: 'Away Mode'
# Give the automation a unique ID
id: 712e845a-9d72-4993-b8af-890b167c807b id: 712e845a-9d72-4993-b8af-890b167c807b
# Set the mode to "single"
mode: single mode: single
# Set the trigger for the automation
trigger: trigger:
# The automation will be triggered when the state of the "binary_sensor.downstairs_nest_away" entity changes to "on"
- platform: state - platform: state
entity_id: binary_sensor.downstairs_nest_away entity_id: binary_sensor.downstairs_nest_away
to: 'on' to: 'on'
# The automation will also be triggered when the state of the "group.family" entity changes to "not_home"
- platform: state - platform: state
entity_id: group.family entity_id: group.family
to: 'not_home' to: 'not_home'
# Set the conditions for the automation to run
condition: condition:
# The automation will only run if the state of the "group.family" entity is "not_home"
- condition: state - condition: state
entity_id: group.family entity_id: group.family
state: 'not_home' state: 'not_home'
# The automation will also only run if the state of the "input_boolean.guest_mode" entity is "off"
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: 'off'
# Set the actions to be performed by the automation
action: action:
# Run the "script.interior_off" service
- service: script.interior_off - service: script.interior_off
# Turn off the "switch.back_landscaping" switch
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.back_landscaping entity_id: switch.back_landscaping
# Arms Alexa Guard unless Guest Mode is on. Disarms in the Announcements.yaml # Arm the "alarm_control_panel.alexa_guard" alarm unless the "input_boolean.guest_mode" entity is "on"
- condition: template - condition: template
value_template: > value_template: >
{{ states.input_boolean.guest_mode.state != "on" }} {{ states.input_boolean.guest_mode.state != "on" }}
- service: alarm_control_panel.alarm_arm_away - service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.alexa_guard entity_id: alarm_control_panel.alexa_guard

View File

@ -2,22 +2,30 @@
## Time to work - Set it up! ## Time to work - Set it up!
###################################################################### ######################################################################
# Define an alias for this automation
- alias: Time to Work - alias: Time to Work
# Give the automation a unique ID
id: 5ccdc0c7-5a90-4d0d-b3dd-d855fa6cf77d id: 5ccdc0c7-5a90-4d0d-b3dd-d855fa6cf77d
# Set the trigger for the automation
trigger: trigger:
# The automation will be triggered when the state of the "input_boolean.work" entity changes from "off" to "on"
- platform: state - platform: state
entity_id: input_boolean.work entity_id: input_boolean.work
to: 'on' to: 'on'
from: 'off' from: 'off'
# Set the actions to be performed by the automation
action: action:
# Turn off the "light.dinette_lights", "light.kitchen_lights", and "light.living_room_lights" lights
- service: light.turn_off - service: light.turn_off
entity_id: entity_id:
- light.dinette_lights - light.dinette_lights
- light.kitchen_lights - light.kitchen_lights
- light.living_room_lights - light.living_room_lights
# Turn on the "light.office_lamp" light
- service: light.turn_on - service: light.turn_on
entity_id: entity_id:
- light.office_lamp - light.office_lamp
# Turn off the "input_boolean.work" entity
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.work entity_id: input_boolean.work

View File

@ -11,6 +11,7 @@ Interior Switches:
- switch.den_outlet - switch.den_outlet
- switch.living_room_outlet - switch.living_room_outlet
- switch.living_room_outlet_2 - switch.living_room_outlet_2
- switch.living_room_tv_outlet
Kitchen Accents: Kitchen Accents:
entities: entities:

View File

@ -21,13 +21,13 @@ automation:
mode: single mode: single
trigger: trigger:
- platform: state - platform: state
entity_id: vacuum.carlo_neato entity_id: vacuum.neato_vac
to: 'cleaning' to: 'cleaning'
condition: condition:
- condition: numeric_state - condition: numeric_state
entity_id: vacuum.carlo_neato entity_id: vacuum.neato_vac
attribute: battery_level attribute: battery_level
below: 20 below: 20
@ -48,7 +48,7 @@ automation:
"Everyday I have the Neato Botvac go out and clean the house on its own.", "Everyday I have the Neato Botvac go out and clean the house on its own.",
"Since we have a cat that sheds all day, we have Neato Vacuum go out daily to clean.", "Since we have a cat that sheds all day, we have Neato Vacuum go out daily to clean.",
"Time to recharge the Neato Vacuum." "Time to recharge the Neato Vacuum."
] | random + " Battery Level:{{states.vacuum.carlo_neato.attributes.battery_level }} #Robots"}} ] | random + " Battery Level:{{states.vacuum.neato_vac.attributes.battery_level }} #Robots"}}
image: >- image: >-
{{ [ {{ [
"/config/www/custom_ui/floorplan/images/branding/neato.png" "/config/www/custom_ui/floorplan/images/branding/neato.png"
@ -63,14 +63,14 @@ automation:
id: 6548de52-a4a4-4df2-9d66-9c2c15577a7e id: 6548de52-a4a4-4df2-9d66-9c2c15577a7e
trigger: trigger:
- platform: state - platform: state
entity_id: vacuum.carlo_neato entity_id: vacuum.neato_vac
to: 'error' to: 'error'
- platform: event - platform: event
event_type: event_did_someone_help_neato_loop event_type: event_did_someone_help_neato_loop
condition: condition:
- condition: state - condition: state
entity_id: vacuum.carlo_neato entity_id: vacuum.neato_vac
state: 'error' state: 'error'
action: action:
@ -81,7 +81,7 @@ automation:
- service: script.speech_engine - service: script.speech_engine
data: data:
value1: > value1: >
{% set error = states.vacuum.carlo_neato.attributes['status'] %} {% set error = states.vacuum.neato_vac.attributes['status'] %}
{{ [ {{ [
"Neato is asking for help. The error reported is " ~ error + " . Please find him and help him.", "Neato is asking for help. The error reported is " ~ error + " . Please find him and help him.",
"Please be nice and help Neato. He is complaining about " ~ error + ".", "Please be nice and help Neato. He is complaining about " ~ error + ".",
@ -90,15 +90,15 @@ automation:
] | random }} ] | random }}
- service: vacuum.locate - service: vacuum.locate
entity_id: vacuum.carlo_neato entity_id: vacuum.neato_vac
- service: script.notify_engine - service: script.notify_engine
data: data:
title: 'Help Neato' title: 'Help Neato'
value1: "{{ states.vacuum.carlo_neato.attributes['status'] }}" value1: "{{ states.vacuum.neato_vac.attributes['status'] }}"
who: 'family' who: 'family'
ios_category: 'camera' ios_category: 'camera'
camera_entity: 'camera.carlo_neato_cleaning_map' camera_entity: 'camera.neato_vac_cleaning_map'
content_type: 'jpeg' content_type: 'jpeg'
apns_id: 'information' apns_id: 'information'

View File

@ -4,10 +4,16 @@
## Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig ## Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
###################################################################################################### ######################################################################################################
# Set the AMP settings
amp_settings: amp_settings:
# Define the sequence of actions to be performed
sequence: sequence:
# Set the volume for the specified media players
- service: media_player.volume_set - service: media_player.volume_set
data: 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: >- entity_id: >-
{% if media_player | length == 0 %} {% if media_player | length == 0 %}
{% set media_player = [ {% set media_player = [
@ -22,6 +28,9 @@ amp_settings:
{% endif %} {% endif %}
{{ media_player }} {{ 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: >- volume_level: >-
{% if volume_level is none %} {% if volume_level is none %}
{% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %} {% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %}
@ -34,13 +43,13 @@ amp_settings:
{% endif %} {% endif %}
{{volume_level}} {{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 - condition: state
entity_id: switch.lr_amp entity_id: switch.lr_amp
state: 'off' state: 'off'
- condition: state - condition: state
entity_id: group.bed entity_id: group.bed
state: 'off' state: 'off'
- service: switch.turn_on - service: switch.turn_on
data: data:
entity_id: switch.lr_amp entity_id: switch.lr_amp

View File

@ -15,9 +15,13 @@
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
###################################################################################################### ######################################################################################################
# Define the "speech_engine" script
speech_engine: speech_engine:
# Set the mode to "queued"
mode: queued mode: queued
# Define the sequence of actions to be performed
sequence: 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 - condition: or
conditions: conditions:
- condition: state - condition: state
@ -27,8 +31,12 @@ speech_engine:
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'on' state: 'on'
# Run the "script.speech_processing" service with the specified media player and speech message
- service: script.speech_processing - service: script.speech_processing
data: 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: >- media_player: >-
{% if media_player | length == 0 %} {% if media_player | length == 0 %}
{% set media_player = [ {% set media_player = [
@ -39,8 +47,10 @@ speech_engine:
{% set media_player = media_player|join(', ') %} {% set media_player = media_player|join(', ') %}
{% endif %} {% endif %}
{{ media_player }} {{ media_player }}
# Include the speech message from the "speech/briefing.yaml" template file
speech_message: !include ../templates/speech/briefing.yaml 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 - service: input_boolean.turn_off
data: data:
entity_id: entity_id:

View File

@ -330,6 +330,9 @@ tweet_youtube_engine_setup:
], ],
"GardenLED": [ "GardenLED": [
"LOOK! We Got MORE Solar LED Garden Lights! (https://youtube.com/shorts/TigbEg3YIZI)" "LOOK! We Got MORE Solar LED Garden Lights! (https://youtube.com/shorts/TigbEg3YIZI)"
],
"RokuOnHA": [
"Adding Roku to Home Assistant (https://youtu.be/XvrVhsP1bB4)"
] ]
} %} } %}

View File

@ -9,6 +9,6 @@
"S03E01", "Bearnews5", "Bearnews6", "Bearnews7", "S03E02", "S03E03", "Logger", "SolarPalmLight", "5TipsToLevelUp", "AlexaMusicCommands", "S03E01", "Bearnews5", "Bearnews6", "Bearnews7", "S03E02", "S03E03", "Logger", "SolarPalmLight", "5TipsToLevelUp", "AlexaMusicCommands",
"SolarFountainOKMEE", "NoCloudGaradget", "AlexaGuardMediaPlayer", "LightningSensor", "LEDBackboard", "CuckooClock", "NodeAnchors", "yahoostocks", "SolarFountainOKMEE", "NoCloudGaradget", "AlexaGuardMediaPlayer", "LightningSensor", "LEDBackboard", "CuckooClock", "NodeAnchors", "yahoostocks",
"AugustBatteries", "Remote_Finder", "VideoProjectionMappingDemo", "FeedTheDog", "AlexaGiftNotifications","iPhoneDuplicates", "NotifyScript", "WeightLossJourney", "AugustBatteries", "Remote_Finder", "VideoProjectionMappingDemo", "FeedTheDog", "AlexaGiftNotifications","iPhoneDuplicates", "NotifyScript", "WeightLossJourney",
"SnapPower", "LocalControl", "TossingWink", "EnergyDashboard", "IOSBrokeNoifications", "SolarDriveway", "UPS_Replacement", "VillaNERI", "GardenLED" "SnapPower", "LocalControl", "TossingWink", "EnergyDashboard", "IOSBrokeNoifications", "SolarDriveway", "UPS_Replacement", "VillaNERI", "GardenLED", "RokuOnHA"
] %} ] %}
{{ pick|random }} {{ pick|random }}

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 KiB