Open xoniq opened 5 years ago
Had the same problem for couple of hours since yesterday. My problem was probably a misconfigured config.json (diffchecked it but found no valid difference) Also uninstalled homebridge-tuya-lan and homebridge.
Could you post yours or try by removing yours and creating it from scratch with https://raw.githubusercontent.com/nfarina/homebridge/master/config-sample.json
Replaced it with the web version instead of directly via lan.
That indicates that the plugin didn't get the config block it was expecting. Can you post your entire config block please? Black out your keys though.
More info here:
https://github.com/codetheweb/tuyapi/issues/246
Seems TuyApi is not compatible with my device yet.
I scrolled through that issue: the "json obj data unvalid" is a problem that Tuya's own iOS app hasn't solved yet. I have reached out to them and will check as soon as a new version of their app is released. I have thrown in some logic to avoid having the plugin die due to it.
Please give the latest rc
release a shot by doing npm i -g homebridge-tuya-lan@rc
. It includes logic to understand this newer API.
The Setup Instructions have changed in case you need to obtain a fresh id
and key
.
Ah, I'm having this issue as well. TypeError: Cannot read property 'devices' of null
@xdmate that error is an indicator of a bad config file.
Could you take a look at this and tell me if its okay? https://pastebin.com/PVmHRLiJ
I only removed my key, id and rtsp stream to post it. Sorry if it's something super basic, I'm still really new at this. D:
The problem is that TuyaLan
block has been added under cameras
. If you are having trouble with the editor, email me your config and I will correct it and send it back.
What is your email? Do you just want in plain text, or a pastebin link?
I'm having trouble figuring out how to move the block and make it properly work. I think actually seeing it corrected would help me better understand/learn. I feel like a total noob right now, but I appreciate the help. :)
Sent you the fixed file.
By the way, if you ever get stuck, you can visualize your JSON at JSON Editor Online or JSON Formatter.
Note to self: @xdmate is using HOOBS and will need a release to be able to update.
I keep getting this error when starting Homebridge:
I tried debugging the
index.js
with console.logs, andthis.config
is not being set.