homebridge-edomoticz icon indicating copy to clipboard operation
homebridge-edomoticz copied to clipboard

Sunscreen state reversed

Open goedh452 opened this issue 5 years ago • 0 comments

According to the little animated icon for sunscreens in the home app, a sunscreen is considered to be up when the status is closed and down when it is opened. The edomoticz plugin translates it exactly the other way around (which is understandable). I changed the WindowCovering code in such a way that when it s a percentage blind and isn't an inverted blind "level = 100 - level". This works for me.

Maybe it is possible to have edomoticz detect if it is a sunscreen (icon-based like the push buttons) and reserve the state translation.

I would be happy to share the altered code. It only partially works for now.

goedh452 avatar Nov 23 '19 08:11 goedh452