check actual values for indicator LEDs
This commit is contained in:
@@ -1259,7 +1259,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 0 3 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge0_red_on)) {
|
||||
if (!id(gauge0_red_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 0 3 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1318,7 +1318,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 0 4 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge0_green_on)) {
|
||||
if (!id(gauge0_green_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 0 4 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1377,7 +1377,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 0 5 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge0_status_red_on)) {
|
||||
if (!id(gauge0_status_red).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 0 5 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1436,7 +1436,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 0 6 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge0_status_green_on)) {
|
||||
if (!id(gauge0_status_green).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 0 6 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1571,7 +1571,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 1 3 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge1_red_on)) {
|
||||
if (!id(gauge1_red_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 1 3 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1630,7 +1630,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 1 4 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge1_green_on)) {
|
||||
if (!id(gauge1_green_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 1 4 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1689,7 +1689,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 1 5 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge1_status_red_on)) {
|
||||
if (!id(gauge1_status_red).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 1 5 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1748,7 +1748,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 1 6 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge1_status_green_on)) {
|
||||
if (!id(gauge1_status_green).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 1 6 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1883,7 +1883,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 2 3 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge2_red_on)) {
|
||||
if (!id(gauge2_red_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 2 3 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -1942,7 +1942,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 2 4 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge2_green_on)) {
|
||||
if (!id(gauge2_green_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 2 4 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -2001,7 +2001,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 2 5 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge2_status_red_on)) {
|
||||
if (!id(gauge2_status_red).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 2 5 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -2060,7 +2060,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 2 6 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge2_status_green_on)) {
|
||||
if (!id(gauge2_status_green).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 2 6 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -2195,7 +2195,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 3 3 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge3_red_on)) {
|
||||
if (!id(gauge3_red_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 3 3 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -2254,7 +2254,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 3 4 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge3_green_on)) {
|
||||
if (!id(gauge3_green_indicator).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 3 4 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -2313,7 +2313,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 3 5 255 0 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge3_status_red_on)) {
|
||||
if (!id(gauge3_status_red).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 3 5 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
@@ -2372,7 +2372,7 @@ light:
|
||||
id(arduino_uart).write_str("DFLASH 3 6 0 255 0\n");
|
||||
on_state:
|
||||
- lambda: |-
|
||||
if (!id(gauge3_status_green_on)) {
|
||||
if (!id(gauge3_status_green).remote_values.is_on()) {
|
||||
id(arduino_uart).write_str("LED 3 6 0 0 0\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user