rdy for climate and color_picker
This commit is contained in:
@@ -145,7 +145,8 @@ blueprint:
|
|||||||
default: []
|
default: []
|
||||||
selector:
|
selector:
|
||||||
select:
|
select:
|
||||||
mode: dropdown
|
mode: dropdown
|
||||||
|
multiple: true
|
||||||
options:
|
options:
|
||||||
- yellow
|
- yellow
|
||||||
- yellow-orange
|
- yellow-orange
|
||||||
@@ -817,6 +818,25 @@ variables:
|
|||||||
button_color_1: "65535"
|
button_color_1: "65535"
|
||||||
button_color_2: "10597"
|
button_color_2: "10597"
|
||||||
|
|
||||||
|
##### COLOR PICKER COLOR MAPPING - color_name #####
|
||||||
|
yellow: "yellow"
|
||||||
|
yellow-orange: "gold"
|
||||||
|
orange: "orange"
|
||||||
|
red: "red"
|
||||||
|
red-violett: "magenta"
|
||||||
|
violett: "darkviolet"
|
||||||
|
blue-violett: "purple"
|
||||||
|
blue: "blue"
|
||||||
|
cyan: "cyan"
|
||||||
|
turquoise: "turquoise"
|
||||||
|
green: "green"
|
||||||
|
green-yellow: "greenyellow"
|
||||||
|
cold-white: "1"
|
||||||
|
white: "1"
|
||||||
|
warm-white-light: "1"
|
||||||
|
warm-white-middle: "1"
|
||||||
|
warm-white-strong: "1"
|
||||||
|
|
||||||
##### DATE - DE #####
|
##### DATE - DE #####
|
||||||
date01_de: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
date01_de: "{{ ((as_timestamp(now())) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
||||||
date02_de: "{{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
date02_de: "{{ ((as_timestamp(now()) + 86400) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}"
|
||||||
@@ -1418,7 +1438,7 @@ action:
|
|||||||
####### Date #####
|
####### Date #####
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a02
|
component: home.date
|
||||||
message: "{{ date01_de }}"
|
message: "{{ date01_de }}"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
@@ -1459,7 +1479,7 @@ action:
|
|||||||
##### Date #####
|
##### Date #####
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a02
|
component: home.date
|
||||||
message: "{{ date01_en }}"
|
message: "{{ date01_en }}"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
@@ -1694,7 +1714,7 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a01
|
component: home.time
|
||||||
message: "{{ time }}"
|
message: "{{ time }}"
|
||||||
|
|
||||||
##### NSPanel boot init - Humidity #####
|
##### NSPanel boot init - Humidity #####
|
||||||
@@ -1702,7 +1722,7 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a04
|
component: home.humidity_state
|
||||||
message: "{{ states(humidity) |round(0) }}%"
|
message: "{{ states(humidity) |round(0) }}%"
|
||||||
|
|
||||||
##### NSPanel boot init - Hotwater #####
|
##### NSPanel boot init - Hotwater #####
|
||||||
@@ -1714,18 +1734,18 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_printf }}"
|
- service: "{{ command_printf }}"
|
||||||
data:
|
data:
|
||||||
cmd: home.p01.pic={{ hotwater_pic_on }}
|
cmd: home.hotwater_pic.pic={{ hotwater_pic_on }}
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a07
|
component: home.hotwater_temp
|
||||||
message: "{{ states(hotwatertemp) |round(1) }}°"
|
message: "{{ states(hotwatertemp) |round(1) }}°"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a08
|
component: thermostat.hotwater_temp
|
||||||
message: "{{ states(hotwatertemp) |round(1) }}°"
|
message: "{{ states(hotwatertemp) |round(1) }}°"
|
||||||
|
|
||||||
##### NSPanel boot init - Outdoor Temp #####
|
##### NSPanel boot init - Outdoor Temp #####
|
||||||
@@ -1739,13 +1759,13 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a06
|
component: home.outdoor_temp
|
||||||
message: "{{ states(outdoortemp) |round(0) }}°"
|
message: "{{ states(outdoortemp) |round(0) }}°"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a07
|
component: thermostat.outdoor_temp
|
||||||
message: "{{ states(outdoortemp) |round(0) }}°"
|
message: "{{ states(outdoortemp) |round(0) }}°"
|
||||||
|
|
||||||
##### Outdoor Temp Default #####
|
##### Outdoor Temp Default #####
|
||||||
@@ -1758,13 +1778,13 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a06
|
component: home.outdoor_temp
|
||||||
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a07
|
component: thermostat.outdoor_temp
|
||||||
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
||||||
|
|
||||||
##### Outdoor TempAccuweather #####
|
##### Outdoor TempAccuweather #####
|
||||||
@@ -1777,13 +1797,13 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a06
|
component: home.outdoor_temp
|
||||||
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a07
|
component: thermostat.outdoor_temp
|
||||||
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
||||||
|
|
||||||
##### Weather Icon Home Page
|
##### Weather Icon Home Page
|
||||||
@@ -1821,7 +1841,7 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_printf }}"
|
- service: "{{ command_printf }}"
|
||||||
data:
|
data:
|
||||||
cmd: home.a05.pic={{ weather_pic }}
|
cmd: home.fc_weather.pic={{ weather_pic }}
|
||||||
|
|
||||||
##### Weather PIC - ACCUWEATHER #####
|
##### Weather PIC - ACCUWEATHER #####
|
||||||
- conditions:
|
- conditions:
|
||||||
@@ -1856,7 +1876,7 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_printf }}"
|
- service: "{{ command_printf }}"
|
||||||
data:
|
data:
|
||||||
cmd: home.a05.pic={{ weather_pic }}
|
cmd: home.fc_weather.pic={{ weather_pic }}
|
||||||
|
|
||||||
##### NSPanel boot init - Left Button Name #####
|
##### NSPanel boot init - Left Button Name #####
|
||||||
- if:
|
- if:
|
||||||
@@ -2801,7 +2821,7 @@ action:
|
|||||||
##### Time Home Page #####
|
##### Time Home Page #####
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a01
|
component: home.time
|
||||||
message: "{{ time }}"
|
message: "{{ time }}"
|
||||||
|
|
||||||
- choose:
|
- choose:
|
||||||
@@ -2814,7 +2834,7 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a02
|
component: home.date
|
||||||
message: "{{ date01_de }}"
|
message: "{{ date01_de }}"
|
||||||
|
|
||||||
##### Date Home Page + Forcast EN #####
|
##### Date Home Page + Forcast EN #####
|
||||||
@@ -2826,7 +2846,7 @@ action:
|
|||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a02
|
component: home.date
|
||||||
message: "{{ date0_en }}"
|
message: "{{ date0_en }}"
|
||||||
|
|
||||||
|
|
||||||
@@ -2838,7 +2858,7 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a04
|
component: home.humidity_state
|
||||||
message: "{{ states(humidity) |round(0) }}%"
|
message: "{{ states(humidity) |round(0) }}%"
|
||||||
|
|
||||||
|
|
||||||
@@ -2850,19 +2870,19 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a07
|
component: home.hotwater_temp
|
||||||
message: "{{ states(hotwatertemp) |round(1) }}°"
|
message: "{{ states(hotwatertemp) |round(1) }}°"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a08
|
component: thermostat.hotwater_temp
|
||||||
message: "{{ states(hotwatertemp) |round(1) }}°"
|
message: "{{ states(hotwatertemp) |round(1) }}°"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_printf }}"
|
- service: "{{ command_printf }}"
|
||||||
data:
|
data:
|
||||||
cmd: home.p01.pic={{ hotwater_pic_on }}
|
cmd: home.hotwater_pic.pic={{ hotwater_pic_on }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -2873,13 +2893,13 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a06
|
component: home.outdoor_temp
|
||||||
message: "{{ states(outdoortemp) |round(0) }}°"
|
message: "{{ states(outdoortemp) |round(0) }}°"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a07
|
component: thermostat.outdoor_temp
|
||||||
message: "{{ states(outdoortemp) |round(0) }}°"
|
message: "{{ states(outdoortemp) |round(0) }}°"
|
||||||
|
|
||||||
|
|
||||||
@@ -2896,13 +2916,13 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a06
|
component: home.outdoor_temp
|
||||||
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a07
|
component: thermostat.outdoor_temp
|
||||||
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
||||||
|
|
||||||
##### Outdoor Temp Accuweather #####
|
##### Outdoor Temp Accuweather #####
|
||||||
@@ -2912,13 +2932,13 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: home.a06
|
component: home.outdoor_temp
|
||||||
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
||||||
- delay:
|
- delay:
|
||||||
milliseconds: "{{ delay_value }}"
|
milliseconds: "{{ delay_value }}"
|
||||||
- service: "{{ command_text_printf }}"
|
- service: "{{ command_text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: thermostat.a07
|
component: thermostat.outdoor_temp
|
||||||
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -460,7 +460,7 @@ sensor:
|
|||||||
then:
|
then:
|
||||||
- wait_until:
|
- wait_until:
|
||||||
switch.is_on: nextion_init
|
switch.is_on: nextion_init
|
||||||
- lambda: id(disp1).set_component_text_printf("home.a03", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page.
|
- lambda: id(disp1).set_component_text_printf("home.current_temp", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page.
|
||||||
- lambda: id(disp1).set_component_text_printf("thermostat.a04", "%.1f", id(temp_nspanel).state);
|
- lambda: id(disp1).set_component_text_printf("thermostat.a04", "%.1f", id(temp_nspanel).state);
|
||||||
|
|
||||||
##### THERMOSTAT CLIMATE TARGET TEMPERATURE FROM HA #####
|
##### THERMOSTAT CLIMATE TARGET TEMPERATURE FROM HA #####
|
||||||
|
|||||||
Reference in New Issue
Block a user