forked from TonyApuzzo/home-assistant-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename google cast entities, updates per 0.117 / 0.118
- Loading branch information
1 parent
fff4d83
commit f86966c
Showing
9 changed files
with
335 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
# | ||
# Emulated Roku to Chromecast to be able to control the Chromecast using a Harmony Remote | ||
# | ||
|
||
automation old: | ||
- id: ha_em_chromecast_play | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Play | ||
action: | ||
- service: media_player.media_play_pause | ||
entity_id: media_player.chromecast | ||
|
||
- id: ha_em_chromecast_fwd | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Fwd | ||
action: | ||
- service: media_player.media_play | ||
entity_id: media_player.chromecast | ||
- wait_for_trigger: | ||
- platform: state | ||
entity_id: media_player.chromecast | ||
timeout: 1 | ||
continue_on_timeout: false | ||
- service: media_player.media_seek | ||
data: | ||
entity_id: media_player.chromecast | ||
seek_position: |- | ||
{{- [states.media_player.chromecast.attributes.media_duration | float - 10, | ||
states.media_player.chromecast.attributes.media_position | float + 30]|min }} | ||
- id: ha_em_chromecast_rev | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Rev | ||
action: | ||
- service: media_player.media_play | ||
entity_id: media_player.chromecast | ||
- wait_for_trigger: | ||
- platform: state | ||
entity_id: media_player.chromecast | ||
timeout: 1 | ||
continue_on_timeout: false | ||
- service: media_player.media_seek | ||
data: | ||
entity_id: media_player.chromecast | ||
seek_position: |- | ||
{{- [0, states.media_player.chromecast.attributes.media_position | float - 30]|max }} | ||
- id: ha_em_chromecast_up | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Up | ||
action: | ||
- service: media_player.volume_up | ||
entity_id: media_player.chromecast | ||
|
||
- id: ha_em_chromecast_down | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Down | ||
action: | ||
- service: media_player.volume_down | ||
entity_id: media_player.chromecast | ||
|
||
- id: ha_em_chromecast_left | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Left | ||
action: | ||
- service: media_player.media_previous_track | ||
entity_id: media_player.chromecast | ||
|
||
- id: ha_em_chromecast_right | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Right | ||
action: | ||
- service: media_player.media_next_track | ||
entity_id: media_player.chromecast | ||
|
||
- id: ha_em_chromecast_instantReplay | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: InstantReplay | ||
action: | ||
- service: media_player.media_play | ||
entity_id: media_player.chromecast | ||
- wait_for_trigger: | ||
- platform: state | ||
entity_id: media_player.chromecast | ||
timeout: 1 | ||
continue_on_timeout: false | ||
- service: media_player.media_seek | ||
data: | ||
entity_id: media_player.chromecast | ||
seek_position: |- | ||
{{- [0, states.media_player.chromecast.attributes.media_position | float - 10]|max }} | ||
- id: ha_em_chromecast_back | ||
trigger: | ||
- platform: event | ||
event_type: roku_command | ||
event_data: | ||
source_name: Home Assistant | ||
type: keypress | ||
key: Back | ||
action: | ||
- service: media_player.media_pause | ||
entity_id: media_player.chromecast | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
- name: Lock Front Door | ||
entities: | ||
lock.kwikset_front_door: | ||
state: "locked" | ||
lock.kwikset_front_door: | ||
state: locked | ||
id: 7a82e36dc4a2445cacb67c371e7908fd | ||
- name: Unlock Front Door | ||
entities: | ||
lock.kwikset_front_door: | ||
state: "unlocked" | ||
state: unlocked | ||
id: c3026df8c7a341f1832f33c0a470366f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
# Scripts | ||
computer_audio_on_rx_v475: | ||
alias: Computer Audio on rx-v475 | ||
sequence: | ||
- service: media_player.turn_on | ||
data: | ||
entity_id: media_player.rx_v475_a16974 | ||
- service: media_player.select_source | ||
data: | ||
source: AV1 | ||
entity_id: media_player.rx_v475_a16974 | ||
mode: single | ||
icon: mdi:surround-sound |
Oops, something went wrong.