New Garage Door widget or customize the cover one

Looking at the Cover Doc in HADashboard.md file it looks boolean.
My Almond+ app shows the door close/opening/open/closing. I was trying to replicate that HADashboard. The closest way would have to create a input_mode and update it with automations.

How hard is it to create a widget? I saw in the beat thread where someone was testing it for @aimc.

Also in the Almond+ there is a difference in how the door was open/closed (using the wall button vs being commanded from automation).

Hey, do you know how hard it is to get my Linear Garage Door running. I want to pretty it up. :slight_smile:

Did some playing around, looking at some of the component code (zwave.py).
For referance:

garage:
    widget_type: cover
    entity: cover.garage_door_one_car_barrier_state_label
    icon_on: mdi.garage
    icon_off: mdi.garage-open

Without the icon_xx I get the red/white arrows. They work as I tilt the sensor. Also, clicking on the widget cycles the door(my controler flash and beeps)

But when I use the icon_x it is just grey background, and clicking the widget cycles the door.
What am I missing?
How does icon_style_active, icon_style_inactive play into this?

1 Like

Fix the icon showing up. It was a mistype should have used a - instead of a . to separate form icon library.
And once I get the icon to show up, then I could see they were backwards.
Here is where I am at right now.

garage:
    widget_type: cover
    entity: cover.garage_door_one_car_barrier_state_label
    icon_on: mdi-garage-open
    icon_off: mdi-garage

Still digging for how to use icon_style_active/inactive.

And I got it …

garage:
    widget_type: cover
    title: Garage Door
    title2: One Car
    state_text: 1
    state_map:
      "open": Open
      "closed": Close
    entity: cover.garage_door_one_car_barrier_state_label
    icon_on: mdi-garage-open
    icon_off: mdi-garage
    icon_style_inactive: "color: green"

I found it by looking at other examples.
@aimc What about a tweak to the documents …
Just thinking out loud …
At the end of the section (cover) have the hello world example section for that widget.
Tried to hack the web page but not a good job, I think it gets the idea across.

Maybe a note when there are question. Like what values for the state_text.

4 Likes

Haha @penright. I love how you start off with a question and then systematically answer it for the rest of the community :grin:. I was having a problem with my cover icon’s and the State Map solution looks like the answer for me.
Thanks very much :+1:

1 Like

Thank you so much for this. WAF has been upgraded because of this.