Now comes the difficult part, getting the Tuya LocalKey. You will get a list with IPs and MAC-Adresses, find the MAC of your bulb and note the correspondig IP. To find the internal IP, note the MAC adress. But be careful, we need the internal IP of the bulb in your network, the app shows the external IP of your router. Nodejs-Script to combine tuyaapi and openhab via mqtt - TheAgentK/tuya-mqtt Use the instructions given in the README.md GitHub TheAgentK/tuya-mqtt
BLUESTACKS TWEAKER GIT HUB INSTALL
Next, install the Tuya-MQTT-Client from AgentK. Next, install MQTT-Binding using Paper-UI.Īfter installation, open services/mqtt.cfg and uncomment/fill the following paramaters: broker.url=tcp://localhost:1883Įverything else is left untouched. Important: During installation, you are asked for a user, accept default (openhab) and leave password blank! Choose Mosquitto from there and install with default settings. Do so by opening sudo openhabian-configĪnd choose “Optional components”. Basic OH2-Knowledge (add Bindings, find config-files and edit them).One or more LED-Bulbs configured in the Smart-Life app (should be controllable by the Smart Life app).OH2 up and running, accessible by ssh or console.I also found a rather elegant way to get the essential Tuya parameters (Tuya ID and LocalKey) which I also want to share here.įurthermore, I found out the Tuya-MQTT-Binding from AgentK to be reliable and fast, so I used it. I noticed that it is hard for a beginner to get this done, because all information is spreaded in different threads and postings, so I decided to put it all together in a step-by-step walk through here.
I spent the last few days searching through the forum to get some Tuya-Bulbs (they usually sell as “Smart life”) working in OH2.