Saturday, August 12, 2023

notes about controlling "smart lamps"

The final solution was something like this,
https://github.com/hn-88/python-tuya-fadein-web
Connecting to the web app running on our internal network using our mobile browsers to have local controls. 
Making the flask python app start on booting the "server" - using supervisor. I'll write a separate post on configuring supervisor on Raspberry Pi (in general, Ubuntu-based systems).

Link dump:


flux_led shows no devices. And there is no ip address for the wipro smart batten 
(Actually it did have an ip address, our router was not displaying the client list properly - it would show only those clients which have recently requested ip leases.)
Apparently philips hue uses a bridge, which does have an ip address.

on alexa app, info by long press is "Connected via Smart Life"


from
which is mentioned in above video.

Will try the nmap solution at

nmap -sU -p 137,5353 --script nbstat,dns-service-discovery <<your target range here>>
Install localtuya custom integration and when trying to add devices,
it will list found ones with their ip addresses and IDs.


sean6541/tuyaapi (github.com) - but this seems to be 5 years old, may not work.



But in testing, even if the set_brightness_percentage() calls are not separated by sleep calls, it still works synchronously, taking more than half a second per call.

Exploit for jailbreaking tuya devices (not used)


No comments:

Post a Comment