@@ -682,12 +682,12 @@ api:
|
||||
id(disp1).set_component_value("is_muted", (is_volume_muted) ? 1 : 0);
|
||||
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");
|
||||
}
|
||||
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");
|
||||
}
|
||||
else id(disp1).hide_component("bt_mute");
|
||||
@@ -1620,7 +1620,9 @@ number:
|
||||
icon: mdi:timer
|
||||
unit_of_measurement: "s"
|
||||
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 #####
|
||||
select:
|
||||
@@ -1739,7 +1741,8 @@ script:
|
||||
timeout: int
|
||||
then:
|
||||
- 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 (page != "screensaver" and page != "boot")
|
||||
|
||||
Reference in New Issue
Block a user