Thank you.
I got this working. Here is my flow for one switch, see attached below.
but that does not seem to have been possible.
I had to do it using the attached flow.
Also get the error "HPE_INVALID CONSTANT" where I have an "=" sign in the http request node url, but in no other nora switches I have set up. Only the ones where there is an "=" sign present in the switching url.
[
{
"id": "16e84b2c.5323c5",
"type": "nora-switch",
"z": "f440e23a.0f852",
"devicename": "heating",
"roomhint": "heating",
"name": "",
"passthru": true,
"nora": "e4e5eabd.fd4b28",
"topic": "",
"onvalue": "on",
"onvalueType": "str",
"offvalue": "off",
"offvalueType": "str",
"x": 280,
"y": 1720,
"wires": [
[
"9e08e6e0.5f4aa8"
]
]
},
{
"id": "9e08e6e0.5f4aa8",
"type": "switch",
"z": "f440e23a.0f852",
"name": "choose url",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 430,
"y": 1720,
"wires": [
[
"c40c9bfe.46c648"
],
[
"bbddb266.bed9d"
]
]
},
{
"id": "bbddb266.bed9d",
"type": "http request",
"z": "f440e23a.0f852",
"name": "heating off",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
"url": "http: //my-ip-address/?pin=Off",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 590,
"y": 1760,
"wires": [
]
},
{
"id": "c40c9bfe.46c648",
"type": "http request",
"z": "f440e23a.0f852",
"name": "heating on",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
"url": "http ://my-ip-address/?pin=On ",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 590,
"y": 1720,
"wires": [
]
},
{
"id": "8005bf8a.3ab1",
"type": "inject",
"z": "f440e23a.0f852",
"name": "on",
"props": [
{> [
{
"id": "16e84b2c.5323c5",
"type": "nora-switch",
"z": "f440e23a.0f852",
"devicename": "heating",
"roomhint": "heating",
"name": "",
"passthru": true,
"nora": "e4e5eabd.fd4b28",
"topic": "",
"onvalue": "on",
"onvalueType": "str",
"offvalue": "off",
"offvalueType": "str",
"x": 280,
"y": 1720,
"wires": [
[
"9e08e6e0.5f4aa8"
]
]
},
{
"id": "9e08e6e0.5f4aa8",
"type": "switch",
"z": "f440e23a.0f852",
"name": "choose url",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 430,
"y": 1720,
"wires": [
[
"c40c9bfe.46c648"
],
[
"bbddb266.bed9d"
]
]
},
{
"id": "bbddb266.bed9d",
"type": "http request",
"z": "f440e23a.0f852",
"name": "heating off",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
"url": "http: //my-ip-address/?pin=Off",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 590,
"y": 1760,
"wires": [
]
},
{
"id": "c40c9bfe.46c648",
"type": "http request",
"z": "f440e23a.0f852",
"name": "heating on",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
"url": "http ://my-ip-address/?pin=On ",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 590,
"y": 1720,
"wires": [
]
},
{
"id": "8005bf8a.3ab1",
"type": "inject",
"z": "f440e23a.0f852",
"name": "on",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "on",
"payloadType": "str",
"x": 150,
"y": 1720,
"wires": [
[
"16e84b2c.5323c5"
]
]
},
{
"id": "f8715778.f830f8",
"type": "inject",
"z": "f440e23a.0f852",
"name": "off",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "off",
"payloadType": "str",
"x": 150,
"y": 1760,
"wires": [
[
"16e84b2c.5323c5"
]
]
},
{
"id": "f762491e.35d988",
"type": "comment",
"z": "f440e23a.0f852",
"name": "heating on / off",
"info": "",
"x": 160,
"y": 1680,
"wires":
},
{
"id": "e4e5eabd.fd4b28",
"type": "nora-config",
"name": "heating",
"group": "heating",
"notify": false
}
]
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "on",
"payloadType": "str",
"x": 150,
"y": 1720,
"wires": [
[
"16e84b2c.5323c5"
]
]
},
{
"id": "f8715778.f830f8",
"type": "inject",
"z": "f440e23a.0f852",
"name": "off",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "off",
"payloadType": "str",
"x": 150,
"y": 1760,
"wires": [
[
"16e84b2c.5323c5"
]
]
},
{
"id": "f762491e.35d988",
"type": "comment",
"z": "f440e23a.0f852",
"name": "heating on / off",
"info": "",
"x": 160,
"y": 1680,
"wires":
},
{
"id": "e4e5eabd.fd4b28",
"type": "nora-config",
"name": "heating",
"group": "heating",
"notify": false
}
]