I'm wanting to add schedules via injections and need to specify more than what I have so far.
As is this is an exert from what the flow is:
[
{
"id": "c54780ea787c649c",
"type": "link out",
"z": "26262ba1.62dcbc",
"name": "Start",
"mode": "link",
"links": [
"acc270c1bcd7d96c",
"6a1a5b0be6b0ddb0"
],
"x": 655,
"y": 6820,
"wires": []
},
{
"id": "86d37c82b96d5dbd",
"type": "change",
"z": "26262ba1.62dcbc",
"name": "SET/Start",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "add",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"command\":\"add\",\"name\":\"Charging when away\",\"expression\":\"0 0 10 * * Wed\",\"payloadType\":\"default\",\"payload\":\"\",\"type\":\"str\"}]",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 520,
"y": 6820,
"wires": [
[
"c54780ea787c649c"
]
]
},
{
"id": "6a1a5b0be6b0ddb0",
"type": "link in",
"z": "26262ba1.62dcbc",
"name": "Schedule input",
"links": [
"c54780ea787c649c",
"87b618aa689ab36c"
],
"x": 655,
"y": 6890,
"wires": [
[
"30db0e7b74e0fa99"
]
]
},
{
"id": "30db0e7b74e0fa99",
"type": "cronplus",
"z": "26262ba1.62dcbc",
"name": "Away Charger control",
"outputField": "payload",
"timeZone": "",
"storeName": "",
"commandResponseMsgOutput": "output2",
"defaultLocation": "",
"defaultLocationType": "default",
"outputs": 2,
"options": [],
"x": 830,
"y": 6890,
"wires": [
[
"5b96290ecb9a7a02"
],
[
"e5eeee3e0ca6ba2b"
]
]
}
]
The important part is this in the change node:
[{"command":"add","name":"Charging when away","expression":"0 0 10 * * Wed","payloadType":"default","payload":"","type":"str"}]
I am needing to add more to the output.
I need a topic set too.
Indulge the village idiot and help me with how to set a topic.
This is just the first step of a somewhat complicated flow I'm making.
I won't dump it all on you here, as I think this is all that is needed.
Oh, for now it is set to daily - testing.
But I will need it to trigger weekly rather than daily.
Doesn't matter what day/time.
Thanks in advance.
