-
Notifications
You must be signed in to change notification settings - Fork 235
Labels
tuya_deviceSupport for specific Tuya DevicesSupport for specific Tuya Devices
Description
I'm looking into this script to control my Tuya devices locally. I'm not familiar with Python, but so far it's looking promising and I'm already able to control my RGBWW lightbulbs (on/off/level) and outlets (smartplugs). Continuing with the code used for my lightbulbs I was also able to switch on/off my dimmers, but I'm not able to control the level. The following turns on the device, but does nothing with the brightness level:
d = tinytuya.BulbDevice('x', 'y', 'z', version=3.3)
d.set_brightness_percentage(50)
d.turn_on()
I'm familiar with the Tuya Cloud API and from this I've been using bright_value_v1 to set the level of my dimmers and bright_value_v2 to set the level of my lightbulbs.
Am I on the right track? Or should I take a completely different approach?
Metadata
Metadata
Assignees
Labels
tuya_deviceSupport for specific Tuya DevicesSupport for specific Tuya Devices