hey guys, updated to the latest Home Assistant and now my OpenGarage doesn’t work. The opening and shutting the door works, just the distance sensor and car in garage are broken.
In the upgrade docs, it mentions:
door_state
is removed as an attribute, but you can use the state directly instead.
and
The attributes (wifi_signal
and distance_sensor
) for OpenGarage covers are removed and replaced by individual sensors.
anyone able to help me fix this? here is my config.
#Open Garage Config
cover:
platform: opengarage
covers:
garage:
host: 192.168.70.119
device_key: #######
name: Garage Door
sensor:
- platform: template
sensors:
garage_status:
friendly_name: 'Garage Door Status'
value_template: '{% if states.cover.garage_door %}
{% if states.cover.garage_door.attributes["door_state"] == "open" %}
Open
{% elif states.cover.garage_door.attributes["door_state"] == "closed" %}
Closed
{% elif states.cover.garage_door.attributes["door_state"] == "opening" %}
Opening
{% elif states.cover.garage_door.attributes["door_state"] == "closing" %}
Closing
{% else %}
Unknown
{% endif %}
{% else %}
n/a
{% endif %}'
icon_template: >-
{% if states.cover.garage_door.attributes["door_state"] == "closed" %}
mdi:garage
{% else %}
mdi:garage-open
{% endif %}
garage_car_present:
friendly_name: 'Subaru in Garage'
value_template: '{% if states.cover.garage_door %}
{% if states.cover.garage_door.state == "open" %}
not available
{% elif ((states.cover.garage_door.attributes["distance_sensor"] > 40) and (states.cover.garage_door.attributes["distance_sensor"] < 135)) %}
Yes
{% else %}
No
{% endif %}
{% else %}
n/a
{% endif %}'
icon_template: >-
{% if is_state('binary_sensor.subaru_in_garage','on') %}
mdi:car
{% else %}
mdi:car-arrow-right
{% endif %}