Garage Door Controller w/Relay and Door Sensor

Hey all – I have not upgraded HA in a long while. I upgraded it today and my garage door controller stopped working. It’s made up of a relay and a door sensor which are both zwave.

I’m guessing that someone has made this work as one combined unit so that when I add it to my screen, it shows the status of the door and when you tap it, it activates the relay.

Any suggestions or tips on how to accomplish this would be greatly appreciated. Thank you!

Thanks - I ran across that and have that set up in my config. I guess I’m confused at how I add this cover to my Dashboard. I still only have a relay and open/closed door sensor. What creates the entity so that I can add it to a dashboard? Or, maybe I’m confused about how these covers function within HA.

Adding a template cover in your configuration.yaml should create a cover entity (after you restart HA). Then you can add this cover entity to any dashboard cards that support it (e.g. tile or entities card).

If you added the template cover and you don’t find a new cover entity in your system, then give some more details about what you tried, and check logs for errors.

Ok, I got it working. I just needed to restart HA. The only thing that is not working is the state of the garage door on the button. I got the icon to change, but the state still shows “Unknown”. I’ve added a little screenshot of what I’m talking about. It should say “Closed” when it’s closed, and “Open” when it’s open. I tried using value_template but that didn’t seem to work. Any tips on how I can fix this?

image

Post your code

I got it to work. Case sensitive issue. I would like it to show Opening and Closing as well if I can. Do I have to have another for switch to make use of that?

Maybe.

It can tell open 100% or closed 100%. Can your door sensor detect tilt?

Or

anything that isn’t 100% open or closed can be consider moving. And if moving from closed (opening) or moving from open (closing).

I don’t remember how to show this with template cover but you could use a seperate automation to manually set that state and the icon if it is not already possible With template cover