CJNE / ha-porscheconnect

Porsche Connect custom component for Home Assistant
MIT License
29 stars 12 forks source link

Sensor for PRIVACY_MODE #138

Closed kgroshert closed 1 year ago

kgroshert commented 1 year ago

Is your feature request related to a problem? Please describe. When the car goes to privacy mode (either intentionally or because of e.g. a backend error), all the sensors will go to unavailable.

Describe the solution you'd like It would be nice to have a binary_sensor for privacy mode. This way one could catch that in the GUI or in automations. The JSON return from the server delivers this with the disabledReason:

...{'serviceId': 'rlu_v1', 'disabled': True, 'disabledReason': 'PRIVACY_MODE'...

Describe alternatives you've considered A template-sensor that would show the privacy mode if multiple sensors go to unavailable. But that would be a bit hacky...