Remove long commented-out code

This commit is contained in:
2023-04-21 14:29:03 -04:00
parent 6dcfcb9ccd
commit 6c95ac9888

View File

@ -290,278 +290,6 @@ notify:
- service: alexa_media_living_room_echo_dot - service: alexa_media_living_room_echo_dot
- service: alexa_media_basement_echo_dot - service: alexa_media_basement_echo_dot
# The below was the initial attempt at day/night volume handling.
# I am keeping it here in case I decide I want to use it, but for now I think I have a better solution.
# automation:
# - id: a3bfc13c-b01f-4b85-8e47-b45cd173a774
# alias: 'Speaker Volume Handling'
# mode: parallel
# max: 12
# trigger:
# - platform: state
# entity_id: input_number.basement_echo_dot_day_volume
# for:
# seconds: 1
# id: basement-echo-day
# - platform: state
# entity_id: input_number.basement_echo_dot_night_volume
# for:
# seconds: 1
# id: basement-echo-night
# - platform: state
# entity_id: input_number.basement_google_speaker_day_volume
# for:
# seconds: 1
# id: basement-google-day
# - platform: state
# entity_id: input_number.basement_google_speaker_night_volume
# for:
# seconds: 1
# id: basement-google-night
# - platform: state
# entity_id: input_number.living_room_echo_dot_day_volume
# for:
# seconds: 1
# id: living-room-echo-day
# - platform: state
# entity_id: input_number.living_room_echo_dot_night_volume
# for:
# seconds: 1
# id: living-room-echo-night
# - platform: state
# entity_id: input_number.master_bedroom_echo_dot_day_volume
# for:
# seconds: 1
# id: master-bedroom-echo-day
# - platform: state
# entity_id: input_number.master_bedroom_echo_dot_night_volume
# for:
# seconds: 1
# id: master-bedroom-echo-night
# - platform: state
# entity_id: input_number.emma_bedroom_google_speaker_day_volume
# for:
# seconds: 1
# id: emma-bedroom-google-day
# - platform: state
# entity_id: input_number.emma_bedroom_google_speaker_night_volume
# for:
# seconds: 1
# id: emma-bedroom-google-night
# - platform: state
# entity_id: input_number.kallen_bedroom_google_speaker_day_volume
# for:
# seconds: 1
# id: kallen-bedroom-google-day
# - platform: state
# entity_id: input_number.kallen_bedroom_google_speaker_night_volume
# for:
# seconds: 1
# id: kallen-bedroom-google-night
# action:
# - choose:
# - conditions:
# - condition: trigger
# id: basement-echo-day
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.basement_echo_dot
# data:
# volume_level: "{{ states('input_number.basement_echo_dot_day_volume') }}"
# - conditions:
# - condition: trigger
# id: basement-echo-night
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'on'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.basement_echo_dot
# data:
# volume_level: "{{ states('input_numnber.basement_echo_dot_night_volume') }}"
# - conditions:
# - condition: trigger
# id: basement-google-day
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.basement_google_speaker
# data:
# volume_level: "{{ states('input_number.basement_google_speaker_day_volume') }}"
# - conditions:
# - condition: trigger
# id: basement-google-night
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'on'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.basement_google_speaker
# data:
# volume_level: "{{ states('input_number.basement_google_speaker_night_volume') }}"
# - conditions:
# - condition: trigger
# id: living-room-echo-day
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.living_room_echo_dot
# data:
# volume_level: "{{ states('input_number.living_room_echo_dot_day_volume') }}"
# - conditions:
# - condition: trigger
# id: living-room-echo-night
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'on'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.living_room_echo_dot
# data:
# volume_level: "{{ states('input_number.living_room_echo_dot_night_volume') }}"
# - conditions:
# - condition: trigger
# id: master-bedroom-echo-day
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.master_bedroom_echo_dot
# data:
# volume_level: "{{ states('input_number.master_bedroom_echo_dot_day_volume') }}"
# - conditions:
# - condition: trigger
# id: master-bedroom-echo-night
# sequence:
# - if:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'on'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.master_bedroom_echo_dot
# data:
# volume_level: "{{ states('input_number.master_bedroom_echo_dot_night_volume') }}"
# - conditions:
# - condition: trigger
# id: emma-bedroom-google-day
# sequence:
# - if:
# - condition: and
# conditions:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'off'
# - condition: state
# entity_id: input_boolean.white_noise_emma_bedroom
# state: 'off'
# - condition: state
# entity_id: input_boolean.emma_sleeping
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.emma_bedroom_speaker
# data:
# volume_level: "{{ states('input_number.emma_bedroom_google_speaker_day_volume') }}"
# - conditions:
# - condition: trigger
# id: emma-bedroom-google-night
# sequence:
# - if:
# - condition: and
# conditions:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'on'
# - condition: state
# entity_id: input_boolean.white_noise_emma_bedroom
# state: 'off'
# - condition: state
# entity_id: input_boolean.emma_sleeping
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.emma_bedroom_speaker
# data:
# volume_level: "{{ states('input_number.emma_bedroom_google_speaker_night_volume') }}"
# - conditions:
# - condition: trigger
# id: kallen-bedroom-google-day
# sequence:
# - if:
# - condition: and
# conditions:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'off'
# - condition: state
# entity_id: input_boolean.white_noise_kallen_bedroom
# state: 'off'
# - condition: state
# entity_id: input_boolean.kallen_sleeping
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.kallen_bedroom_speaker
# data:
# volume_level: "{{ states('input_number.kallen_bedroom_google_speaker_day_volume') }}"
# - conditions:
# - condition: trigger
# id: kallen-bedroom-google-night
# sequence:
# - if:
# - condition: and
# conditions:
# - condition: state
# entity_id: input_boolean.give_me_darkness
# state: 'on'
# - condition: state
# entity_id: input_boolean.white_noise_kallen_bedroom
# state: 'off'
# - condition: state
# entity_id: input_boolean.kallen_sleeping
# state: 'off'
# then:
# - service: media_player.volume_set
# target:
# entity_id: media_player.kallen_bedroom_speaker
# data:
# volume_level: "{{ states('input_number.kallen_bedroom_google_speaker_night_volume') }}"
script: script:
volume_reset: volume_reset:
alias: 'Volume Reset' alias: 'Volume Reset'