twrecked / hass-virtual

Virtual Components for Home Assistant
GNU General Public License v3.0
167 stars 28 forks source link

FR to help customise virtual covers #112

Open jpverlande opened 4 months ago

jpverlande commented 4 months ago

Hi there, I've been looking at Virtual hoping to turn a basic garage door into something that shows up nicely in HA. My intention was to rely on virtual entities for display purpose and rely on automations to change their state. For my garage door I have an action button that closes/stops/open the door and two bin sensors to know if it's fully open of fully closed. What I would need, to have it working, is the ability to "set" the cover entity to closed or open state, depending on these bin sensors. I tried to add service entries in virtual, but I'm stuck. I believe I need to modify some schema for the entity to be targetable by the service entries but I don't know how to proceed. Would it be possible to make such ad addition and have external components to set the status of the cover in addition to the timer (this one being easy to disable with a step of 0) Thanks for reading :)

[edit] looks like what I'm trying to achieve is possible using basic templates features, so ignore this if this is the case, I'll try this way first, thanks

twrecked commented 3 months ago

It's a bug, the service calls should work. It'll be fixed in 0.9.0b12.

twrecked commented 3 months ago

Should be fixed in 0.9.0b12