Call a fan.turn_off when percentage is 0%

Solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/791#discussioncomment-6621756
This commit is contained in:
Edward Firmo
2023-08-03 22:36:03 +02:00
parent 669ead9e79
commit 7ad95a66d8

View File

@@ -1020,7 +1020,7 @@ text_sensor:
} }
else if (domain == "fan") else if (domain == "fan")
{ {
if (key == "stop") if (key == "stop" or value == "0")
{ {
service = "fan.turn_off"; service = "fan.turn_off";
key = ""; key = "";