Fix invalid call to fan.oscillate

Solves #1873
This commit is contained in:
Edward Firmo
2024-03-11 18:43:44 +01:00
parent e9aa032f66
commit 92940d82f2
2 changed files with 10 additions and 4 deletions

View File

@@ -878,7 +878,7 @@ display:
switch (component_id) {
case 17: // bt_oscillate
if (!touch_event) { // Release
ha_call_service->execute("fan.oscillate", "", "", detailed_entity->state.c_str());
ha_call_service->execute("fan.oscillate", "oscillating", "toggle", detailed_entity->state.c_str());
}
break;
}
@@ -2016,9 +2016,9 @@ script:
{
{"type", "service_call"},
{"service", service},
{"entity", entity},
{"key", key},
{"value", value}
{"value", value},
{"entity", entity}
});
}
}