added more support for trigger types

This commit is contained in:
ari committed 2022-08-06 22:37:26 -04:00
1 parent 1cb40288b1
commit 754cc2ef98
9 files changed
+190 -73

No files matched your search

+14
View File
@@ -8,6 +8,20 @@ const subtypeDescMap: Partial<Record<AutomationNodeSubtype, string>> = {
repeat: "repeat a sequence until or while some conditions are met",
device: "device related actions",
service: "call a service",
event: "Fires when an event is being received.",
homeassistant: "Fires when Home Assistant starts up or shuts down.",
mqtt: "Fires when a specific message is received on given MQTT topic.",
sun: "Fires when the sun is setting or rising.",
numeric_state:
"Fires when the numeric value of an entity's state or attribute changes.",
state: "Fires when an entity's state or attribute changes",
template: "Evaluate a custom template",
time: "Specify a certain time to run",
webhook:
"Webhook trigger fires when a web request is made to the webhook endpoint",
zone: "Specify when an entity enters or leaves a zone",
tag: "Fires when a tag is scanned.",
calendar: "Fires when a Calendar event starts or ends.",
};
export const getNodeSubTypeDescription = (