-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zigbee devices #69
Comments
Yes please. |
How is communication done with the gateway? Are there different kinds of gateways? I feel that I know nothing about this. |
Zigbee gateway is connected via WiFi/LAN (depends on version) and configured in SmartLife as Gateway Control --> Gateway (Zigbee). After opening this device, there is possibility to pair compatible devices like temperature sensors, scene switches etc. After pairing, these devices are visible in LocalTuya main view, like other devices. In config file I noticed, that Zigbee devices have only key (no localKey): { DPS - probably three values reported by temperature sensor (humidity 54.3%, battery level 100%, temperature 24.2°C) - that's my guess :) EDIT: meshId is equal to gateway's devId. |
I just set up Moes thermostatic valves (https://www.moeshouse.com/collections/trv-radiator-valve/products/tuya-zigbee3-0-new-mini-wifi-radiator-actuator-smart-programmable-thermostat-temperature-trv-controller) with my Tuya account, they are connected via Zigbee gateway. I found that built-in tuya integration sees these devices, displays temperatures etc. I would be happy to be able to control them locally :-) Currently I also use Zigbee temperature and humidity sensors and some switches, if any of the developers would like to try to add support for such devices, I can provide logs, testing, TCP tunnel to gateway etc. |
Dear @postlund , I am joining to those who would need support for the Zigbee gateway since I have just purchased one to control a smart door lock. The smart lock is a BT device, and the gateway allows to command it being a wifi-to-BT gateway.
Do you have any suggestion on what we can try in order to get some communication? |
Also, can this be of any help? Maybe there is another command to be sent to the gateway in order get the status (I tried 250 and others with no luck): |
@rospogrigio I don't have much to give you here, but as I understand it the hub is likely transparent and you need to include id to both gateway and device when sending requests. Have a look here: |
Yeah, I was thinking of something similar, I tried some things but it doesn't work. Unfortunately, even the tuya official integration is not able to make them work (doesn't even detect them...). |
Actually Tuya official integration supports some of Zigbee devices. I can control switches and thermostatic valves (there is an error when I try to change temperature, but integration shows temperature and some settings). I also use temp/pressure sensors, but they are not visible in integration. |
Mmm, very interesting, will try again then... is there any way you can find some details about the communication? Like protocol version, and the payload that they exchange? |
I can extract values from SmartLive app, I don't know how to intercept any exchanged data. |
@darth-aragoth I retried and Tuya integration does not show both the gateway and the zigbee devices. I am starting to believe that this is related to the gateway or the device being a "0d" device, maybe yours are "0a". Is there any way you can figure it out? Are you able to communicate with the devices using tuya-cli ? |
Tuya integration doesn't show Zigbee gateway direct (SmartLife does and allows to pair new devices), but I can see some devices connected to this gateway. I can control Zigbee switches from SmartLife and from HomeAssistant via official integration, exactly the same way that I control WiFi switches. I don't know, how to figure out, if my device is '0d' or '0a' (actually I don't know what it is), I can try to figure it out, if you tell me how to do it ;) |
What if you install tuya-cli and launch: |
Do you know how to install it on Rasbberry Pi? npm seems to be unavailable on hassio. |
are you on Raspbian? Just |
OK I installed CLI (
Maybe I'm doing something wrong, it doesn't work even when I try to communicate with wifi device:
|
Do you have any other non-zigbee-connected devices you can test? |
Yes, I tried with WiFi switch (working in LocalTuya, official integration and SmartLife). I pasted error in previous post (events.js:291...). I checked now WiFi light and got the same error. |
@darth-aragoth It's because your version of node is too old. Try to follow according to nvm: https://medium.com/stackfame/how-to-update-node-js-to-latest-version-linux-ubuntu-osx-windows-others-105749e90040 |
I'm shocked, tuya-cli still doesn't support "0d" devices. Unbelievable... |
OK thank you, I'm trying to update to v14.15.4, but I got some errors. I rebooted HA and had to install all once again, I don't know why, but all commands: npm, tuya-cli... were not found:
Now, when I try to install latest node, I get some error that prevents installing:
I checked and binary file seems to be in right place:
but for some reason I cannot execute it:
|
@darth-aragoth , I don't know...is the file binary or text? Watch it with less and try to understand... |
@darth-aragoth Docker containers are not persistent so you lose everything you do in them when they are destroyed. It would be better if you tried to install tuya-close on another computer (it doesn't have to be the same as you run HA on). @rospogrigio No idea, how does it interact with a controller? Because I guess that's what is interesting in our case. |
It's binary file. I found out that node is also in |
OK @postlund , I got it. After a lot of banging my head, reading posts, asking to people and making attempts, I managed to make it work. A PR is coming... 😉 |
@rospogrigio 🤓👍 |
Here it is: #318 ! |
Hello, are there any news in adding support for Zigbee devices? |
there is here an pull request with some zigbee changes. I've also test them out on my fork and it works |
Sorry, I didn't notice the fork. I have introduced Zigbee support in PR #1493, if anybody wants to test it and provide feedback, please comment in the PR. |
MkDocs based documentation
Hi, could you please consider adding support for Zigbee devices connected via Tuya gateway, e.g. temperature / humidity sensors, thermostatic radiator valves etc.?
The text was updated successfully, but these errors were encountered: