Today's problem:
Subflow.
$env variable used to make it usable on multiple devices.
Because subflows
are limited to 1
input, I am putting a switch
node just inside the subflow
to direct traffic messages as needed.
So I have $DN (DeviceName) set.
I want to put that in as part of the field in the switch
node.
[{"id":"541720ad73579447","type":"switch","z":"94cf2ea396e5b6f6","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"A1/stat/POWER","vt":"str"},{"t":"eq","v":"A1/tele/LWT","vt":"str"},{"t":"eq","v":"button","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":200,"y":160,"wires":[["61843ca1684f9f9d"],["4788b5265af1d45a"],["5b8cd9fe254ea8d1"]]}]
Where the A1
is what will be defined in the $DN
.
So - guessing - would J$ $DN/stat/power
work?
Ok: rhetorical. I'll try it.
But if I didn't ask, it wouldn't work and I would have to ask it anyway.