rdy climate
This commit is contained in:
@@ -1745,7 +1745,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.hotwater_temp
|
||||
component: climate.hotwater_temp
|
||||
message: "{{ states(hotwatertemp) |round(1) }}°"
|
||||
|
||||
##### NSPanel boot init - Outdoor Temp #####
|
||||
@@ -1765,7 +1765,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.outdoor_temp
|
||||
component: climate.outdoor_temp
|
||||
message: "{{ states(outdoortemp) |round(0) }}°"
|
||||
|
||||
##### Outdoor Temp Default #####
|
||||
@@ -1784,7 +1784,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.outdoor_temp
|
||||
component: climate.outdoor_temp
|
||||
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
||||
|
||||
##### Outdoor TempAccuweather #####
|
||||
@@ -1803,7 +1803,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.outdoor_temp
|
||||
component: climate.outdoor_temp
|
||||
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
||||
|
||||
##### Weather Icon Home Page
|
||||
@@ -1841,7 +1841,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_printf }}"
|
||||
data:
|
||||
cmd: home.fc_weather.pic={{ weather_pic }}
|
||||
cmd: home.weather.pic={{ weather_pic }}
|
||||
|
||||
##### Weather PIC - ACCUWEATHER #####
|
||||
- conditions:
|
||||
@@ -1876,7 +1876,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_printf }}"
|
||||
data:
|
||||
cmd: home.fc_weather.pic={{ weather_pic }}
|
||||
cmd: home.weather.pic={{ weather_pic }}
|
||||
|
||||
##### NSPanel boot init - Left Button Name #####
|
||||
- if:
|
||||
@@ -2876,7 +2876,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.hotwater_temp
|
||||
component: climate.hotwater_temp
|
||||
message: "{{ states(hotwatertemp) |round(1) }}°"
|
||||
- delay:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
@@ -2899,7 +2899,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.outdoor_temp
|
||||
component: climate.outdoor_temp
|
||||
message: "{{ states(outdoortemp) |round(0) }}°"
|
||||
|
||||
|
||||
@@ -2922,7 +2922,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.outdoor_temp
|
||||
component: climate.outdoor_temp
|
||||
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
|
||||
|
||||
##### Outdoor Temp Accuweather #####
|
||||
@@ -2938,7 +2938,7 @@ action:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: thermostat.outdoor_temp
|
||||
component: climate.outdoor_temp
|
||||
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
||||
|
||||
|
||||
|
||||
54
esphome.yaml
54
esphome.yaml
@@ -367,7 +367,7 @@ binary_sensor:
|
||||
# name: ${device_name} Heating Room State
|
||||
# id: heating_room_state
|
||||
# page_id: 6
|
||||
# component_id: 16
|
||||
# component_id: 15
|
||||
# internal: true
|
||||
# on_click:
|
||||
# - switch.toggle: hvac_mode
|
||||
@@ -376,7 +376,7 @@ binary_sensor:
|
||||
- platform: nextion
|
||||
name: ${device_name} Restart
|
||||
page_id: 7
|
||||
component_id: 10
|
||||
component_id: 9
|
||||
internal: true
|
||||
on_click:
|
||||
- button.press: restart_nspanel
|
||||
@@ -385,7 +385,7 @@ binary_sensor:
|
||||
- platform: nextion
|
||||
name: ${device_name} Sleep Modus
|
||||
page_id: 7
|
||||
component_id: 5
|
||||
component_id: 4
|
||||
internal: true
|
||||
on_click:
|
||||
- switch.toggle: sleep_modus
|
||||
@@ -394,7 +394,7 @@ binary_sensor:
|
||||
- platform: nextion
|
||||
name: ${device_name} Hotwater Charge
|
||||
page_id: 6
|
||||
component_id: 21
|
||||
component_id: 20
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -461,7 +461,7 @@ sensor:
|
||||
- wait_until:
|
||||
switch.is_on: nextion_init
|
||||
- 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("climate.a04", "%.1f", id(temp_nspanel).state);
|
||||
|
||||
##### THERMOSTAT CLIMATE TARGET TEMPERATURE FROM HA #####
|
||||
# - platform: homeassistant
|
||||
@@ -474,7 +474,7 @@ sensor:
|
||||
# - globals.set:
|
||||
# id: climate_target_temp_val_global
|
||||
# value: !lambda 'return float(x);'
|
||||
# - lambda: id(disp1).set_component_text_printf("thermostat.a05", "%.1f", id(climate_target_temp_val_global));
|
||||
# - lambda: id(disp1).set_component_text_printf("climate.a05", "%.1f", id(climate_target_temp_val_global));
|
||||
# # THERMO PROGRESS CIRCLE, broken into 3 images to create space for the temperatures in the center.
|
||||
# - lambda: |-
|
||||
# int left=16; // 16 is empty left.
|
||||
@@ -598,9 +598,9 @@ sensor:
|
||||
# right=48;
|
||||
# }
|
||||
# // sends the 3 images to the display
|
||||
# id(disp1).send_command_printf("thermostat.a01.pic=%i", left);
|
||||
# id(disp1).send_command_printf("thermostat.a02.pic=%i", mid);
|
||||
# id(disp1).send_command_printf("thermostat.a03.pic=%i", right);
|
||||
# id(disp1).send_command_printf("climate.a01.pic=%i", left);
|
||||
# id(disp1).send_command_printf("climate.a02.pic=%i", mid);
|
||||
# id(disp1).send_command_printf("climate.a03.pic=%i", right);
|
||||
|
||||
###### TARGET TEMPERATURE GET VALUE FROM NEXTION CIRCLE SLIDER AND SET GLOBAL VARIBLE #####
|
||||
# - platform: nextion
|
||||
@@ -867,7 +867,7 @@ text_sensor:
|
||||
# symbol=64;
|
||||
# }
|
||||
# id(disp1).send_command_printf("home.a50.pic=%i", symbol);
|
||||
# id(disp1).send_command_printf("thermostat.a50.pic=%i", symbol);
|
||||
# id(disp1).send_command_printf("climate.a50.pic=%i", symbol);
|
||||
|
||||
##### Hotwater Charge ICON #####
|
||||
# - platform: homeassistant
|
||||
@@ -880,9 +880,9 @@ text_sensor:
|
||||
# switch.is_on: nextion_init
|
||||
# - lambda: |-
|
||||
# if (id(hotwater_charge).state == "on") {
|
||||
# id(disp1).set_component_value("thermostat.a12",1);
|
||||
# id(disp1).set_component_value("climate.a12",1);
|
||||
# } else {
|
||||
# id(disp1).set_component_value("thermostat.a12",0);
|
||||
# id(disp1).set_component_value("climate.a12",0);
|
||||
# }
|
||||
|
||||
#########################################
|
||||
@@ -956,7 +956,7 @@ switch:
|
||||
# assumed_state: false
|
||||
# optimistic: true
|
||||
# on_turn_off:
|
||||
# - lambda: id(disp1).set_component_value("thermostat.a10",0);
|
||||
# - lambda: id(disp1).set_component_value("climate.a10",0);
|
||||
# - globals.set:
|
||||
# id: hvac_mode_global
|
||||
# value: '0'
|
||||
@@ -965,11 +965,11 @@ switch:
|
||||
# data_template:
|
||||
# entity_id: $ha_climate_thermostat
|
||||
# hvac_mode: 'off'
|
||||
# - lambda: id(disp1).send_command_printf("thermostat.a06.pic=49");
|
||||
# - lambda: id(disp1).send_command_printf("climate.a06.pic=49");
|
||||
# - lambda: id(disp1).send_command_printf("home.a51.pic=53");
|
||||
# - lambda: id(disp1).send_command_printf("thermostat.a51.pic=53");
|
||||
# - lambda: id(disp1).send_command_printf("climate.a51.pic=53");
|
||||
# on_turn_on:
|
||||
# - lambda: id(disp1).set_component_value("thermostat.a10",1);
|
||||
# - lambda: id(disp1).set_component_value("climate.a10",1);
|
||||
# - globals.set:
|
||||
# id: hvac_mode_global
|
||||
# value: '1'
|
||||
@@ -981,12 +981,12 @@ switch:
|
||||
# - lambda: |-
|
||||
# if (id(heating_room_global) == 0)
|
||||
# {
|
||||
# id(disp1).send_command_printf("thermostat.a06.pic=50");
|
||||
# id(disp1).send_command_printf("climate.a06.pic=50");
|
||||
# } else if (id(heating_room_global) == 1) {
|
||||
# id(disp1).send_command_printf("thermostat.a06.pic=51");
|
||||
# id(disp1).send_command_printf("climate.a06.pic=51");
|
||||
# }
|
||||
# - lambda: id(disp1).send_command_printf("home.a51.pic=65");
|
||||
# - lambda: id(disp1).send_command_printf("thermostat.a51.pic=65");
|
||||
# - lambda: id(disp1).send_command_printf("climate.a51.pic=65");
|
||||
|
||||
##### DISPLAY ALWAYS ON #####
|
||||
- platform: gpio
|
||||
@@ -1136,23 +1136,23 @@ display:
|
||||
}
|
||||
# - lambda: |-
|
||||
# id(disp1).send_command_printf("home.a50.pic=53");
|
||||
# id(disp1).send_command_printf("thermostat.a50.pic=53");
|
||||
# id(disp1).send_command_printf("thermostat.a06.pic=50");
|
||||
# id(disp1).send_command_printf("climate.a50.pic=53");
|
||||
# id(disp1).send_command_printf("climate.a06.pic=50");
|
||||
# if (id(heating_room_global) == 1)
|
||||
# {
|
||||
# id(disp1).send_command_printf("home.a52.pic=66");
|
||||
# id(disp1).send_command_printf("thermostat.a52.pic=66");
|
||||
# id(disp1).send_command_printf("thermostat.a06.pic=51");
|
||||
# id(disp1).send_command_printf("climate.a52.pic=66");
|
||||
# id(disp1).send_command_printf("climate.a06.pic=51");
|
||||
# }
|
||||
# - lambda: |-
|
||||
# if (id(hvac_mode_global) == 0) {
|
||||
# id(disp1).send_command_printf("home.a51.pic=53");
|
||||
# id(disp1).send_command_printf("thermostat.a51.pic=53");
|
||||
# id(disp1).send_command_printf("thermostat.a06.pic=49");
|
||||
# id(disp1).send_command_printf("climate.a51.pic=53");
|
||||
# id(disp1).send_command_printf("climate.a06.pic=49");
|
||||
# } else if (id(hvac_mode_global) == 1) {
|
||||
# id(disp1).send_command_printf("home.a51.pic=65");
|
||||
# id(disp1).send_command_printf("thermostat.a51.pic=65");
|
||||
# id(disp1).set_component_value("thermostat.a10",1);
|
||||
# id(disp1).send_command_printf("climate.a51.pic=65");
|
||||
# id(disp1).set_component_value("climate.a10",1);
|
||||
# }
|
||||
|
||||
#############################################################
|
||||
|
||||
Reference in New Issue
Block a user