Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
executable file 115 lines (107 sloc) 3.74 KB
#################################################################
## Scripts
#################################################################
##########################################################
## Harmony Remote
##########################################################
input_select_harmony:
alias: "Start Remote activity from input select"
sequence:
service: remote.turn_on
data_template:
entity_id: remote.living_room_tv
activity: >
{% if is_state("input_select.living_room_tv_remote", "PowerOff") %}
-1
{% elif is_state("input_select.living_room_tv_remote", "Watch TV") %}
22106204
{% elif is_state("input_select.living_room_tv_remote", "Watch Over the Air TV") %}
22109519
{% elif is_state("input_select.living_room_tv_remote", "Play Xbox One") %}
22107236
{% elif is_state("input_select.living_room_tv_remote", "Play Nintendo Switch") %}
23666878
{% elif is_state("input_select.living_room_tv_remote", "Play Sonos") %}
22815026
{% endif %}
input_select_bedroom_harmony:
alias: "Start Bedroom Remote activity from input select"
sequence:
service: remote.turn_on
data_template:
entity_id: remote.bedroom_tv
activity: >
{% if is_state("input_select.bedroom_tv_remote", "PowerOff") %}
-1
{% elif is_state("input_select.bedroom_tv_remote", "Watch TV") %}
31071991
{% endif %}
input_select_office_harmony:
alias: "Start Office Remote activity from input select"
sequence:
service: remote.turn_on
data_template:
entity_id: remote.USER1_s_office_tv
activity: >
{% if is_state("input_select.USER1_s_office_tv_remote", "PowerOff") %}
-1
{% elif is_state("input_select.USER1_s_office_tv_remote", "Watch TV") %}
33663475
{% elif is_state("input_select.USER1_s_office_tv_remote", "Play Xbox One") %}
36216391
{% endif %}
##########################################################
## Sonos Text to Speech
##########################################################
say:
alias: Sonos TTS
sequence:
- service: sonos.snapshot
data_template:
with_group: yes
entity_id: "{{ where }}"
- delay: '00:00:03'
- service: sonos.unjoin
data_template:
entity_id: "{{ where }}"
- delay: '00:00:01'
- service: sonos.join
data_template:
master: "{{ master }}"
entity_id: "{{ where }}"
- delay: '00:00:01'
- service: media_player.volume_set
data_template:
entity_id: "{{ where }}"
volume_level: "{{ volume }}"
- delay: '00:00:02'
- service: tts.amazon_polly_say
data_template:
entity_id: "{{ master }}"
message: "{{ what }}"
- delay: '00:00:25'
- service: sonos.restore
data_template:
with_group: yes
entity_id: "{{ where }}"
##########################################################
## Living Room Fan Light Dimmers
##########################################################
living_room_fan_light_dimmer:
alias: Living Room Fan Lights Dimmer Sequence
sequence:
- service: switch.turn_on
entity_id:
- switch.living_room_east_fan_dimmer
- delay: '00:00:07'
- service: switch.turn_off
entity_id:
- switch.living_room_east_fan_dimmer
- delay: '00:00:02'
- service: switch.turn_on
entity_id:
- switch.living_room_west_fan_dimmer
- delay: '00:00:07'
- service: switch.turn_off
entity_id:
- switch.living_room_west_fan_dimmer
You can’t perform that action at this time.