New HDMI Switch

This commit is contained in:
2021-12-07 13:12:00 +02:00
parent db2f39ea6a
commit e8a219b689
4 changed files with 194 additions and 15 deletions
@@ -0,0 +1,107 @@
hdmi_switch_remote_card:
card:
type: picture-elements
image: /local/images/remotes/hdmi_switch_new.png
elements:
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_on
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 11.4%
left: 82%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_off
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 11%
left: 14.1%
border-radius: 50%
- 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: 23.6%
left: 13.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: 23.6%
left: 83%
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: 36%
left: 49%
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: 48.5%
left: 13.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_5
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 48.5%
left: 83%
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: 61.5%
left: 50%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_prev
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 74%
left: 50%
border-radius: 50%
@@ -1,4 +1,4 @@
hdmi_switch_remote_card:
old_hdmi_switch_remote_card:
card:
type: picture-elements
image: /local/images/remotes/hdmi_switcher.png