Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
161 stars 37 forks source link

Add availability status to sensors #273

Open akamming opened 2 weeks ago

akamming commented 2 weeks ago

Is your feature request related to a problem? Please describe. My use case is that i want to warn for open windows while the car is being locked. But i want to prevent false positives on someone is driving the car with the windows open. I cannot find a sensor in this addon describing the car in use status

Describe the solution you'd like SOme sensor describing the car is in use or not

Describe alternatives you've considered i used the domoticz plugin, but i switched to home assistant, so want to start using this addon for home assistant

Additional context This documentation desribes how to get the car status:

accessability status

If the car is in use, availabilityStatus.value will report "unavailable" and availabilityStatus.unavailableReason will report "CAR_IN_USE"

My suggestion would be the expose both the fields "availabilityStatus.value" and "availabilityStatus.unavailableReason" to extra sensors in the addon. This way with automations you can create your own logic in Home Assistant based on this reason.

Adding this call to the addon is a good idea anyway: e.g. with "No internet" as unavailability reason, it doesn't make sense to get all the other sensors as well, so it could also improve the inner working of this plugin

github-actions[bot] commented 18 hours ago

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.

akamming commented 13 hours ago

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.

In don’t know how to remove this stale label..