Update BETA_esphome.yaml
This commit is contained in:
@@ -806,9 +806,9 @@ text_sensor:
|
|||||||
- wait_until:
|
- wait_until:
|
||||||
switch.is_on: nextion_init
|
switch.is_on: nextion_init
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
int symbol=60; // 60 is a blank image 30x30
|
int symbol=53; // 53 is a blank image 20x20
|
||||||
if (id(heating_system).state == "on") {
|
if (id(heating_system).state == "on") {
|
||||||
symbol=61;
|
symbol=64;
|
||||||
}
|
}
|
||||||
id(disp1).send_command_printf("home.a50.pic=%i", symbol);
|
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("thermostat.a50.pic=%i", symbol);
|
||||||
@@ -941,19 +941,19 @@ switch:
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
if (id(hvac_mode_global) == 0)
|
if (id(hvac_mode_global) == 0)
|
||||||
{
|
{
|
||||||
id(disp1).send_command_printf("thermostat.a06.pic=51");
|
id(disp1).send_command_printf("thermostat.a06.pic=49");
|
||||||
} else if (id(hvac_mode_global) == 1) {
|
} else if (id(hvac_mode_global) == 1) {
|
||||||
id(disp1).send_command_printf("thermostat.a06.pic=52");
|
id(disp1).send_command_printf("thermostat.a06.pic=50");
|
||||||
}
|
}
|
||||||
- lambda: id(disp1).send_command_printf("home.a52.pic=60");
|
- lambda: id(disp1).send_command_printf("home.a52.pic=53");
|
||||||
- lambda: id(disp1).send_command_printf("thermostat.a52.pic=60");
|
- lambda: id(disp1).send_command_printf("thermostat.a52.pic=53");
|
||||||
on_turn_on:
|
on_turn_on:
|
||||||
- globals.set:
|
- globals.set:
|
||||||
id: heating_room_global
|
id: heating_room_global
|
||||||
value: '1'
|
value: '1'
|
||||||
- lambda: id(disp1).send_command_printf("thermostat.a06.pic=53");
|
- lambda: id(disp1).send_command_printf("thermostat.a06.pic=51");
|
||||||
- lambda: id(disp1).send_command_printf("home.a52.pic=63");
|
- lambda: id(disp1).send_command_printf("home.a52.pic=66");
|
||||||
- lambda: id(disp1).send_command_printf("thermostat.a52.pic=63");
|
- lambda: id(disp1).send_command_printf("thermostat.a52.pic=66");
|
||||||
|
|
||||||
##### Switch Climate HVAC Mode #####
|
##### Switch Climate HVAC Mode #####
|
||||||
- platform: template
|
- platform: template
|
||||||
@@ -973,9 +973,9 @@ switch:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: $ha_climate_thermostat
|
entity_id: $ha_climate_thermostat
|
||||||
hvac_mode: 'off'
|
hvac_mode: 'off'
|
||||||
- lambda: id(disp1).send_command_printf("thermostat.a06.pic=51");
|
- lambda: id(disp1).send_command_printf("thermostat.a06.pic=49");
|
||||||
- lambda: id(disp1).send_command_printf("home.a51.pic=60");
|
- lambda: id(disp1).send_command_printf("home.a51.pic=53");
|
||||||
- lambda: id(disp1).send_command_printf("thermostat.a51.pic=60");
|
- lambda: id(disp1).send_command_printf("thermostat.a51.pic=53");
|
||||||
on_turn_on:
|
on_turn_on:
|
||||||
- lambda: id(disp1).set_component_value("thermostat.a10",1);
|
- lambda: id(disp1).set_component_value("thermostat.a10",1);
|
||||||
- globals.set:
|
- globals.set:
|
||||||
@@ -989,12 +989,12 @@ switch:
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
if (id(heating_room_global) == 0)
|
if (id(heating_room_global) == 0)
|
||||||
{
|
{
|
||||||
id(disp1).send_command_printf("thermostat.a06.pic=52");
|
id(disp1).send_command_printf("thermostat.a06.pic=50");
|
||||||
} else if (id(heating_room_global) == 1) {
|
} else if (id(heating_room_global) == 1) {
|
||||||
id(disp1).send_command_printf("thermostat.a06.pic=53");
|
id(disp1).send_command_printf("thermostat.a06.pic=51");
|
||||||
}
|
}
|
||||||
- lambda: id(disp1).send_command_printf("home.a51.pic=62");
|
- lambda: id(disp1).send_command_printf("home.a51.pic=65");
|
||||||
- lambda: id(disp1).send_command_printf("thermostat.a51.pic=62");
|
- lambda: id(disp1).send_command_printf("thermostat.a51.pic=65");
|
||||||
|
|
||||||
##### DISPLAY ALWAYS ON #####
|
##### DISPLAY ALWAYS ON #####
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@@ -1143,26 +1143,26 @@ display:
|
|||||||
id(disp1).set_component_value("settings.a02",1);
|
id(disp1).set_component_value("settings.a02",1);
|
||||||
}
|
}
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(disp1).send_command_printf("home.a50.pic=60");
|
id(disp1).send_command_printf("home.a50.pic=53");
|
||||||
id(disp1).send_command_printf("thermostat.a50.pic=60");
|
id(disp1).send_command_printf("thermostat.a50.pic=53");
|
||||||
id(disp1).send_command_printf("thermostat.a06.pic=52");
|
id(disp1).send_command_printf("thermostat.a06.pic=50");
|
||||||
if (id(heating_room_global) == 1)
|
if (id(heating_room_global) == 1)
|
||||||
{
|
{
|
||||||
id(disp1).send_command_printf("home.a52.pic=63");
|
id(disp1).send_command_printf("home.a52.pic=66");
|
||||||
id(disp1).send_command_printf("thermostat.a52.pic=63");
|
id(disp1).send_command_printf("thermostat.a52.pic=66");
|
||||||
id(disp1).send_command_printf("thermostat.a06.pic=53");
|
id(disp1).send_command_printf("thermostat.a06.pic=51");
|
||||||
}
|
}
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
if (id(hvac_mode_global) == 0) {
|
if (id(hvac_mode_global) == 0) {
|
||||||
id(disp1).send_command_printf("home.a51.pic=60");
|
id(disp1).send_command_printf("home.a51.pic=53");
|
||||||
id(disp1).send_command_printf("thermostat.a51.pic=60");
|
id(disp1).send_command_printf("thermostat.a51.pic=53");
|
||||||
id(disp1).send_command_printf("thermostat.a06.pic=51");
|
id(disp1).send_command_printf("thermostat.a06.pic=49");
|
||||||
} else if (id(hvac_mode_global) == 1) {
|
} else if (id(hvac_mode_global) == 1) {
|
||||||
id(disp1).send_command_printf("home.a51.pic=62");
|
id(disp1).send_command_printf("home.a51.pic=65");
|
||||||
id(disp1).send_command_printf("thermostat.a51.pic=62");
|
id(disp1).send_command_printf("thermostat.a51.pic=65");
|
||||||
id(disp1).set_component_value("thermostat.a10",1);
|
id(disp1).set_component_value("thermostat.a10",1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - DISPLAY START #####
|
##### CLOSE - DISPLAY START #####
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user