I've got a bunch of RGBW Floor lamps that are connected to my tuya smart life app. (NOT the smartlife app, but the one with TUYA specifically in the app name, orange logo icon)
I have been successful with the python scripts with tinytuya on github to control my floor lamps but i cannot seem to get hubitat to do so. I have the IOT api and secret, I have the device IDs, IPs, and Local Keys - I just cannot get my hubitat to do what I want with the information.
When I send a command it can take minutes before I see anything update in the log, and when it does it usually says something like:
method status of child device Theatre Bar 2 ran for 132,150ms
[dev:1228](http://192.168.1.204/device/list#)2025-02-04 11:18:59.717 AM
warn
method refresh of child device Theatre Bar 2 ran for 136,249ms
[dev:1228](http://192.168.1.204/device/list#)2025-02-04 11:18:59.709 AM
warn
method parse of child device Theatre Bar 2 ran for 120,127ms
[dev:1228](http://192.168.1.204/device/list#)2025-02-04 11:18:29.157 AM
warn
method off of child device Theatre Bar 2 ran for 304,743ms
When I run the monitor.py script to watch the commands sent and received - I can use my ios app and see the commands get processed like this:
Received Payload: {'dps': {'24': '00f003e803e8'}, 't': 1738686264}
Received Payload: {'dps': {'24': '012c03e803e8'}, 't': 1738686266}
Received Payload: {'dps': {'24': '012c03e8000a'}, 't': 1738686269}
Received Payload: {'dps': {'24': '012c03e803e8'}, 't': 1738686272}
However, when I use the tuya iot cloud driver and set the endpoint ID to the same values listed in the payload from the app (24) and the same value string as the payload (012c03e8000a) the device might change the first time and then quit responding, or simply never change at all. On the times it doesn't change at all I can see the monitor.py script show me it gets the payload:
Received Payload: {'dps': {'106': '033264000003e803e8007803e803e800f003e803e8'}, 't': 1738691443}
Which is not what I sent - so I'm kind of confused on all of this. What's the best and reliable way to control these things with hubitat as my main hub for automation and scenes?