I have a balcony door, which has a door sensor attached to it. The doors open inwards. At the same door I have a roller shutter.
How do I prohibit the roller shutter from going down if the door is open?
The thing is that the roller shutter is in an automation and sometimes I forget to close the door…and well…yeah…that sucks!
Sure, I can put a condition in the automation, but what about the “roller shutter switch” itself, I sometimes just tell Google Assistant to close it and then if the door is open…well, yeah, sucks again.
I suggest the switch is directly connected to the shutter (so it is possible to control the shutter even if HA is not running)? so, it its kind of impossible for HA to supress the control from the switch.
The only thing I can imagine is to create an automation which is triggered, when the shutter is controled, then checks the state of the door, and if it is open, open the shutter again. Then it depends on how fast it reacts, if you recognize this or not…
Ah, okay, i missunderstood…
But then it should be possible. Didn’t think it through completely, but the idea is to create a template cover entity, which you can use in your Lovelace GUI instead of the normal cover entity. All actions defined in the template cover can be directed to a script, which checks the door first and then calls the service on the real cover.
Here are some helpful links:
cover.sovrummet_rullgardin open
friendly_name: Rullgardin
supported_features: 11
The script for opening the cover…
I’ve tried to remove the conditions aswell, but it didn’t make any difference…I’ve also tried without the value template and instead use the state of the cover, which should be the same, but no difference.
However…if I stop the cover at, let’s say 50%, doesn’t matter if it is from open or closed state, the “up-button” gets greyed out, also, there is no slider to set the position.
I guess you should somehow manage to get the current_position from the real cover.
Invalid config for [cover.template]: two or more values in the same group of exclusion 'value_or_position' @ data['covers']['sovrummet_rullgardin'][<value_or_position>]. Got None. (See ?, line ?).