dxdc / homebridge-blinds

:sunrise: Homebridge Plugin to control my blinds over HTTP
https://www.npmjs.com/package/homebridge-blinds
ISC License
54 stars 26 forks source link

Awning (Markise) - inverted logic for open / closed #73

Closed andreasgruener closed 2 years ago

andreasgruener commented 2 years ago

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.

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 2 years ago

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.

andreasgruener commented 2 years ago

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

andreasgruener commented 2 years ago

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!