I set up a sequence to play around with NA/Node-RED. It’s pretty simple:
The JSON for these nodes is:
[
{
"id": "f8ec97bd.3d1078",
"type": "sun events",
"z": "99c0f5d4.524f08",
"testmode": true,
"verbose": true,
"topic": "",
"name": "",
"x": 780,
"y": 160,
"wires": [
[
"52fa425.94486bc",
"e0c7d070.e7748"
]
]
},
{
"id": "82921f73.7e16c",
"type": "api-call-service",
"z": "99c0f5d4.524f08",
"name": "Send sun event text message",
"server": "cf8a6e76.d5733",
"version": 1,
"debugenabled": true,
"service_domain": "notify",
"service": "twilio_sms_notifier",
"entityId": "",
"data": "{\"message\":\"{{ text }}\",\"target\":\"<redacted>\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1370,
"y": 160,
"wires": [
[]
]
},
{
"id": "52fa425.94486bc",
"type": "function",
"z": "99c0f5d4.524f08",
"name": "Set sun event text",
"func": "msg.text = \"Sun event: \" + msg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1080,
"y": 160,
"wires": [
[
"82921f73.7e16c",
"ad174085.f1a0f"
]
]
},
{
"id": "b430f368.3928c",
"type": "inject",
"z": "99c0f5d4.524f08",
"name": "Test Sun Event",
"topic": "",
"payload": "test sun event",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 800,
"y": 220,
"wires": [
[
"52fa425.94486bc"
]
]
},
{
"id": "e0c7d070.e7748",
"type": "debug",
"z": "99c0f5d4.524f08",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 1060,
"y": 120,
"wires": []
},
{
"id": "ad174085.f1a0f",
"type": "debug",
"z": "99c0f5d4.524f08",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 1320,
"y": 120,
"wires": []
},
{
"id": "cf8a6e76.d5733",
"type": "server",
"z": "",
"name": "Home Assistant",
"addon": true
}
]
I get a text message when I trigger the inject node, but after almost 24 hours of having this sequence deployed, I have received no text messages and no sun events in the debug pane.
What have I done wrong or not understood here?