fishbigger / HomeAssistant-Tapo-P100-Control

A custom integration for home assistant to control the Tapo P100 plugs
MIT License
207 stars 69 forks source link

Wrong brightness value #30

Closed letchworth closed 3 years ago

letchworth commented 3 years ago

Hi

I have installed and got it working with homeassistant and two bulbs. I can control the bulbs fine but the brightness value being shown in home assistant is wrong.

E.g. bulb is set to 100%, it shows 100% in the app but home assistant is reporting it at about 40%.

Is there a setting I need to change?

Thanks

letchworth commented 3 years ago

Found the issue. It has been resolved in the pull request #11 as well on line 69. The value being returned to homeassistant is a percentage. Changing it to be out of 255 resolves the slider issue.