Skip to content

Commit

Permalink
docs: Move service data to translations
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Oct 2, 2023
1 parent 8c04d9e commit 0e126a7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
5 changes: 0 additions & 5 deletions custom_components/nodered/services.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
trigger:
name: Trigger a Node-RED Node
description: >
Trigger a Node-RED node.
target:
entity:
integration: nodered
domain: switch
fields:
output_path:
default: "0"
description: Comma separated list of paths to send the message to. Zero is used to send the message to all paths.
example: "1,2"
selector:
text:
message:
description: The message object that will be sent to the next node.
selector:
object:
22 changes: 19 additions & 3 deletions custom_components/nodered/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
{
"config": {
"abort": {
"single_instance_allowed": "Already configured. Only a single configuration possible."
},
"step": {
"user": {
"description": "Do you want to add Node-RED Companion to Home Assistant?"
}
},
"abort": {
"single_instance_allowed": "Already configured. Only a single configuration possible."
}
},
"services": {
"trigger": {
"description": "Send a message to a Node-RED flow that has been exposed to Home Assistant.",
"fields": {
"message": {
"description": "The message object that will be sent to the next node.",
"name": "Message"
},
"output_path": {
"description": "Comma separated list of paths to send the message to. Zero is used to send the message to all paths.",
"name": "Output Path"
}
},
"name": "Trigger a Node-RED flow"
}
}
}

0 comments on commit 0e126a7

Please sign in to comment.