More logs

This commit is contained in:
2026-04-28 00:29:18 +02:00
parent 2d63ec6006
commit 361cf52252

View File

@@ -1231,41 +1231,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 3 800 800 255 0 0\n");
{ const char* cmd = "BLINK 0 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 3 150 150 255 0 0\n");
{ const char* cmd = "BLINK 0 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 3 100 400 255 0 0\n");
{ const char* cmd = "BLINK 0 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 3 3000 255 0 0\n");
{ const char* cmd = "BREATHE 0 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 3 1200 255 0 0\n");
{ const char* cmd = "BREATHE 0 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 0 3 255 0 0\n");
on_turn_off:
- lambda: |-
id(arduino_uart).write_str("LED 0 3 0 0 0\n");
{ const char* cmd = "DFLASH 0 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge0_red_indicator).remote_values.is_on()) return;
if (!id(gauge0_red_indicator).remote_values.is_on()) {
{ const char* cmd = "LED 0 3 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge0_red_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 0 3 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 0 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 0 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 0 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 0 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 0 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 0 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 0 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1278,41 +1290,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 4 800 800 0 255 0\n");
{ const char* cmd = "BLINK 0 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 4 150 150 0 255 0\n");
{ const char* cmd = "BLINK 0 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 4 100 400 0 255 0\n");
{ const char* cmd = "BLINK 0 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 4 3000 0 255 0\n");
{ const char* cmd = "BREATHE 0 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 4 1200 0 255 0\n");
{ const char* cmd = "BREATHE 0 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 0 4 0 255 0\n");
{ const char* cmd = "DFLASH 0 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge0_green_indicator).remote_values.is_on()) {
id(arduino_uart).write_str("LED 0 4 0 0 0\n");
{ const char* cmd = "LED 0 4 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge0_green_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 0 4 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 0 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 0 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 0 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 0 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 0 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 0 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 0 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1325,41 +1349,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 5 800 800 255 0 0\n");
{ const char* cmd = "BLINK 0 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 5 150 150 255 0 0\n");
{ const char* cmd = "BLINK 0 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 5 100 400 255 0 0\n");
{ const char* cmd = "BLINK 0 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 5 3000 255 0 0\n");
{ const char* cmd = "BREATHE 0 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 5 1200 255 0 0\n");
{ const char* cmd = "BREATHE 0 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 0 5 255 0 0\n");
{ const char* cmd = "DFLASH 0 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge0_status_red).remote_values.is_on()) {
id(arduino_uart).write_str("LED 0 5 0 0 0\n");
{ const char* cmd = "LED 0 5 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge0_status_red).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 0 5 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 0 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 0 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 0 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 0 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 0 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 0 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 0 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1372,41 +1408,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 6 800 800 0 255 0\n");
{ const char* cmd = "BLINK 0 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 6 150 150 0 255 0\n");
{ const char* cmd = "BLINK 0 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 0 6 100 400 0 255 0\n");
{ const char* cmd = "BLINK 0 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 6 3000 0 255 0\n");
{ const char* cmd = "BREATHE 0 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 0 6 1200 0 255 0\n");
{ const char* cmd = "BREATHE 0 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 0 6 0 255 0\n");
{ const char* cmd = "DFLASH 0 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge0_status_green).remote_values.is_on()) {
id(arduino_uart).write_str("LED 0 6 0 0 0\n");
{ const char* cmd = "LED 0 6 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge0_status_green).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 0 6 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 0 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 0 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 0 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 0 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 0 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 0 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 0 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: rgb
@@ -1495,41 +1543,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 3 800 800 255 0 0\n");
{ const char* cmd = "BLINK 1 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 3 150 150 255 0 0\n");
{ const char* cmd = "BLINK 1 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 3 100 400 255 0 0\n");
{ const char* cmd = "BLINK 1 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 3 3000 255 0 0\n");
{ const char* cmd = "BREATHE 1 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 3 1200 255 0 0\n");
{ const char* cmd = "BREATHE 1 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 1 3 255 0 0\n");
{ const char* cmd = "DFLASH 1 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge1_red_indicator).remote_values.is_on()) {
id(arduino_uart).write_str("LED 1 3 0 0 0\n");
{ const char* cmd = "LED 1 3 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge1_red_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 1 3 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 1 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 1 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 1 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 1 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 1 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 1 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 1 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1542,41 +1602,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 4 800 800 0 255 0\n");
{ const char* cmd = "BLINK 1 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 4 150 150 0 255 0\n");
{ const char* cmd = "BLINK 1 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 4 100 400 0 255 0\n");
{ const char* cmd = "BLINK 1 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 4 3000 0 255 0\n");
{ const char* cmd = "BREATHE 1 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 4 1200 0 255 0\n");
{ const char* cmd = "BREATHE 1 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 1 4 0 255 0\n");
{ const char* cmd = "DFLASH 1 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge1_green_indicator).remote_values.is_on()) {
id(arduino_uart).write_str("LED 1 4 0 0 0\n");
{ const char* cmd = "LED 1 4 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge1_green_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 1 4 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 1 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 1 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 1 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 1 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 1 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 1 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 1 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1589,41 +1661,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 5 800 800 255 0 0\n");
{ const char* cmd = "BLINK 1 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 5 150 150 255 0 0\n");
{ const char* cmd = "BLINK 1 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 5 100 400 255 0 0\n");
{ const char* cmd = "BLINK 1 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 5 3000 255 0 0\n");
{ const char* cmd = "BREATHE 1 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 5 1200 255 0 0\n");
{ const char* cmd = "BREATHE 1 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 1 5 255 0 0\n");
{ const char* cmd = "DFLASH 1 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge1_status_red).remote_values.is_on()) {
id(arduino_uart).write_str("LED 1 5 0 0 0\n");
{ const char* cmd = "LED 1 5 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge1_status_red).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 1 5 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 1 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 1 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 1 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 1 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 1 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 1 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 1 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1636,41 +1720,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 6 800 800 0 255 0\n");
{ const char* cmd = "BLINK 1 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 6 150 150 0 255 0\n");
{ const char* cmd = "BLINK 1 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 1 6 100 400 0 255 0\n");
{ const char* cmd = "BLINK 1 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 6 3000 0 255 0\n");
{ const char* cmd = "BREATHE 1 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 1 6 1200 0 255 0\n");
{ const char* cmd = "BREATHE 1 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 1 6 0 255 0\n");
{ const char* cmd = "DFLASH 1 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge1_status_green).remote_values.is_on()) {
id(arduino_uart).write_str("LED 1 6 0 0 0\n");
{ const char* cmd = "LED 1 6 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge1_status_green).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 1 6 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 1 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 1 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 1 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 1 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 1 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 1 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 1 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: rgb
@@ -1759,41 +1855,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 3 800 800 255 0 0\n");
{ const char* cmd = "BLINK 2 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 3 150 150 255 0 0\n");
{ const char* cmd = "BLINK 2 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 3 100 400 255 0 0\n");
{ const char* cmd = "BLINK 2 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 3 3000 255 0 0\n");
{ const char* cmd = "BREATHE 2 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 3 1200 255 0 0\n");
{ const char* cmd = "BREATHE 2 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 2 3 255 0 0\n");
{ const char* cmd = "DFLASH 2 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge2_red_indicator).remote_values.is_on()) {
id(arduino_uart).write_str("LED 2 3 0 0 0\n");
{ const char* cmd = "LED 2 3 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge2_red_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 2 3 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 2 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 2 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 2 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 2 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 2 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 2 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 2 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1806,41 +1914,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 4 800 800 0 255 0\n");
{ const char* cmd = "BLINK 2 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 4 150 150 0 255 0\n");
{ const char* cmd = "BLINK 2 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 4 100 400 0 255 0\n");
{ const char* cmd = "BLINK 2 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 4 3000 0 255 0\n");
{ const char* cmd = "BREATHE 2 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 4 1200 0 255 0\n");
{ const char* cmd = "BREATHE 2 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 2 4 0 255 0\n");
{ const char* cmd = "DFLASH 2 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge2_green_indicator).remote_values.is_on()) {
id(arduino_uart).write_str("LED 2 4 0 0 0\n");
{ const char* cmd = "LED 2 4 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge2_green_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 2 4 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 2 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 2 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 2 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 2 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 2 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 2 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 2 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1853,41 +1973,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 5 800 800 255 0 0\n");
{ const char* cmd = "BLINK 2 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 5 150 150 255 0 0\n");
{ const char* cmd = "BLINK 2 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 5 100 400 255 0 0\n");
{ const char* cmd = "BLINK 2 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 5 3000 255 0 0\n");
{ const char* cmd = "BREATHE 2 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 5 1200 255 0 0\n");
{ const char* cmd = "BREATHE 2 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 2 5 255 0 0\n");
{ const char* cmd = "DFLASH 2 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge2_status_red).remote_values.is_on()) {
id(arduino_uart).write_str("LED 2 5 0 0 0\n");
{ const char* cmd = "LED 2 5 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge2_status_red).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 2 5 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 2 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 2 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 2 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 2 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 2 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 2 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 2 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -1900,41 +2032,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 6 800 800 0 255 0\n");
{ const char* cmd = "BLINK 2 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 6 150 150 0 255 0\n");
{ const char* cmd = "BLINK 2 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 2 6 100 400 0 255 0\n");
{ const char* cmd = "BLINK 2 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 6 3000 0 255 0\n");
{ const char* cmd = "BREATHE 2 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 2 6 1200 0 255 0\n");
{ const char* cmd = "BREATHE 2 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 2 6 0 255 0\n");
{ const char* cmd = "DFLASH 2 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge2_status_green).remote_values.is_on()) {
id(arduino_uart).write_str("LED 2 6 0 0 0\n");
{ const char* cmd = "LED 2 6 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge2_status_green).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 2 6 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 2 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 2 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 2 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 2 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 2 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 2 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 2 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: rgb
@@ -2023,41 +2167,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 3 800 800 255 0 0\n");
{ const char* cmd = "BLINK 3 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 3 150 150 255 0 0\n");
{ const char* cmd = "BLINK 3 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 3 100 400 255 0 0\n");
{ const char* cmd = "BLINK 3 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 3 3000 255 0 0\n");
{ const char* cmd = "BREATHE 3 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 3 1200 255 0 0\n");
{ const char* cmd = "BREATHE 3 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 3 3 255 0 0\n");
{ const char* cmd = "DFLASH 3 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge3_red_indicator).remote_values.is_on()) {
id(arduino_uart).write_str("LED 3 3 0 0 0\n");
{ const char* cmd = "LED 3 3 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge3_red_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 3 3 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 3 3 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 3 3 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 3 3 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 3 3 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 3 3 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 3 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 3 3 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -2070,41 +2226,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 4 800 800 0 255 0\n");
{ const char* cmd = "BLINK 3 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 4 150 150 0 255 0\n");
{ const char* cmd = "BLINK 3 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 4 100 400 0 255 0\n");
{ const char* cmd = "BLINK 3 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 4 3000 0 255 0\n");
{ const char* cmd = "BREATHE 3 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 4 1200 0 255 0\n");
{ const char* cmd = "BREATHE 3 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 3 4 0 255 0\n");
{ const char* cmd = "DFLASH 3 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge3_green_indicator).remote_values.is_on()) {
id(arduino_uart).write_str("LED 3 4 0 0 0\n");
{ const char* cmd = "LED 3 4 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge3_green_indicator).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 3 4 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 3 4 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 3 4 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 3 4 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 3 4 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 3 4 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 3 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 3 4 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -2117,41 +2285,53 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 5 800 800 255 0 0\n");
{ const char* cmd = "BLINK 3 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 5 150 150 255 0 0\n");
{ const char* cmd = "BLINK 3 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 5 100 400 255 0 0\n");
{ const char* cmd = "BLINK 3 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 5 3000 255 0 0\n");
{ const char* cmd = "BREATHE 3 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 5 1200 255 0 0\n");
{ const char* cmd = "BREATHE 3 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 3 5 255 0 0\n");
{ const char* cmd = "DFLASH 3 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge3_status_red).remote_values.is_on()) {
id(arduino_uart).write_str("LED 3 5 0 0 0\n");
{ const char* cmd = "LED 3 5 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge3_status_red).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 3 5 255 0 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 3 5 800 800 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 3 5 150 150 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 3 5 100 400 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 3 5 3000 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 3 5 1200 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 3 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 3 5 255 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}
- platform: binary
@@ -2164,39 +2344,51 @@ light:
name: Blink Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 6 800 800 0 255 0\n");
{ const char* cmd = "BLINK 3 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 6 150 150 0 255 0\n");
{ const char* cmd = "BLINK 3 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Blink Alert
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BLINK 3 6 100 400 0 255 0\n");
{ const char* cmd = "BLINK 3 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Slow
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 6 3000 0 255 0\n");
{ const char* cmd = "BREATHE 3 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Breathe Fast
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("BREATHE 3 6 1200 0 255 0\n");
{ const char* cmd = "BREATHE 3 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
- lambda:
name: Double Flash
update_interval: 3600s
lambda: |-
id(arduino_uart).write_str("DFLASH 3 6 0 255 0\n");
{ const char* cmd = "DFLASH 3 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
on_state:
- lambda: |-
if (!id(gauge3_status_green).remote_values.is_on()) {
id(arduino_uart).write_str("LED 3 6 0 0 0\n");
{ const char* cmd = "LED 3 6 0 0 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
return;
}
auto effect = id(gauge3_status_green).get_effect_name();
if (effect == "None" || effect.empty()) {
id(arduino_uart).write_str("LED 3 6 0 255 0\n");
if (effect == "Blink Slow") {
{ const char* cmd = "BLINK 3 6 800 800 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Fast") {
{ const char* cmd = "BLINK 3 6 150 150 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Blink Alert") {
{ const char* cmd = "BLINK 3 6 100 400 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Slow") {
{ const char* cmd = "BREATHE 3 6 3000 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Breathe Fast") {
{ const char* cmd = "BREATHE 3 6 1200 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else if (effect == "Double Flash") {
{ const char* cmd = "DFLASH 3 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
} else {
{ const char* cmd = "LED 3 6 0 255 0\n"; ESP_LOGI("uart_tx", "TX: %s", cmd); id(arduino_uart).write_str(cmd); }
}