Merge branch 'handle_off_backlight' of github.com:jjfalling/HASPone into handle_off_backlight

This commit is contained in:
Jeremy Falling 2021-06-24 14:24:31 +02:00
commit 017ac384e8
No known key found for this signature in database
GPG Key ID: 475B3CFFC20A2AD1
2 changed files with 543 additions and 544 deletions

View File

@ -274,7 +274,6 @@ trigger_variables:
{{ entity }}
{%- endif -%}
{%- endfor -%}
toggle_hp_state: "{%- if hp_is_off -%}heat_cool{%- else -%}off{%- endif -%}"
jsontopic: '{{ "hasp/" ~ haspname ~ "/state/json" }}'
selectedfgtopic: '{{ "hasp/" ~ haspname ~ "/light/selectedforegroundcolor/rgb" }}'
selectedbgtopic: '{{ "hasp/" ~ haspname ~ "/light/selectedbackgroundcolor/rgb" }}'

View File

@ -198,6 +198,7 @@ variables:
hp_is_both: "{{is_state(heatpump, 'heat_cool') }}"
hp_is_cool: "{{is_state(heatpump, 'cool') }}"
hp_is_off: "{{is_state(heatpump, 'off') }}"
toggle_hp_state: "{%- if hp_is_off -%}heat_cool{%- else -%}off{%- endif -%}"
selectedfg7: "{% if hp_is_heat %}{% if on_fgcolor|int >= 0 %}{{on_fgcolor}}{% else %}{{unselectedfg}}{% endif %}{% else %}{% if off_fgcolor|int >= 0 %}{{off_fgcolor}}{% else %}{{selectedfg}}{% endif %}{% endif %}"
selectedbg7: "{% if hp_is_heat %}{% if on_bgcolor|int >= 0 %}{{on_bgcolor}}{% else %}{{unselectedbg}}{% endif %}{% else %}{% if off_bgcolor|int >= 0 %}{{off_bgcolor}}{% else %}{{selectedbg}}{% endif %}{% endif %}"
@ -274,7 +275,6 @@ trigger_variables:
{{ entity }}
{%- endif -%}
{%- endfor -%}
toggle_hp_state: "{%- if hp_is_off -%}heat_cool{%- else -%}off{%- endif -%}"
jsontopic: '{{ "hasp/" ~ haspname ~ "/state/json" }}'
selectedfgtopic: '{{ "hasp/" ~ haspname ~ "/light/selectedforegroundcolor/rgb" }}'
selectedbgtopic: '{{ "hasp/" ~ haspname ~ "/light/selectedbackgroundcolor/rgb" }}'