Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color Temperature and Brightness characteristic was supplied illegal value warnings #619

Open
baileyj333 opened this issue Sep 19, 2024 · 5 comments
Labels
bug Something isn't working stale This issue has not received any updates for some time.

Comments

@baileyj333
Copy link

Describe the bug

After connecting the Mirabella Genio Wi-Fi Corner Light with my Tuya app, I am getting these warning messages:

[20/09/2024, 09:14:13] [TuyaWebPlatform] [Light Bar] Characteristic.ColorTemperature - Characteristic 'ColorTemperature' will receive value lower than allowed mired (-48) since provided Tuya kelvin value (9824) exceeds configured maximum Tuya kelvin value (2000). Please update your configuration!
[20/09/2024, 09:14:13] [@milo526/homebridge-tuya-web] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number -48 exceeded minimum of 140. See https://homebridge.io/w/JtMGR for more info.
[20/09/2024, 09:14:13] [TuyaWebPlatform] [Light Bar] Characteristic.Brightness - Characteristic 'Brightness' will receive value higher than allowed (618.8888888888889) since provided Tuya value (567) exceeds configured maximum Tuya value (100). Please update your configuration!
[20/09/2024, 09:14:13] [@milo526/homebridge-tuya-web] This plugin generated a warning from the characteristic 'Brightness': characteristic was supplied illegal value: number 619 exceeded maximum of 100. See https://homebridge.io/w/JtMGR for more info.

Even after specifying the max_brightness and max_kelvin in the json, I still seem to be getting these errors.

Steps To Reproduce

  1. Link Mirabella Genio Wi-Fi Corner Light with Tuya app
  2. Restart Tuya Plugin in Homebridge
  3. Monitor logs while Tuya Plugin is restarting
  4. Notice the warning messages.
    *Note: Anytime the Light Bar is controlled from the Tuya app or Homekit, the warning messages will repeat.

Plugin Version

Plugin version in Homekit under the device says 0.0. However in Homebridge it is v1.1.5

Homebridge Config

{
   "name": "TuyaWebPlatform",
   "options": {
       "username": "REDACTED",
       "password": "REDACTED",
       "countryCode": "REDACTED",
       "platform": "tuya",
       "pollingInterval": 300
   },
   "defaults": [
       {
           "id": "ebab845798b99d99fcymju",
           "device_type": "light",
           "max_brightness": 100,
           "max_kelvin": 2000
       }
   ],
   "scenes": false,
   "platform": "TuyaWebPlatform"
}

Device Config

Getting credentials
Got credentials
{ 'access_token': 'AZv051h49feb04eaz1621765419836DYLsbj8PeZK97ke',
'expires_in': 864000,
'refresh_token': 'AZv051h60adfe22az1621765419836DYLsbAjZYLvWnpn',
'token_type': 'bearer'}
Getting devices
Got devices
{ 'header': {'code': 'SUCCESS', 'payloadVersion': 1},
'payload': { 'devices': [ { 'data': { 'brightness': '1000',
'color_mode': 'static',
'color_temp': 9824,
'online': True,
'state': 'true'},
'dev_type': 'light',
'ha_type': 'light',
'icon': 'https://images.tuyaus.com/smart/icon/ay1533773342993pM7Be/165872761481dbcaac442.jpg',
'id': 'ebab845798b99d99fcymju',
'name': 'Light Bar'},
'scenes': []}}

Additional Context

@baileyj333 baileyj333 added the bug Something isn't working label Sep 19, 2024
Copy link

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.

@github-actions github-actions bot added the stale This issue has not received any updates for some time. label Sep 30, 2024
@mattyc491
Copy link

Having the same issue as yourself, tried altering the feature and setting maximums but that didn't fix it either.

@merubhanot
Copy link

+1, same issue for outdoor smart lights

@bluefunoodle311
Copy link

bluefunoodle311 commented Dec 6, 2024

Having this issue with Lumary Recessed Lights. I can get the color temperature warnings to go away by setting a min 1000 max 36294, but even when adjusting the min/max on Brightness, it will teeter between unable to parse errors and the percentage not matching between HomeKit and the Smart Life app. 100% in HomeKit will sometimes set 11% in Smart Life and randomly as high as 22%, but that's the best I got it working without errors.

UPDATE: If I just set the max brightness to 1000 (provided Tuya value), I still get the Characteristic.Brightness error in Homebridge, but everything seems to operate as expected.

@milo526
Copy link
Owner

milo526 commented Dec 10, 2024

For future reference, please read the following wiki article to find out how to configure your devices to solve this problem.

https://github.com/milo526/homebridge-tuya-web/wiki/Something-will-receive-higher-or-lower-value-than-allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This issue has not received any updates for some time.
Projects
None yet
Development

No branches or pull requests

5 participants