Compare commits
2 Commits
bd5b56e75c
...
5a19fdb941
Author | SHA1 | Date | |
---|---|---|---|
5a19fdb941 | |||
edf3ed66df |
@ -1,5 +1,5 @@
|
|||||||
- id: office-blinds-button-up
|
- id: office-blinds-button-down
|
||||||
alias: '[Office Blinds] Up'
|
alias: '[Office Blinds] Down'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: a47c928b108240ed8866f9f7a70bc844
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -9,33 +9,23 @@
|
|||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: or
|
- condition: numeric_state
|
||||||
conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'closing'
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'opening'
|
|
||||||
sequence:
|
|
||||||
- service: cover.stop_cover
|
|
||||||
entity_id: cover.office_blinds
|
entity_id: cover.office_blinds
|
||||||
- conditions:
|
attribute: current_position
|
||||||
- condition: or
|
below: 51
|
||||||
conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'closed'
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'open'
|
|
||||||
sequence:
|
sequence:
|
||||||
- service: cover.close_cover
|
- service: cover.close_cover
|
||||||
entity_id: cover.office_blinds
|
entity_id: cover.office_blinds
|
||||||
|
default:
|
||||||
|
- service: cover.set_cover_position
|
||||||
|
data:
|
||||||
|
position: 50
|
||||||
|
target:
|
||||||
|
entity_id: cover.office_blinds
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: office-blinds-button-down
|
- id: office-blinds-button-up
|
||||||
alias: '[Office Blinds] Down'
|
alias: '[Office Blinds] Up'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: a47c928b108240ed8866f9f7a70bc844
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -45,27 +35,47 @@
|
|||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: or
|
- condition: numeric_state
|
||||||
conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'closing'
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'opening'
|
|
||||||
sequence:
|
|
||||||
- service: cover.stop_cover
|
|
||||||
entity_id: cover.office_blinds
|
entity_id: cover.office_blinds
|
||||||
- conditions:
|
attribute: current_position
|
||||||
- condition: or
|
above: 49
|
||||||
conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'closed'
|
|
||||||
- condition: state
|
|
||||||
entity_id: cover.office_blinds
|
|
||||||
state: 'open'
|
|
||||||
sequence:
|
sequence:
|
||||||
- service: cover.open_cover
|
- service: cover.open_cover
|
||||||
entity_id: cover.office_blinds
|
entity_id: cover.office_blinds
|
||||||
|
default:
|
||||||
|
- service: cover.set_cover_position
|
||||||
|
data:
|
||||||
|
position: 50
|
||||||
|
target:
|
||||||
|
entity_id: cover.office_blinds
|
||||||
|
mode: single
|
||||||
|
|
||||||
|
- id: office-blinds-button-down-all
|
||||||
|
alias: '[Office Blinds] Down All'
|
||||||
|
trigger:
|
||||||
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_long_press
|
||||||
|
subtype: dim_up
|
||||||
|
action:
|
||||||
|
- service: cover.close_cover
|
||||||
|
entity_id:
|
||||||
|
- cover.dining_blinds
|
||||||
|
- cover.office_blinds
|
||||||
|
mode: single
|
||||||
|
|
||||||
|
- id: office-blinds-button-up-all
|
||||||
|
alias: '[Office Blinds] Up All'
|
||||||
|
trigger:
|
||||||
|
- device_id: a47c928b108240ed8866f9f7a70bc844
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_long_press
|
||||||
|
subtype: dim_down
|
||||||
|
action:
|
||||||
|
- service: cover.open_cover
|
||||||
|
entity_id:
|
||||||
|
- cover.dining_blinds
|
||||||
|
- cover.office_blinds
|
||||||
mode: single
|
mode: single
|
||||||
|
@ -73,166 +73,6 @@ tv_atv:
|
|||||||
entity_id: media_player.sync_box
|
entity_id: media_player.sync_box
|
||||||
data:
|
data:
|
||||||
mode: video
|
mode: video
|
||||||
tv_twitch:
|
|
||||||
alias: Twitch
|
|
||||||
icon: mdi:twitch
|
|
||||||
sequence:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
state: 'off'
|
|
||||||
sequence:
|
|
||||||
- service: switch.turn_on
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: TV
|
|
||||||
target:
|
|
||||||
entity_id: media_player.living_room
|
|
||||||
- delay: 5
|
|
||||||
- service: androidtv.adb_command
|
|
||||||
data:
|
|
||||||
command: HOME
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: Twitch
|
|
||||||
target:
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: huesyncbox.set_sync_mode
|
|
||||||
target:
|
|
||||||
entity_id: media_player.sync_box
|
|
||||||
data:
|
|
||||||
mode: game
|
|
||||||
tv_youtube:
|
|
||||||
alias: YouTube
|
|
||||||
icon: mdi:youtube
|
|
||||||
sequence:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
state: 'off'
|
|
||||||
sequence:
|
|
||||||
- service: switch.turn_on
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: TV
|
|
||||||
target:
|
|
||||||
entity_id: media_player.living_room
|
|
||||||
- delay: 5
|
|
||||||
- service: androidtv.adb_command
|
|
||||||
data:
|
|
||||||
command: HOME
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: SmartTube
|
|
||||||
target:
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: huesyncbox.set_sync_mode
|
|
||||||
target:
|
|
||||||
entity_id: media_player.sync_box
|
|
||||||
data:
|
|
||||||
mode: video
|
|
||||||
tv_netflix:
|
|
||||||
alias: Netflix
|
|
||||||
icon: mdi:netflix
|
|
||||||
sequence:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
state: 'off'
|
|
||||||
sequence:
|
|
||||||
- service: switch.turn_on
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
- delay: 5
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: TV
|
|
||||||
target:
|
|
||||||
entity_id: media_player.living_room
|
|
||||||
- service: androidtv.adb_command
|
|
||||||
data:
|
|
||||||
command: HOME
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: Netflix
|
|
||||||
target:
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: huesyncbox.set_sync_mode
|
|
||||||
target:
|
|
||||||
entity_id: media_player.sync_box
|
|
||||||
data:
|
|
||||||
mode: video
|
|
||||||
tv_hbogo:
|
|
||||||
alias: HBO GO
|
|
||||||
icon: mdi:netflix
|
|
||||||
sequence:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
state: 'off'
|
|
||||||
sequence:
|
|
||||||
- service: switch.turn_on
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
- delay: 5
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: TV
|
|
||||||
target:
|
|
||||||
entity_id: media_player.living_room
|
|
||||||
- service: androidtv.adb_command
|
|
||||||
data:
|
|
||||||
command: HOME
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: 'HBO GO'
|
|
||||||
target:
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: huesyncbox.set_sync_mode
|
|
||||||
target:
|
|
||||||
entity_id: media_player.sync_box
|
|
||||||
data:
|
|
||||||
mode: video
|
|
||||||
tv_firefox:
|
|
||||||
alias: Firefox
|
|
||||||
icon: mdi:firefox
|
|
||||||
sequence:
|
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
state: 'off'
|
|
||||||
sequence:
|
|
||||||
- service: switch.turn_on
|
|
||||||
entity_id: switch.harmonyhub_shield_tv
|
|
||||||
- delay: 5
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: TV
|
|
||||||
target:
|
|
||||||
entity_id: media_player.living_room
|
|
||||||
- service: androidtv.adb_command
|
|
||||||
data:
|
|
||||||
command: HOME
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: media_player.select_source
|
|
||||||
data:
|
|
||||||
source: Firefox
|
|
||||||
target:
|
|
||||||
entity_id: media_player.nvidia_shield
|
|
||||||
- service: huesyncbox.set_sync_mode
|
|
||||||
target:
|
|
||||||
entity_id: media_player.sync_box
|
|
||||||
data:
|
|
||||||
mode: video
|
|
||||||
tv_off:
|
tv_off:
|
||||||
alias: 'TV Off'
|
alias: 'TV Off'
|
||||||
icon: mdi:power
|
icon: mdi:power
|
||||||
|
Loading…
Reference in New Issue
Block a user