Skip to content

Something will receive higher or lower value than allowed

Milo Cesar edited this page May 6, 2022 · 1 revision

The error

The plugin might sometimes throw an error that reads along the lines of

Characteristic 'Brightness' will receive value higher than allowed (1100) since provided Tuya value (1000) exceeds configured maximum Tuya value (100). Please update your configuration!

Followed by

This plugin generated a warning from the characteristic 'Brightness': characteristic was supplied illegal value: number 1100 exceeded maximum of 100.

The characteristic for which this is shown and their respective values might change here.

The problem

The products which are supported by this plugin differ greatly in functionality, for example, some lightbulbs have a brightness scale from 0-100, some from 0-255, and some from 0-1000.
HomeKit will always want a percentage for the brightness.
Whenever your lightbulbs report to this plugin that it is at brightness 100, this might mean 100% (on a scale from 0-100), ~39% (on the scale from 0-255), or 10% (on the scale from 0-1000).
The bulbs do not inform this plugin of the scale they are using, only of their current brightness.
Therefore this plugin will have to make an educated guess on which scale you are using, and map the percentages from HomeKit to your bulbs desired range accordingly.
In some cases, the plugin is not able to do this and therefore will throw an error.

Please note that the same problems hold true for other characteristics.

The solution

This plugin allows for the configuration of these scales so they can be mapped accordingly.
In your configuration, you will be able to set minimum and maximum values for some properties.

To find the values for your device follow these steps.

  1. Use the Tuya app to set your device to its maximum brightness.
  2. Look the following error in your logs.

    Characteristic 'Brightness' will receive value higher than allowed (1100) since provided Tuya value (1000) exceeds configured maximum Tuya value (100). Please update your configuration!

  3. Note the value that is being reported as the provided Tuya value.
  4. Configure this plugin to use the value that you noted down in step 3 as the maximum brightness for the desired bulb.
  5. Repeat for minimum brightness.

Repeat as necessary for different bulbs and/or characteristics.

Clone this wiki locally