Open y8s opened 2 years ago
Line 286 here: https://github.com/caseyjhol/node-red-contrib-tplink/blob/master/nodes/kasa.js
case 'bool': msg.payload = inputPayload === 'true' break
isn't that a string of true and not a boolean true?
I noticed that when I feed the node boolean true and false it always outputs msg.payload: false even when true.
msg.payload: false
When I changed the node input to a string type with the words "true" and "false" as the string, the output follows properly.
Line 286 here: https://github.com/caseyjhol/node-red-contrib-tplink/blob/master/nodes/kasa.js
isn't that a string of true and not a boolean true?
I noticed that when I feed the node boolean true and false it always outputs
msg.payload: false
even when true.When I changed the node input to a string type with the words "true" and "false" as the string, the output follows properly.