subzero79 / node-red-contrib-tuya-local

NodeRED node to control tuya devices locally. Based on tuyapi module
29 stars 17 forks source link

json problem #15

Open realjax opened 4 years ago

realjax commented 4 years ago

Hi,

when using protocol version 3.1 I get payload: "parse data error" and when using 3.3 payload: "json obj data unvalid"

Any idea what might be causing this?

realjax commented 4 years ago

Ah, I seem to be running into this bug: https://github.com/codetheweb/tuyapi/issues/246

subzero79 commented 4 years ago

I only have atm one device to test this an is a version 3.3 only. I created this project because tuya convert didn't work for recent devices back in the time. New patchs for Tuya convert atm allow to flash them with 3rd party fw OTA.

bogeuh commented 4 years ago

i'm very happy, sofar this is the only node-red addon that works i'd like to eliminate the ifttt webhooks , they worked without a problem sofar, but are only turn on/off and another possible point of failure in the cloud using teckin sp22 powerplugs with power usage monitoring sometimes i get these errors sometimes i get dps values 18,19,20 when setting dps 1 and when the powerplugs are freshly plugged in i get 21.22.23.24 etc data payload (daily/monthly etc kwh usage) but triggering a request does'nt work, edit: trigger specific updates with {"set" : null , "dps" : 19} mutliple at once didn't seem to work