ottoszika / node-red-contrib-ewelink

NodeRED nodes for eWeLink smart devices
https://ottoszika.github.io/node-red-contrib-ewelink
MIT License
49 stars 28 forks source link

Got error "TypeError: msg.payload.toLowerCase is not a function" with node Power State Write #118

Open quyetvk opened 3 years ago

quyetvk commented 3 years ago

Hello

Thank you for developing great nodes. I just want to report an error when using Power State Write node. I input string "toggle"/"on"/"off" to this node and got error "TypeError: msg.payload.toLowerCase is not a function".

Could you please check? I used NodeRED v1.2.9 Thanks!

zhaokgithub commented 3 years ago

Hello

Thank you for developing great nodes. I just want to report an error when using Power State Write node. I input string "toggle"/"on"/"off" to this node and got error "TypeError: msg.payload.toLowerCase is not a function".

Could you please check? I used NodeRED v1.2.9 Thanks!

I have the same problem.

arsharpe commented 3 years ago

Me to

Node-RED version: v1.3.5 Node.js version: v14.17.0 Windows_NT 10.0.19041 x64 LE

A workaround seems to be

Thanks

Korhyu commented 1 year ago

Hi, having the same problem here. I am trying to read the current of a POW R2 and when i send the command {"method": "getDevice"} as a object on the message brings the error: "TypeError: msg.payload.toLowerCase is not a function" Captura de pantalla 2023-05-12 092818