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