trigger automation in metadata

This commit is contained in:
ari committed 2022-08-05 22:22:28 -04:00
1 parent ab7f50d4aa
commit f1b99cad1c
11 files changed
+36 -10

No files matched your search

+10
View File
@@ -11,6 +11,16 @@ export const AutomationRoute: FC<{ api: ApiService }> = ({ api }) => {
<AutomationManager
api={api}
refreshAutomations={() => ha.callService("automation", "reload")}
triggerAutomation={(entity_id) =>
ha.callService(
"automation",
"trigger",
{},
{
entity_id,
}
)
}
forceDeleteAutomation={(eid) =>
ha.callHA({
entity_id: eid,