I’ve been trying to reconfigure my mqtt/shelly-1 garage door following these guides:
However, I’ve encountered an issue where HA will send the ‘close’ command, even if the door is closed – this causes the door to open which is unexpected
This post suggests using a script to mitigate the issue which I’ve implemented, but it requires a lot of extra scripts and a second cover. It seems like an excessive workaround.
My question is: In the case where the cover is closed and the ‘close_cover’ service is called - shouldn’t the cover itself do nothing? If that’s the case, am I missing something from my config?
It was suggested here by @petro (Need help with if/else) that the cover should be doing this, but maybe the value_template was incorrect.
In my case, I don’t think it’s that issue though. Using Node-RED to inspect the contents of my state_topic, I can see that the values are either “0” or “1” indicating open/closed:
How are you triggering the close cover, are you using a script or some sort of automation to call it? I see you mentioned the close_cover service, have you tried “cover. close_cover” instead?
Ok, that makes sense as I too had the same type of problem when I tried to trigger any sort of automation through HomeKit. My fix was to create a scripts.yaml with the following:
How did you end up resolving this @jaaasshh ? I have the same issue and thoughts as you
Edit: actually I have been able to solve in my instance by instead using the template cover and following the example in the current documentation (Template Cover - Home Assistant) which includes a condition to check the state. Maybe this isn’t an option for mqtt cover?
Will see how reliable the shelly is used like this.