Open fdebrus opened 2 years ago
Hey @fdebrus, Didn't have a chance to fully implement and test Lights and Dimmers. In fact I no longer actively use openHAB, but will try my best to maintain this codebase and accept PRs.
Here's where you can find Dimmer implementation: https://github.com/kubawolanin/ha-openhab/blob/master/custom_components/openhab/light.py#L89
Here is an example of the item from openHAB I'm trying to control from HA
{"link":"http://192.168.2.20:8080/rest/items/Light_GF_Office","state":"100","editable":true,"type":"Dimmer","name":"Light_GF_Office","label":"FreD\u0027s Office Light","category":"light","tags":["Lightbulb"],"groupNames":["gGF_Office","Lights"]}
The item does exist in HA following the implementation of the openHAB integration.
but as I try to control it
turn on switch -> lights turn on but the switch immediately reverts to off position even if the light remains on. dimmer sliders does nothing.
let me know how could I help, more logs, debug, seems a feedback issue, the current state is not reported from openHAB to HA ??
When the light is on, state is 0
supported_color_modes:
happy to test drive.