ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
149 stars 29 forks source link

Preheat indicator statys on #174

Closed dennzs closed 7 months ago

dennzs commented 7 months ago

The heater indicator usually stays ON for my EQB. The toggle itself does seem to work so I can turn it off and on but it will show as ON after having been on and turned off automatically. What could cause this?

ReneNulschDE commented 7 months ago

Do you mean the aux heater? The EQB has no aux heater normally, use the preclimate features of the component. The toggle is for Aux heater currently. Can you share some more details or a screenshot?

dennzs commented 7 months ago

Hi, I mean the preheat.

image

It will get stuck "ON" like this. Activating and deactivating works but it doesn't always (usually) update in Home Assistant (nor to Homekit through it of course)

image
dennzs commented 7 months ago

I tested it some more and I think Home Assistant just stays in the last state that HA set so it gets confused when it's done through the MB app? Something with state updating FROM MB API

ReneNulschDE commented 7 months ago

Can you share the configuration of this switch? This is nothing that the component provides. I assume you have created this switch. You need to check the attributes precond_now or precond_active of the range_electric sensor. (or take a look in the HA-forum for example here: https://community.home-assistant.io/t/mercedes-me-component/41911/1652

dennzs commented 7 months ago

Hi. You're right of course, I completely forgot that I had created this using a template. I was missing the value_template so it was just sending the commands but not updating.

Works perfectly now. Thank you very much!