fix: ignore unassigned indoor sensor

Fix for when sensor is set but unavailable.
This commit is contained in:
Edward Firmo
2023-03-29 15:49:29 +02:00
committed by GitHub
parent 76fee43d3b
commit d23fe9616c

View File

@@ -4311,7 +4311,7 @@ action:
- service: "{{ command_text_printf }}"
data:
component: home.current_temp
message: "{{ states(indoortemp) | round(1) if indoortemp is match 'sensor.' and states(indoortemp) in ['unavailable', 'unknown', 'none'] else states(nspaneltemp) | round(1) }}{{ weather.units.temperature }}"
message: "{{ states(indoortemp) | round(1) if indoortemp is match 'sensor.' and states(indoortemp) not in ['unavailable', 'unknown', 'none'] else states(nspaneltemp) | round(1) }}{{ weather.units.temperature }}"
##### Weather Icon Home Page #####
- delay: