@@ -682,12 +682,12 @@ api:
|
|||||||
id(disp1).set_component_value("is_muted", (is_volume_muted) ? 1 : 0);
|
id(disp1).set_component_value("is_muted", (is_volume_muted) ? 1 : 0);
|
||||||
if (supported_features & 8 and is_volume_muted) // unmute
|
if (supported_features & 8 and is_volume_muted) // unmute
|
||||||
{
|
{
|
||||||
id(disp1).set_component_text_printf("bt_mute", "%s", "\uE57E"); // mdi:volume-low
|
id(disp1).set_component_text_printf("bt_mute", "%s", "\uEE07"); // mdi:volume-variant-off
|
||||||
id(disp1).show_component("bt_mute");
|
id(disp1).show_component("bt_mute");
|
||||||
}
|
}
|
||||||
else if (supported_features & 8) // mute
|
else if (supported_features & 8) // mute
|
||||||
{
|
{
|
||||||
id(disp1).set_component_text_printf("bt_mute", "%s", "\uEE07"); // mdi:volume-variant-off
|
id(disp1).set_component_text_printf("bt_mute", "%s", "\uE57E"); // mdi:volume-low
|
||||||
id(disp1).show_component("bt_mute");
|
id(disp1).show_component("bt_mute");
|
||||||
}
|
}
|
||||||
else id(disp1).hide_component("bt_mute");
|
else id(disp1).hide_component("bt_mute");
|
||||||
@@ -1620,7 +1620,9 @@ number:
|
|||||||
icon: mdi:timer
|
icon: mdi:timer
|
||||||
unit_of_measurement: "s"
|
unit_of_measurement: "s"
|
||||||
set_action:
|
set_action:
|
||||||
- lambda: id(timer_sleep).execute(id(current_page).state.c_str(), int(x));
|
- lambda: |-
|
||||||
|
id(timer_dim).execute(id(current_page).state.c_str(), int(id(timeout_dim).state));
|
||||||
|
id(timer_sleep).execute(id(current_page).state.c_str(), int(x));
|
||||||
|
|
||||||
##### START - SELECT CONFIGURATION #####
|
##### START - SELECT CONFIGURATION #####
|
||||||
select:
|
select:
|
||||||
@@ -1739,7 +1741,8 @@ script:
|
|||||||
timeout: int
|
timeout: int
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
ESP_LOGV("script.timer_dim", "Reset timer: %is", timeout);
|
ESP_LOGD("script.timer_dim", "Reset timer: %is", timeout);
|
||||||
|
ESP_LOGD("script.timer_dim", "Is dim? %i", id(is_dim_brightness) ? 1 : 0);
|
||||||
if (id(is_dim_brightness))
|
if (id(is_dim_brightness))
|
||||||
{
|
{
|
||||||
if (page != "screensaver" and page != "boot")
|
if (page != "screensaver" and page != "boot")
|
||||||
|
|||||||
BIN
nspanel_eu.HMI
BIN
nspanel_eu.HMI
Binary file not shown.
BIN
nspanel_eu.tft
BIN
nspanel_eu.tft
Binary file not shown.
@@ -223,7 +223,7 @@ Text bt_mute
|
|||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(is_muted.val==1)
|
if(is_muted.val==0)
|
||||||
{
|
{
|
||||||
va0.txt="true"
|
va0.txt="true"
|
||||||
}else
|
}else
|
||||||
|
|||||||
BIN
nspanel_us.HMI
BIN
nspanel_us.HMI
Binary file not shown.
BIN
nspanel_us.tft
BIN
nspanel_us.tft
Binary file not shown.
@@ -223,7 +223,7 @@ Text bt_mute
|
|||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(is_muted.val==1)
|
if(is_muted.val==0)
|
||||||
{
|
{
|
||||||
va0.txt="true"
|
va0.txt="true"
|
||||||
}else
|
}else
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -223,7 +223,7 @@ Text bt_mute
|
|||||||
printh FF FF FF
|
printh FF FF FF
|
||||||
|
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
if(is_muted.val==1)
|
if(is_muted.val==0)
|
||||||
{
|
{
|
||||||
va0.txt="true"
|
va0.txt="true"
|
||||||
}else
|
}else
|
||||||
|
|||||||
Reference in New Issue
Block a user