Update BETA_esphome.yaml
This commit is contained in:
@@ -174,6 +174,36 @@ api:
|
||||
switch.is_on: nextion_init
|
||||
- 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
|
||||
name: $device_name Climate Target DOWN
|
||||
page_id: 6
|
||||
component_id: 14
|
||||
component_id: 13
|
||||
internal: true
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
@@ -295,7 +325,7 @@ binary_sensor:
|
||||
- platform: nextion
|
||||
name: $device_name Climate Target UP
|
||||
page_id: 6
|
||||
component_id: 15
|
||||
component_id: 14
|
||||
internal: true
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
@@ -309,68 +339,68 @@ binary_sensor:
|
||||
name: $device_name Heating Room State
|
||||
id: heating_room_state
|
||||
page_id: 6
|
||||
component_id: 17
|
||||
component_id: 16
|
||||
internal: true
|
||||
on_click:
|
||||
- switch.toggle: hvac_mode
|
||||
|
||||
##### Display Brightness - BUTTON DECREASES Brightness #####
|
||||
- platform: nextion
|
||||
name: $device_name Brightness DOWN
|
||||
page_id: 7
|
||||
component_id: 12
|
||||
internal: true
|
||||
on_click:
|
||||
- number.set:
|
||||
id: display_brightness
|
||||
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).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
||||
# - platform: nextion
|
||||
# name: $device_name Brightness DOWN
|
||||
# page_id: 7
|
||||
# component_id: 12
|
||||
# internal: true
|
||||
# on_click:
|
||||
# - number.set:
|
||||
# id: display_brightness
|
||||
# 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).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
||||
|
||||
##### Display Brightness - BUTTON INCREASES Brightness #####
|
||||
- platform: nextion
|
||||
name: $device_name Brightness UP
|
||||
page_id: 7
|
||||
component_id: 13
|
||||
internal: true
|
||||
on_click:
|
||||
- number.set:
|
||||
id: display_brightness
|
||||
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).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
||||
# - platform: nextion
|
||||
# name: $device_name Brightness UP
|
||||
# page_id: 7
|
||||
# component_id: 13
|
||||
# internal: true
|
||||
# on_click:
|
||||
# - number.set:
|
||||
# id: display_brightness
|
||||
# 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).send_command_printf("settings.brightslider.val=%i", id(display_brightness_global));
|
||||
|
||||
##### Display DIM Brightness - BUTTON DECREASES Brightness #####
|
||||
- platform: nextion
|
||||
name: $device_name Brightness DIM DOWN
|
||||
page_id: 7
|
||||
component_id: 14
|
||||
internal: true
|
||||
on_click:
|
||||
- number.set:
|
||||
id: display_dim_brightness
|
||||
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).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
||||
# - platform: nextion
|
||||
# name: $device_name Brightness DIM DOWN
|
||||
# page_id: 7
|
||||
# component_id: 14
|
||||
# internal: true
|
||||
# on_click:
|
||||
# - number.set:
|
||||
# id: display_dim_brightness
|
||||
# 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).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
||||
|
||||
##### Display DIM Brightness - BUTTON INCREASES Brightness #####
|
||||
- platform: nextion
|
||||
name: $device_name Brightness DIM UP
|
||||
page_id: 7
|
||||
component_id: 15
|
||||
internal: true
|
||||
on_click:
|
||||
- number.set:
|
||||
id: display_dim_brightness
|
||||
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).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
||||
# - platform: nextion
|
||||
# name: $device_name Brightness DIM UP
|
||||
# page_id: 7
|
||||
# component_id: 15
|
||||
# internal: true
|
||||
# on_click:
|
||||
# - number.set:
|
||||
# id: display_dim_brightness
|
||||
# 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).send_command_printf("settings.dimslider.val=%i", id(display_dim_brightness_global));
|
||||
|
||||
##### Restart NSPanel Button #####
|
||||
- platform: nextion
|
||||
name: $device_name Restart
|
||||
page_id: 7
|
||||
component_id: 11
|
||||
component_id: 10
|
||||
internal: true
|
||||
on_click:
|
||||
- button.press: restart_nspanel
|
||||
@@ -379,7 +409,7 @@ binary_sensor:
|
||||
- platform: nextion
|
||||
name: $device_name Sleep Modus
|
||||
page_id: 7
|
||||
component_id: 6
|
||||
component_id: 5
|
||||
internal: true
|
||||
on_click:
|
||||
- switch.toggle: sleep_modus
|
||||
@@ -388,7 +418,7 @@ binary_sensor:
|
||||
- platform: nextion
|
||||
name: $device_name Hotwater Charge
|
||||
page_id: 6
|
||||
component_id: 22
|
||||
component_id: 21
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
|
||||
Reference in New Issue
Block a user