Raspberry PI tuya
Posted 3 years ago
- updated 3 years ago
tuya
raspberrypi
git clone https://github.com/ct-Open-Source/tuya-convert
using usb keyboard attached to USB port and TV hooked to HDMI port of Pi
You need screen before you start:
apt-get install screen
- Type"git clone https://github.com/ct-Open-Source/tuya-convert" enter and wait.
- Type "cd tuya-convert"
- Type "./install_prereq.sh" and wait.
- Download single HAA firmware file... https://github.com/RavenSystem/haa/releases/latest/download/fullhaaboot.bin
- copy it into “tuya-convert/files” folder. This is important otherwise you won’t get an option to flash HAA during the process and it will default to provided firmwares (tasmota, edpunra)
- start the flash process...”./start_flash.sh”
- connect to Access Point (WiFi) generated by Pi using an android device for simplicity (iOS device can work too) and join “vtrust-flash”
- put tuya bulb in pairing mode (blinking continuously). Most tuya bulbs go into this after you rapidly turn on/off 4 times. But do check your device instruction • proceed with flash process by pressing enter. You should firmware being copied over and successfull flash message. - connect to Tuya bulb AP after it restarts to its AP...HAA-XXXX
- join this WiFi and browse to http://device ip
-
enter “bawoo bulb” json string from here.. https://github.com/RavenSystem/esp-homekit-devices/wiki/Devices-Database. • json string that works the best for RGBW (red green blue white - 4 channels) {"c":{"b":[{"g":0}]},"a":[{"t":30,"r":14,"g":12,"v":13,"w":4,"fr":4,"fg":4,"fv":4}] • configure your WiFi in the web page. Make sure to do it correctly. The bulb will restart after pressing SAVE and appear on your network with Device name as HAA-XXXX. Check with your router we page listing WLAN clients. • add to home app after restart by usual “add accessory->don’t have code... • insert code 021-82-017 • all done
Problems
sudo killall wpa_supplicant
connect to wifi first