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

Temp and Humidity Node #128

Open ALPF5555 opened 3 years ago

ALPF5555 commented 3 years ago

I am trying to use eWelink nodes in Node Red and can connect all the nodes but can only read information from the ZBBridge. When I add the device ID to the temperature and humidity device and try to read the data I get {"error":404,"msg":"Can't read sensor data from device"}" I have tried what I think is everything but must be missing something I am using the same cedentials as the ZBBridge for my e-mail and password.

Can someone give me an idea what I am doing wrong please.

Pesoen commented 2 years ago

I have the same problem, and suspect the zigbee part of ewelink is not supported yet by this Palette. Have tried a ton of different things, and have resorted to listing all devices, and taking the info from there, but it adds a ton of things that are not required if it would just work natively.

My workflow for now is to list all devices(using the "devices" node) which returns a bunch of objects, i then filter them out one by one down a chain(since i have 8 total devices and 5 are zigbee and one is the bridge) and just filter them out manually so i get just the temperature and humidity values, which then go to my dashboard for easy access to the information.. Still have a few kinks to work out of the flow, as it sometimes gets weird values in return for some reason, but that's my current workaround until it gets added, or we get told how to do it the right way.

Pesoen commented 2 years ago

Found my flaw, causing weird readouts. Here is my flow used. You need a devices node running into the split at the start of the flow. In the change node named "Filter out device" you select the device, by setting its numerical value from the devices node, it then gives you the temperature and humidity separately at the end, nicely labeled, you can also add more things, such as battery level into it, but since i don't need it i left it out. it should make sense, even if it could all be done much more simply or better. I just needed it to work, and don't care for how it looks in the editor, as long as my dashboard gets the data it needs. Hope this helps you out, until we can figure out if Zigbee is supported or not, or it gets added(hopefully)