mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
Add hdmi switch and bulsatcom remotes
This commit is contained in:
@@ -23,3 +23,4 @@ views:
|
||||
- !include lovelace/advanced_dashboard/09_system.yaml
|
||||
- !include lovelace/advanced_dashboard/10_covid_19.yaml
|
||||
- !include lovelace/advanced_dashboard/11_test.yaml
|
||||
- !include lovelace/advanced_dashboard/12_remotes.yaml
|
||||
|
||||
@@ -0,0 +1,372 @@
|
||||
title: Remotes
|
||||
path: remotes
|
||||
icon: mdi:remote
|
||||
cards:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: picture-elements
|
||||
image: /local/images/remotes/hdmi_switcher.png
|
||||
style: |
|
||||
ha-card {
|
||||
width: 60%
|
||||
}
|
||||
elements:
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_1
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 9.6%
|
||||
left: 19.5%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_2
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 9.6%
|
||||
left: 50%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_3
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 9.6%
|
||||
left: 80.5%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_4
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 23%
|
||||
left: 19.5%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_next
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 23%
|
||||
left: 80.5%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_pip
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 63.7%
|
||||
left: 19.5%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_sel
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 63.7%
|
||||
left: 50%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.hdmi_switch_enter
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 11.8%
|
||||
top: 63.7%
|
||||
left: 80.5%
|
||||
border-radius: 50%
|
||||
|
||||
- type: picture-elements
|
||||
image: /local/images/remotes/bulsatcom.png
|
||||
style: |
|
||||
ha-card {
|
||||
width: 60%
|
||||
}
|
||||
elements:
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_power
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 6.8%
|
||||
top: 6.6%
|
||||
left: 22%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_mute
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 6.8%
|
||||
top: 6.6%
|
||||
left: 81%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_ok
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 42.1%
|
||||
height: 12%
|
||||
top: 23%
|
||||
left: 51.2%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_left
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 18%
|
||||
height: 5%
|
||||
top: 23%
|
||||
left: 19%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_right
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 18%
|
||||
height: 5%
|
||||
top: 23%
|
||||
left: 83.8%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_up
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 50%
|
||||
height: 4%
|
||||
top: 14%
|
||||
left: 51%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_down
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 50%
|
||||
height: 4%
|
||||
top: 32%
|
||||
left: 51%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_back
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 6.8%
|
||||
top: 39%
|
||||
left: 21.2%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_menu
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 28%
|
||||
height: 8%
|
||||
top: 43.5%
|
||||
left: 51.4%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_info
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 23.6%
|
||||
height: 6.8%
|
||||
top: 39%
|
||||
left: 81.2%
|
||||
border-radius: 50%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_volume_down
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 36.9%
|
||||
height: 6.2%
|
||||
top: 54%
|
||||
left: 29.4%
|
||||
border-top-left-radius: 45%
|
||||
border-bottom-left-radius: 45%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_volume_up
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 36.9%
|
||||
height: 6.2%
|
||||
top: 54%
|
||||
left: 72%
|
||||
border-top-right-radius: 45%
|
||||
border-bottom-right-radius: 45%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_1
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 62.5%
|
||||
left: 20.5%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_2
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 62.5%
|
||||
left: 51%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_3
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 62.5%
|
||||
left: 81.5%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_4
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 69.5%
|
||||
left: 20.5%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_5
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 69.5%
|
||||
left: 51%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_6
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 69.5%
|
||||
left: 81.5%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_7
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 76.5%
|
||||
left: 21.5%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_8
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 76.5%
|
||||
left: 51%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_9
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 76.5%
|
||||
left: 81.5%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_epg
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 83.5%
|
||||
left: 21.5%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_0
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 83.5%
|
||||
left: 51%
|
||||
border-radius: 40%
|
||||
- type: image
|
||||
image: /local/images/floorplan/transparent.png
|
||||
entity: script.bulsatcom_clock
|
||||
tap_action:
|
||||
action: toggle
|
||||
style:
|
||||
width: 22.2%
|
||||
height: 4%
|
||||
top: 83.5%
|
||||
left: 81.5%
|
||||
border-radius: 40%
|
||||
|
||||
@@ -0,0 +1,192 @@
|
||||
script:
|
||||
bulsatcom_power:
|
||||
alias: Bulsatcom · Power
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020250AF" }'
|
||||
|
||||
bulsatcom_up:
|
||||
alias: Bulsatcom · Up
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202D02F" }'
|
||||
|
||||
bulsatcom_down:
|
||||
alias: Bulsatcom · Down
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202708F" }'
|
||||
|
||||
bulsatcom_left:
|
||||
alias: Bulsatcom · Left
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020208F7" }'
|
||||
|
||||
bulsatcom_right:
|
||||
alias: Bulsatcom · Right
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x02028877" }'
|
||||
|
||||
bulsatcom_ok:
|
||||
alias: Bulsatcom · OK
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202B04F" }'
|
||||
|
||||
bulsatcom_1:
|
||||
alias: Bulsatcom · 1
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202807F" }'
|
||||
|
||||
bulsatcom_2:
|
||||
alias: Bulsatcom · 2
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020240BF" }'
|
||||
|
||||
bulsatcom_3:
|
||||
alias: Bulsatcom · 3
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202C03F" }'
|
||||
|
||||
bulsatcom_4:
|
||||
alias: Bulsatcom · 4
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020220DF" }'
|
||||
|
||||
bulsatcom_5:
|
||||
alias: Bulsatcom · 5
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202A05F" }'
|
||||
|
||||
bulsatcom_6:
|
||||
alias: Bulsatcom · 6
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202609F" }'
|
||||
|
||||
bulsatcom_7:
|
||||
alias: Bulsatcom · 7
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202E01F" }'
|
||||
|
||||
bulsatcom_8:
|
||||
alias: Bulsatcom · 8
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020210EF" }'
|
||||
|
||||
bulsatcom_9:
|
||||
alias: Bulsatcom · 9
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202906F" }'
|
||||
|
||||
bulsatcom_0:
|
||||
alias: Bulsatcom · 0
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020200FF" }'
|
||||
|
||||
bulsatcom_back:
|
||||
alias: Bulsatcom · Back
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202827D" }'
|
||||
|
||||
bulsatcom_info:
|
||||
alias: Bulsatcom · Info
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020242BD" }'
|
||||
|
||||
bulsatcom_menu:
|
||||
alias: Bulsatcom · Menu
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020202FD" }'
|
||||
|
||||
bulsatcom_volume_down:
|
||||
alias: Bulsatcom · Volume down
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020238C7" }'
|
||||
|
||||
bulsatcom_volume_up:
|
||||
alias: Bulsatcom · Volume up
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202A857" }'
|
||||
|
||||
bulsatcom_mute:
|
||||
alias: Bulsatcom · Mute
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020230CF" }'
|
||||
|
||||
bulsatcom_clock:
|
||||
alias: Bulsatcom · Clock
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x020248B7" }'
|
||||
|
||||
bulsatcom_epg:
|
||||
alias: Bulsatcom · EPG
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x0202E21D" }'
|
||||
@@ -0,0 +1,64 @@
|
||||
script:
|
||||
hdmi_switch_1:
|
||||
alias: HDMI Swtich · Set to 1
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FE48B7" }'
|
||||
|
||||
hdmi_switch_2:
|
||||
alias: HDMI Swtich · Set to 2
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FE58A7" }'
|
||||
|
||||
hdmi_switch_3:
|
||||
alias: HDMI Swtich · Set to 3
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FE7887" }'
|
||||
|
||||
hdmi_switch_4:
|
||||
alias: HDMI Swtich · Set to 4
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FE807F" }'
|
||||
|
||||
hdmi_switch_next:
|
||||
alias: HDMI Swtich · Next
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FEC03F" }'
|
||||
|
||||
hdmi_switch_pip:
|
||||
alias: HDMI Swtich · PIP
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FE50AF" }'
|
||||
|
||||
hdmi_switch_sel:
|
||||
alias: HDMI Swtich · SEL
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FED827" }'
|
||||
|
||||
hdmi_switch_enter:
|
||||
alias: HDMI Swtich · Enter
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: cmnd/ir_blaster_1/IRSend
|
||||
payload: '{ "Protocol": "NEC", "Bits": 32, "Data": "0x01FEF807" }'
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 135 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user