I have the following simple flow and I would expect that my signal passes output 1 of the switch node when my payload of "Plugged" is 1.
[{"id":"0b7e0b7d175bbb22","type":"debug","z":"7f3f8d551243a1af","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":180,"wires":[]},{"id":"70985d276f19ff97","type":"inject","z":"7f3f8d551243a1af","name":"Plugged 0","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto/plugged","payload":"{\"Plugged\":0}","payloadType":"json","x":120,"y":220,"wires":[["aaafffd89118fb89"]]},{"id":"64112c84e991c110","type":"inject","z":"7f3f8d551243a1af","name":"Plugged 1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto/plugged","payload":"{\"Plugged\":1}","payloadType":"json","x":120,"y":260,"wires":[["aaafffd89118fb89"]]},{"id":"aaafffd89118fb89","type":"split","z":"7f3f8d551243a1af","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":330,"y":180,"wires":[["89cf236158ce97e3","0b22ed02a6139db1"]]},{"id":"89cf236158ce97e3","type":"switch","z":"7f3f8d551243a1af","name":"plugged","property":"payload.Plugged","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":520,"y":180,"wires":[["0b7e0b7d175bbb22"],["6b3895cde63e7855"]]},{"id":"0b22ed02a6139db1","type":"debug","z":"7f3f8d551243a1af","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":520,"y":260,"wires":[]},{"id":"6b3895cde63e7855","type":"debug","z":"7f3f8d551243a1af","name":"debug 20","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":220,"wires":[]}]
But it does not and comes out of output 2, regardless of the value. Can someone help me out here?