indoor temp sensor

This commit is contained in:
Blackymas
2023-01-09 10:13:25 +01:00
parent 8295284b65
commit bacfe4bec9

View File

@@ -2814,8 +2814,8 @@ action:
##### NSPanel boot init - Indoor Temp #####
- variables:
indoor_temp: >-
{%- if indoortemp is match "sensor." and states(indoortemp).state != "unavailable" -%} {{ states(indoortemp) |round(0) }}
{%- else -%} {{ nspaneltemp }}
{%- if indoortemp is match "sensor." and states(indoortemp).state != "unavailable" -%} {{ states(indoortemp) |round(1) }}
{%- else -%} {{ nspaneltemp |round(1) }}
{%- endif -%}
- delay:
milliseconds: "{{ delay_value }}"
@@ -4364,7 +4364,7 @@ action:
- service: "{{ command_text_printf }}"
data:
component: home.current_temp
message: "{{ trigger.event.data.new_state.state |round(0) }}°"
message: "{{ trigger.event.data.new_state.state |round(1) }}°"
##### Indoor NSPANEL Temp Entity #####
- conditions:
@@ -4380,7 +4380,7 @@ action:
- service: "{{ command_text_printf }}"
data:
component: home.current_temp
message: "{{ trigger.event.data.new_state.state |round(0) }}°"
message: "{{ trigger.event.data.new_state.state |round(1) }}°"
##### Weather state change update #####