Update BETA_esphome.yaml
This commit is contained in:
@@ -174,6 +174,36 @@ api:
|
|||||||
switch.is_on: nextion_init
|
switch.is_on: nextion_init
|
||||||
- lambda: 'id(disp1).set_component_value(component.c_str(), message);'
|
- lambda: 'id(disp1).set_component_value(component.c_str(), message);'
|
||||||
|
|
||||||
|
##### Service to send a command "component_value (Dualstate Button)" directly to the display. Useful for testing #####
|
||||||
|
- service: send_command_hide
|
||||||
|
variables:
|
||||||
|
component: string
|
||||||
|
then:
|
||||||
|
- wait_until:
|
||||||
|
switch.is_on: nextion_init
|
||||||
|
- lambda: 'id(disp1).hide_component(component.c_str());'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##### Service to send a command "component_value (Dualstate Button)" directly to the display. Useful for testing #####
|
||||||
|
- service: send_command_font_color
|
||||||
|
variables:
|
||||||
|
component: string
|
||||||
|
message: int
|
||||||
|
then:
|
||||||
|
- wait_until:
|
||||||
|
switch.is_on: nextion_init
|
||||||
|
- lambda: 'id(disp1).set_component_font_color(component.c_str(), message);'
|
||||||
|
##### Service to send a command "component_value (Dualstate Button)" directly to the display. Useful for testing #####
|
||||||
|
- service: send_command_background_color
|
||||||
|
variables:
|
||||||
|
component: string
|
||||||
|
message: int
|
||||||
|
then:
|
||||||
|
- wait_until:
|
||||||
|
switch.is_on: nextion_init
|
||||||
|
- lambda: 'id(disp1).set_component_background_color(component.c_str(), message);'
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@@ -282,7 +312,7 @@ binary_sensor:
|
|||||||
- platform: nextion
|
- platform: nextion
|
||||||
name: $device_name Climate Target DOWN
|
name: $device_name Climate Target DOWN
|
||||||
page_id: 6
|
page_id: 6
|
||||||
component_id: 14
|
component_id: 13
|
||||||
internal: true
|
internal: true
|
||||||
on_click:
|
on_click:
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
@@ -295,7 +325,7 @@ binary_sensor:
|
|||||||
- platform: nextion
|
- platform: nextion
|
||||||
name: $device_name Climate Target UP
|
name: $device_name Climate Target UP
|
||||||
page_id: 6
|
page_id: 6
|
||||||
component_id: 15
|
component_id: 14
|
||||||
internal: true
|
internal: true
|
||||||
on_click:
|
on_click:
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
@@ -309,68 +339,68 @@ binary_sensor:
|
|||||||
name: $device_name Heating Room State
|
name: $device_name Heating Room State
|
||||||
id: heating_room_state
|
id: heating_room_state
|
||||||
page_id: 6
|
page_id: 6
|
||||||
component_id: 17
|
component_id: 16
|
||||||
internal: true
|
internal: true
|
||||||
on_click:
|
on_click:
|
||||||
- switch.toggle: hvac_mode
|
- switch.toggle: hvac_mode
|
||||||
|
|
||||||
##### Display Brightness - BUTTON DECREASES Brightness #####
|
##### Display Brightness - BUTTON DECREASES Brightness #####
|
||||||
- platform: nextion
|
# - platform: nextion
|
||||||
name: $device_name Brightness DOWN
|
# name: $device_name Brightness DOWN
|
||||||
page_id: 7
|
# page_id: 7
|
||||||
component_id: 12
|
# component_id: 12
|
||||||
internal: true
|
# internal: true
|
||||||
on_click:
|
# on_click:
|
||||||
- number.set:
|
# - number.set:
|
||||||
id: display_brightness
|
# id: display_brightness
|
||||||
value: !lambda return id(display_brightness_global) - 1;
|
# value: !lambda return id(display_brightness_global) - 1;
|
||||||
- lambda: id(disp1).set_component_text_printf("settings.a03", "%i", id(display_brightness_global));
|
# - lambda: id(disp1).set_component_text_printf("settings.a03", "%i", id(display_brightness_global));
|
||||||
- lambda: id(disp1).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
# - lambda: id(disp1).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
||||||
|
|
||||||
##### Display Brightness - BUTTON INCREASES Brightness #####
|
##### Display Brightness - BUTTON INCREASES Brightness #####
|
||||||
- platform: nextion
|
# - platform: nextion
|
||||||
name: $device_name Brightness UP
|
# name: $device_name Brightness UP
|
||||||
page_id: 7
|
# page_id: 7
|
||||||
component_id: 13
|
# component_id: 13
|
||||||
internal: true
|
# internal: true
|
||||||
on_click:
|
# on_click:
|
||||||
- number.set:
|
# - number.set:
|
||||||
id: display_brightness
|
# id: display_brightness
|
||||||
value: !lambda return id(display_brightness_global) + 1;
|
# value: !lambda return id(display_brightness_global) + 1;
|
||||||
- lambda: id(disp1).set_component_text_printf("settings.a03", "%i", id(display_brightness_global));
|
# - lambda: id(disp1).set_component_text_printf("settings.a03", "%i", id(display_brightness_global));
|
||||||
- lambda: id(disp1).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
# - lambda: id(disp1).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
||||||
|
|
||||||
##### Display DIM Brightness - BUTTON DECREASES Brightness #####
|
##### Display DIM Brightness - BUTTON DECREASES Brightness #####
|
||||||
- platform: nextion
|
# - platform: nextion
|
||||||
name: $device_name Brightness DIM DOWN
|
# name: $device_name Brightness DIM DOWN
|
||||||
page_id: 7
|
# page_id: 7
|
||||||
component_id: 14
|
# component_id: 14
|
||||||
internal: true
|
# internal: true
|
||||||
on_click:
|
# on_click:
|
||||||
- number.set:
|
# - number.set:
|
||||||
id: display_dim_brightness
|
# id: display_dim_brightness
|
||||||
value: !lambda return id(display_dim_brightness_global) - 1;
|
# value: !lambda return id(display_dim_brightness_global) - 1;
|
||||||
- lambda: id(disp1).set_component_text_printf("settings.a04", "%i", id(display_dim_brightness_global));
|
# - lambda: id(disp1).set_component_text_printf("settings.a04", "%i", id(display_dim_brightness_global));
|
||||||
- lambda: id(disp1).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
# - lambda: id(disp1).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
||||||
|
|
||||||
##### Display DIM Brightness - BUTTON INCREASES Brightness #####
|
##### Display DIM Brightness - BUTTON INCREASES Brightness #####
|
||||||
- platform: nextion
|
# - platform: nextion
|
||||||
name: $device_name Brightness DIM UP
|
# name: $device_name Brightness DIM UP
|
||||||
page_id: 7
|
# page_id: 7
|
||||||
component_id: 15
|
# component_id: 15
|
||||||
internal: true
|
# internal: true
|
||||||
on_click:
|
# on_click:
|
||||||
- number.set:
|
# - number.set:
|
||||||
id: display_dim_brightness
|
# id: display_dim_brightness
|
||||||
value: !lambda return id(display_dim_brightness_global) + 1;
|
# value: !lambda return id(display_dim_brightness_global) + 1;
|
||||||
- lambda: id(disp1).set_component_text_printf("settings.a04", "%i", id(display_dim_brightness_global));
|
# - lambda: id(disp1).set_component_text_printf("settings.a04", "%i", id(display_dim_brightness_global));
|
||||||
- lambda: id(disp1).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
# - lambda: id(disp1).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
||||||
|
|
||||||
##### Restart NSPanel Button #####
|
##### Restart NSPanel Button #####
|
||||||
- platform: nextion
|
- platform: nextion
|
||||||
name: $device_name Restart
|
name: $device_name Restart
|
||||||
page_id: 7
|
page_id: 7
|
||||||
component_id: 11
|
component_id: 10
|
||||||
internal: true
|
internal: true
|
||||||
on_click:
|
on_click:
|
||||||
- button.press: restart_nspanel
|
- button.press: restart_nspanel
|
||||||
@@ -379,7 +409,7 @@ binary_sensor:
|
|||||||
- platform: nextion
|
- platform: nextion
|
||||||
name: $device_name Sleep Modus
|
name: $device_name Sleep Modus
|
||||||
page_id: 7
|
page_id: 7
|
||||||
component_id: 6
|
component_id: 5
|
||||||
internal: true
|
internal: true
|
||||||
on_click:
|
on_click:
|
||||||
- switch.toggle: sleep_modus
|
- switch.toggle: sleep_modus
|
||||||
@@ -388,7 +418,7 @@ binary_sensor:
|
|||||||
- platform: nextion
|
- platform: nextion
|
||||||
name: $device_name Hotwater Charge
|
name: $device_name Hotwater Charge
|
||||||
page_id: 6
|
page_id: 6
|
||||||
component_id: 22
|
component_id: 21
|
||||||
on_click:
|
on_click:
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: switch.toggle
|
service: switch.toggle
|
||||||
|
|||||||
Reference in New Issue
Block a user