First of all thanks to whole community for excellent work and help I’ve been able to dine within this community all these years…
Now coming to my question: I’ve recently installed a sun cover in my backyard… using a Shelly 2.5 as controller.
Everything is configured properly, but I have a question on the Lovelace cover template.
Long story short, I would like to have this setting:
Cover status “open” ( cover fully extended) → 100% as position.
Cover status “closed” ( cover fully retracted) → 0% as position.
Currently with default Lovelace template config I can only have:
Fully open cover with 0% as position (while even swapping Shelly controls and reverse direction is not providing desired setup).
Any help here from your side?
Sorry in advance if it’s a silly question but I have not found any solution navigating the forum…
Thanks @parautenbach for your reply, I already went through that topic, but unfortunately not found useful takeaway.
Indeed I’ve also tried a custom template for cover, but I’m not getting the correct status I want:
Cover status “Closed” ( cover fully retracted) → 0 as position → Slider at 0%
Cover status “Open” for any position >0 (cover partially extended) → Slider at correct %
Cover status “Open” ( cover fully extended) → 100% as position → Slider at 100%
Is anyone able to assist me on the custom template coding?
Thanks in advance!
I’m getting below result which is almost ok, but I would like to see “open at 90%”
It’s an awning so to be fully extender shoud be 100%, while closed 0%…
but I cannot obtain that result unfortunately
thank you @Emphyrio , pretty similar to my custom entity, but indeed with same issue…
in this example I have the “open” and “closed” status still wrong…
and open % still wrong (opposite)…
In the setup I’m trying to get, a fully extended awning should be 100% - Open… while with above code still shown like below pic:
Hello @Jpsy you described exactly the issue I’m facing… and apparently still not able to have the correct percentage and slider “in sync” with our logic when considering an awning opening
Based on your last statement seems no solution yet, correct?
in the meantime thanks a ton for your help and exaustive reply!