fix: ignore unassigned indoor sensor

This commit is contained in:
deejaybeam
2023-03-29 11:00:50 +02:00
parent 89faeb3ec1
commit e8fd5e2020

View File

@@ -4311,7 +4311,7 @@ action:
- service: "{{ command_text_printf }}"
data:
component: home.current_temp
message: "{{ states(indoortemp) | round(1) if is_number(states(indoortemp)) else states(nspaneltemp) | round(1) }}{{ weather.units.temperature }}"
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 }}"
##### Weather Icon Home Page #####
- delay: