You just need to replace with your sensors and contacts. Be sure and restart HA after adding to configuration.yaml. I’m using ZOOZ MultiRelay ZEN16 to control all three garage door openers.
This is great- would you happen to have an idea of how to do something similar in ESPHome? It does not support icon_template or value_template to my knowledge and I was hoping to keep everything self-contaied there.
Thanks for sharing this code. I’m just starting out on HA journey and have been trying to get this working all day. Can you help me confirm a few details?
Should I put both pieces of code into the configuration.yaml?
Can you explain the steps to then add to dashboard after a restart?
Many thanks for any help.
J.
The card code goes on the dashboard in an added card. In my example switch.garage_openers_1 is my name for a contact closure switch. binary_sensor.garage_door_1 is my name for a sensor that closes when the garage door closes. You need to replace those with your devices.
Thanks for sharing, I’ve added exactly as above to my configuration.yaml (changed the names of states etc) but get an error when creating the card: “Entity not available: cover.garage_door_r”.
Any ideas? How do I add “cover.garage_door_r” as an entity, or should this happen automatically with the configuration.yaml code? Thanks
Thanks for the info,
I am using a (Z-Wave) Zooz relay to open and close the garage door and an old (Zigbee) Smartthings multipurpose sensor to detect if the door is open/closed and if it is moving. I had been using MyQ but with the HA integration being removed I rigged this up.
I wanted to see if the garage door was moving in between the door opening or closing. so I figured out the following. Posting in case someone else wants to see.
Any help on using your combo card with my setup would be greatly appreciated. This is a little above my head and I just don’t know how to put all of this together.
What type of sensor did you use here to detect if the door is moving? I have a Zooz Tilt/Shock sensor that I am planning to use to detect open/close, not sure if I can use your code for my purpose or not as I’m unsure if the sensor will do the same. Using the same relay so hoping to borrow as much of this as I can. Does this go in your config.yaml file?
Also, which card did you put on your dashboard ? I’m a bit confused there as the tilt sensor would determine status of up or down, but I’d want to be able to click the door icon to trigger the call service for the relay to open/close the door.
I’ve used this setup today and all is working except for the changing icon. I’ve repointed the sensor / cover names and there is no issue with the switch working or the sensor. I see no errors, but the icon just doesn’t change based on the state of the door sensor.
Has the syntax changed for 2024.8 from this original example?