WTH, Cover controls should respect window sensor

I have a few automatic covers. I’ve made very nice flows for day routines and all, so they go up and down during the day.
In my routines I’ve set up a condition that it should only activate the ‘roll down’ in this case, if the window is closed. If the window is open the cover is going to hang, bundle up, and probably get broken at some point.
This all works perfectly, BUT if somebody activates the cover through the HA controls, it doesn’t respect these sensors as it is.

It would be very nice to be able to ‘tie in’ a binary sensor or some sort of condition to the ‘up’ / ‘down’ buttons in the cover controls, so that it would deactivate one of the buttons if this condition was true.

i think this is the same:

https://community.home-assistant.io/t/wth-does-an-automation-not-look-at-the-condition-when-triggered-manually/220203/13

No, that’s an automation, this is the control in the lovelace interface :slight_smile:

oh ok i second that then :smiley: this is an issue
but the choice should be up to the end user if or not a cover should respect a sensor

Absolutely, each button (up/down) should be able to deactivate on a sensor if you choose so.

you could alos use an entity filter card in lovelace : https://www.home-assistant.io/lovelace/entity-filter/
for your covers

Or a conditional, but that would remove all the controls, that’s not the point here, that is to just block the specific buttons that are ‘dangerous’.
If you have the sensors it seems silly not to use them :slight_smile: I also use the windows sensors in my thermostat flows in node-red, it would add a teensy bit of intelligence to the controls.

You should create a cover template that triggers scripts for open close, and the script will check the value of your window sensor.

But is that what this thread and this ‘wth’ run is for? It’s just a wish, I could probably code around it, but the whole point is that it should be part of the existing controls in my opinion.

2 Likes

I really understand your point, and ok it could be an condition ( that by default it would be Enable) for the ones with your problem.I was thinking in Something like, for exemple, i have in my dum tv, with a wemos, so the card of the media player of that tv only gets active when the Signal of that wemos is on ( meaning tv is on).