trigger automation in metadata
This commit is contained in:
1 parent
ab7f50d4aa
commit
f1b99cad1c
11 files changed
+36
-10
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user