dxdc/homebridge-blinds

Awning (Markise) - inverted logic for open / closed

andreasgruener opened this issue · 3 comments

Hi,

great plugin works really great.

In my setup I have blinds as well as awnings. The Problem is the awnings position logic is opposite to the blinds positions.

  • CLOSED (blind) all the way down
  • CLOSED (awning) all the way up.

Hmmm...
I could invert the logic in my arduino project. But I believe this is more a general issue.

Would it be possible to invert the open/close logic in the plugin?

Thanks
Andreas

Details:
DOWN
Awning: Moves the awning to give more shadow - actually opening it
Blinds: Moves the blind to give more shadow- actually closing it
UP
Awning: Moves the awning to give less shadow - actually closing it
Blinds: Moves the blind to give less shadow- actually opening it

NO Issue from the moving part, but I want to know in Homekit if everything is closed

CLOSE:
Awning: The awning is in the housing (moved all the way up)
Blinds: the blind is closed (alle the way down)

dxdc commented

Maybe I'm misreading this @andreasgruener, but why not just switch your up_url and down_url config parameters?

If you're actually sending the position to your blinds though, there are some ways you can invert the logic using jsonata. If the above doesn't solve your issue, post your config and I'll share with you how to do it.

Thanks. I will try this out.
I found your test configuration https://github.com/dxdc/homebridge-blinds/wiki/Tested-configurations this looks also related.

If I combine you suggestion (switching up & down) and also inverting the position like in your example (https://github.com/dxdc/homebridge-blinds/wiki/Tested-configurations#Bond Bridge Pro) it works.

Thanks a lot!