Compare commits

..

2 Commits

Author SHA1 Message Date
randy 06f125e851 Simplify status led
CI / YAML lint (push) Has been cancelled
CI / ESPHome config validation (push) Has been cancelled
2026-04-06 14:36:37 +02:00
randy a35b003284 Allow async and disable reboot for MQTT on all NSPanels 2026-04-06 14:35:01 +02:00
6 changed files with 12 additions and 8 deletions
+3 -8
View File
@@ -17,16 +17,11 @@ esphome:
auto state = App.get_app_state();
if (state != last_state) {
if (state & STATUS_LED_ERROR) {
auto call = id(led).turn_on();
call.set_effect("ERROR");
call.perform();
id(led).turn_on().set_effect('ERROR').perform();
} else if (state & STATUS_LED_WARNING) {
auto call = id(led).turn_on();
call.set_effect("BOOT");
call.perform();
id(led).turn_on().set_effect('BOOT').perform();
} else {
auto call = id(led).turn_off();
call.perform();
id(led).turn_off().perform();
}
last_state = state;
}
+2
View File
@@ -172,6 +172,8 @@ mqtt:
username: !secret mqtt_username
password: !secret mqtt_password
discovery: false
idf_send_async: true
reboot_timeout: 0s
nspanel_lovelace:
id: nspanel_id
+2
View File
@@ -170,6 +170,8 @@ mqtt:
username: !secret mqtt_username
password: !secret mqtt_password
discovery: false
idf_send_async: true
reboot_timeout: 0s
nspanel_lovelace:
id: nspanel_id
+2
View File
@@ -176,6 +176,8 @@ mqtt:
username: !secret mqtt_username
password: !secret mqtt_password
discovery: false
idf_send_async: true
reboot_timeout: 0s
nspanel_lovelace:
id: nspanel_id
+1
View File
@@ -196,6 +196,7 @@ mqtt:
password: !secret mqtt_password
discovery: false
idf_send_async: true
reboot_timeout: 0s
nspanel_lovelace:
id: nspanel_id
+2
View File
@@ -170,6 +170,8 @@ mqtt:
username: !secret mqtt_username
password: !secret mqtt_password
discovery: false
idf_send_async: true
reboot_timeout: 0s
nspanel_lovelace:
id: nspanel_id