dominikberse / homeassistant-bluetooth-mesh

Allows to use bluetooth mesh devices directly from homeassistant
61 stars 15 forks source link

adjust color and brightness space #5

Open dominikberse opened 1 year ago

dominikberse commented 1 year ago

For color change it seems working, but not all the time, need to dig a bit. Maybe its a value min/max issue.

About Dimming, I need to add this here to make it work: https://github.com/dominikberse/homeassistant-bluetooth-mesh/blob/master/gateway/mesh/nodes/light.py#L95

        lightness = lightness * 1000

It is not the good solution, because home assistant get a value of 3000% for example.

Is there a way to get dimming & color min/max value from BLE device while provisioning and setup the entity with this ?

Thanks again, I finally have a hope to integrate my BLE Mesh light :-)

Originally posted by @Minims in https://github.com/dominikberse/homeassistant-bluetooth-mesh/issues/3#issuecomment-1329683384

Minims commented 1 year ago

New version currently working for me https://github.com/dominikberse/homeassistant-bluetooth-mesh/pull/12

Minims commented 1 year ago

I finally make my 2 mesh light working with my fork on the repo and the python bluetooth mesh lib. I can make a PR in your repo if you want, here is the diff :

https://github.com/dominikberse/homeassistant-bluetooth-mesh/compare/master...Minims:homeassistant-bluetooth-mesh:master?expand=1

https://github.com/dominikberse/python-bluetooth-mesh/compare/master...Minims:python-bluetooth-mesh:master?expand=1