Closed boboxx closed 2 years ago
It seems best for you to use the light type, could you try and removing the light_characteristic from your configuration all together and see if that works.
{
"id": "eb24222ad5a552924df3a3",
"device_type": "light",
"min_brightness": "100",
"max_brightness": "1000"
}
I get this error in the logs: [2022-02-23, 11:00:47 a.m.] [TuyaWebPlatform] [Den Front] Characteristic.Brightness - Tried to set brightness but failed to parse data. { brightness: '100', online: true, state: 'true' }
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm trying to clear the brightness value being grater than 100 on my smart life dimmer devices. Other then the logs filling with the errors, the devices are working somewhat ok. I can turn on/off/dim lights.
I used the Tuya Home Assistant API endpoint script to pull the list of device:
{ 'data': { 'brightness': '1000', 'online': True, 'state': 'false'}, 'dev_type': 'light', 'ha_type': 'light', 'icon': 'https://images.tuyaus.com/smart/icon/ay1555569556653Lg790/1614222015d118798d6e9.jpg', 'id': 'eb24222ad5a552924df3a3', 'name': 'Den Front'},
This is listing my device as a light, so I set my config as:
{ "id": "eb24222ad5a552924df3a3", "device_type": "light", "min_brightness": "100", "max_brightness": "1000", "light_characteristics": [ "Brightness" ] },
But when I do, the light will only be on/off and I lose the dimmer. I tried to change it to a dimmer, but I get the same behaviour:
{ "id": "eb24222ad5a552924df3a3", "device_type": "dimmer", "min_brightness": "100", "max_brightness": "1000", "dimmer_characteristics": [ "Brightness" ] },
What configuration should I be using to keep the dimmer?