peribeir / homeassistant-rademacher

This custom integration provides access to Rademacher Devices connected to a HomePilot (or Start2Smart) bridge.
GNU General Public License v3.0
65 stars 13 forks source link

Brightness of Steuergerät 9482 and Universal-Dimmaktor 9476 shown 0-255 instead of 0-100% #112

Closed rhmunich closed 9 months ago

rhmunich commented 9 months ago

I have the following Rademacher devices integrated into Home Assistant as light entities:

The light entities have the attribute brightness which I can show with the template {{state_attr('light.xyz','brightness')}} and change via the service light.turn_on by changing brightness.

However, in Home Assistant the attribute brightness is defined as value 0-255 whereas the Rademacher App as well as the Rademacher web-interface show the value as 0-100%. This makes it difficult to compare and change the brightness in Home Assistant vs the Rademacher app/webinterface (incl. Alexa). You always have to convert the brightness in HA [0-255] to the brightness in Rademacher [0-100%] and vice versa.

It would be far more intuitive and easier to show the brightness in HA in the same way as the Rademacher app shows it (ie 0-100%). Can this feature be changed, please?

rhmunich commented 9 months ago

Issue closed as can be solved via using the attribute brightness_pct instead of brightness.