This commit is contained in:
Edward Firmo
2023-12-18 15:16:00 +01:00
parent d432a88a8e
commit 286e98ecef

View File

@@ -6172,12 +6172,12 @@ variables:
rgbw: "[<ColorMode.RGBW: 'rgbw'>]" rgbw: "[<ColorMode.RGBW: 'rgbw'>]"
rgbww: "[<ColorMode.RGBWW: 'rgbww'>]" rgbww: "[<ColorMode.RGBWW: 'rgbww'>]"
white: "[<ColorMode.WHITE: ''>]" white: "[<ColorMode.WHITE: ''>]"
#yamllint disable rule:truthy # yamllint disable rule:truthy rule:line-length
states: states:
"on": ["on", "open", "opening", "true", "True", true, True, "playing", "heat", "cold", "dry", "armed_home", "armed_away", "armed_vacation", "armed_custom_bypass", "triggered", "pending", "arming", 1] "on": ["on", "open", "opening", "true", "True", true, True, "playing", "heat", "cold", "dry", "armed_home", "armed_away", "armed_vacation", "armed_custom_bypass", "triggered", "pending", "arming", 1]
"off": ["off", "closed", "closing", "false", "False", false, False, "standby", "paused", "idle", "disarmed", "disarming", 0] "off": ["off", "closed", "closing", "false", "False", false, False, "standby", "paused", "idle", "disarmed", "disarming", 0]
unknown: ["unknown", "unavailable", None, none, ""] unknown: ["unknown", "unavailable", None, none, ""]
#yamllint enable rule:truthy # yamllint enable rule:truthy rule:line-length
############################################################# #############################################################
##### CLOSE - Variables ##### ##### CLOSE - Variables #####
@@ -7079,11 +7079,11 @@ action:
hold_select: !input 'right_button_hold_select' hold_select: !input 'right_button_hold_select'
relays: relays:
relay1: relay1:
icon: !input 'relay01_icon' # E3A5 icon: !input 'relay01_icon'
icon_color_rgb: !input 'relay01_icon_color' icon_color_rgb: !input 'relay01_icon_color'
fallback: !input 'relay_1_local_fallback' fallback: !input 'relay_1_local_fallback'
relay2: relay2:
icon: !input 'relay02_icon' # E3A8 icon: !input 'relay02_icon'
icon_color_rgb: !input 'relay02_icon_color' icon_color_rgb: !input 'relay02_icon_color'
fallback: !input 'relay_2_local_fallback' fallback: !input 'relay_2_local_fallback'
@@ -7232,7 +7232,10 @@ action:
{{ {{
hardware.relays.relay1.icon_color_rgb hardware.relays.relay1.icon_color_rgb
if is_number(hardware.relays.relay1.icon_color_rgb) if is_number(hardware.relays.relay1.icon_color_rgb)
else ((hardware.relays.relay1.icon_color_rgb[0] //(2**3)) *(2**11))+((hardware.relays.relay1.icon_color_rgb[1] //(2**2)) *(2**5))+(hardware.relays.relay1.icon_color_rgb[2] //(2**3)) else
((hardware.relays.relay1.icon_color_rgb[0] //(2**3)) *(2**11)) +
((hardware.relays.relay1.icon_color_rgb[1] //(2**2)) *(2**5)) +
((hardware.relays.relay1.icon_color_rgb[2] //(2**3)))
}} }}
relay1_fallback: '{{ hardware.relays.relay1.fallback }}' relay1_fallback: '{{ hardware.relays.relay1.fallback }}'
relay2_local_control: '{{ hardware.buttons.right.entity == relay02_entity }}' relay2_local_control: '{{ hardware.buttons.right.entity == relay02_entity }}'
@@ -7251,7 +7254,10 @@ action:
{{ {{
hardware.relays.relay2.icon_color_rgb hardware.relays.relay2.icon_color_rgb
if is_number(hardware.relays.relay2.icon_color_rgb) if is_number(hardware.relays.relay2.icon_color_rgb)
else ((hardware.relays.relay2.icon_color_rgb[0] //(2**3)) *(2**11))+((hardware.relays.relay2.icon_color_rgb[1] //(2**2)) *(2**5))+(hardware.relays.relay2.icon_color_rgb[2] //(2**3)) else
((hardware.relays.relay2.icon_color_rgb[0] //(2**3)) *(2**11)) +
((hardware.relays.relay2.icon_color_rgb[1] //(2**2)) *(2**5)) +
((hardware.relays.relay2.icon_color_rgb[2] //(2**3)))
}} }}
relay2_fallback: '{{ hardware.relays.relay2.fallback }}' relay2_fallback: '{{ hardware.relays.relay2.fallback }}'
embedded_climate: '{{ climate == thermostat_embedded }}' embedded_climate: '{{ climate == thermostat_embedded }}'