jerrod-lankford / GarageQTPi

An MQTT server for a raspberry pi garage door opener. Most commonly used as a HomeAssistant cover component.
MIT License
75 stars 36 forks source link

device_class not set when using discovery #41

Open dyde121 opened 4 years ago

dyde121 commented 4 years ago

When using discovery via MQTT, the garage door is configured as a generic "cover" ie. blinds. It would be great if the MQTT Cover device_class could be set to "garage"

dyde121 commented 4 years ago

Workaround applied in Home Assistant

homeassistant:
  customize:
    cover.garage_door:
      device_class: garage
hmoffatt commented 3 years ago

@bg1000 could you add this in your fork?

bg1000 commented 3 years ago

I'd be happy to take look.