File tree 2 files changed +14
-15
lines changed
custom_components/nodered
2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
trigger :
2
- description : Trigger a Node-RED Node
2
+ name : Trigger a Node-RED Node
3
+ description : >
4
+ Trigger a Node-RED node.
3
5
target :
4
6
entity :
5
7
integration : nodered
6
8
domain : switch
7
9
fields :
8
- trigger_entity_id :
9
- description : Entity Id to trigger the event node with. Only needed if the node is not triggered by a single entity.
10
- example : sun.sun
11
- skip_condition :
12
- description : Skip conditions of the node (defaults to false)
13
- example : true
14
10
output_path :
15
- description : Which output of the node to use (defaults to true, the top output). Only used when skip_condition is set to true.
16
- example : true
17
- payload :
18
- description : The payload the node will output when triggered. Works only when triggering an entity node, not an event node.
11
+ default : " 0"
12
+ description : Comma separated list of paths to send the message to. Zero is used to send the message to all paths.
13
+ example : " 1,2"
14
+ selector :
15
+ text :
16
+ message :
17
+ description : The message object that will be sent to the next node.
18
+ selector :
19
+ object :
Original file line number Diff line number Diff line change 23
23
CONF_MESSAGE ,
24
24
CONF_OUTPUT_PATH ,
25
25
CONF_SWITCH ,
26
- CONF_TRIGGER_ENTITY_ID ,
27
26
NODERED_DISCOVERY_NEW ,
28
27
SERVICE_TRIGGER ,
29
28
SWITCH_ICON ,
34
33
SERVICE_TRIGGER_SCHEMA = vol .Schema (
35
34
{
36
35
vol .Required (CONF_ENTITY_ID ): cv .entity_ids ,
37
- vol .Optional (CONF_TRIGGER_ENTITY_ID ): cv .entity_id ,
38
- vol .Optional (CONF_OUTPUT_PATH ): cv .boolean ,
39
- vol .Optional (CONF_MESSAGE ): vol .Extra ,
36
+ vol .Optional (CONF_OUTPUT_PATH , default = "0" ): cv .string ,
37
+ vol .Optional (CONF_MESSAGE , default = {}): dict ,
40
38
}
41
39
)
42
40
EVENT_TRIGGER_NODE = "automation_triggered"
You can’t perform that action at this time.
0 commit comments