Add device actions to automation editor. (#3637)

* Add device actions to automation editor.

* Copy automation on selection

* Fix types

* Remove device from device action schema
This commit is contained in:
Erik Montnemery
2019-09-10 03:01:58 +08:00
committed by Paulus Schoutsen
parent f2999c30f3
commit 5448cbf1c5
8 changed files with 134 additions and 1 deletions

View File

@@ -7,6 +7,12 @@ export interface EventAction {
event_data_template?: { [key: string]: any };
}
export interface DeviceAction {
device_id: string;
domain: string;
entity_id: string;
}
export const triggerScript = (
hass: HomeAssistant,
entityId: string,