alisdairjsmyth / node-red-contrib-blindcontroller

node-RED node that determines blind position based on the position of the sun and climatic conditions
Apache License 2.0
24 stars 12 forks source link

Windows sensor input #29

Open BeenThereScrewedUp opened 5 years ago

BeenThereScrewedUp commented 5 years ago

Hi,

I have been using the blindcontroller for quite a while and it served my needs.

Now I am starting to use Xiaomi Aqara windows sensors in the doors and windows. I used some filters to prevent the blinds from closing with the door open (yes, I managed to lock myself out :-) ). It is very hard to use external means to set the blinds accordingly without blocking the useful functions of the blindcontroller.

It would be helpful, if there was a way to limit the blinds to certain maximum values once the door or window is open. I could limit the window blinds to close to 70% for ventilation when the window is open and the door blinds to 0% to prevent the mishap from happening again.

An aditional setting of max value with window/door open would be required as well as a boolean input of the window/door status. Then the blindcontroller could limit the maximum blind position to max value with the window open.

Would that be possible in a future version?

Best regards,

Lars

alisdairjsmyth commented 4 years ago

@BeenThereScrewedUp - I am presently reconsidering how climatic thresholds are implemented. At the moment, there are three supported thresholds:

Each has a threshold which overwrites the automated calculation associated with sun position. I am considering making this more generalised, which would make it easier to support any threshold including for situations where you want to constrain it based on an alternative device.