ReneNulschDE / mbapi2020

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

binary.sensor.xxxxxx_windows_closed reports as open when windows are closed #163

Closed BobD61 closed 8 months ago

BobD61 commented 8 months ago

windows closed sensor is showing as open when all windows are closed

Retrievalstatus VALID Timestamp 19 December 2023 at 13:01:25 Windowstatusfrontleft 2 Windowstatusfrontright 2 Windowstatusrearleft 2 Windowstatusrearright 2

image

BobD61 commented 8 months ago

This is using v0.9.8 of the integration

image

ReneNulschDE commented 8 months ago

Could it be that you set the device_class: window manually in the HA frontend? My code does not create this setting and the device-class is the reason for this behavior.

BobD61 commented 8 months ago

That was it - clearing device_class and it now correctly shows state on.

Thanks for your help