anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

Shutter control does not toggle its command when inverted #133

Open wrh75 opened 2 years ago

wrh75 commented 2 years ago

The shutter control seems to work fine when config.json has "invert": false however it doesn't seem to toggle its command when "invert": true. When "invert": true it seems to read the state of the shutter/blinds correctly however always seems to issue the same command regardless of the state (I.e. "lighting off //HOME/254/56/45 ...")

In my case, I need to have "invert": true or it works in reverse.

kapps7 commented 2 years ago

So I have a shutter that is showing the opposite status of what is true ie showing open when the blinds are shut and vice versa.

Are you using the invert flag to address a similar issue ? I thought it might be a Cbus thing

wrh75 commented 2 years ago

My shutters also show in reverse when I don't use the invert flag. When I include "invert": true. They don't work correctly. They only work in one direction. I haven't looked through the code, but I expect it isn't toggling the open/close command.

I've got around this issue by using Home Assistant via Homebridge (Cbus -> Homebridge -> Home Assistant). It isn't too difficult create a "cover" entity that reverses the shutter in Homebridge.