Thanks to visit codestin.com
Credit goes to github.com

Skip to content

set dimmer level #572

@vespino

Description

@vespino

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

No one assigned

    Labels

    tuya_deviceSupport for specific Tuya Devices

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions