AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.47k stars 347 forks source link

lumi.gateway.mgl03 alarm control broken after update to HASS 2024.11 #1484

Open sdimitrov-sms opened 2 weeks ago

sdimitrov-sms commented 2 weeks ago

So after the upgrade to HASS 2024.11 looks like the alarm control for the Gateway: ZNDMWG03LM, ZNDMWG02LM, YTC4044GL, lumi.gateway.mgl03 broke. It works in terms of actions, but it doesn't show the current status:

image image

I tried rebooting HA and the Gateway but doesn't seem to solve the issue.

shift-del1 commented 2 weeks ago

@AlexxIT: I had the same issue with my Aqara M1S CN, this fixed the problem of "unknown status":

https://github.com/niceboygithub/AqaraGateway/commit/37c33e01610435234ab2583721dac56f64f69ec8

sdimitrov-sms commented 2 weeks ago

@AlexxIT: I had the same issue with my Aqara M1S CN, this fixed the problem of "unknown status":

niceboygithub/AqaraGateway@37c33e0

Trying to understand in the code where can this fit, however, the way both are set up works differently (Aqara component and this one)

shift-del1 commented 2 weeks ago

Yes, I also came to this conclusion, however I wanted to share this in case it can point anyone in the right direction.

matteos1 commented 2 weeks ago

not work also for me

MiroG225 commented 1 week ago

Same here. I can control the gateway, but status in HA is Unknown. Looks like HA->Gateway works, but Gateway->HA doesn't. Conected devices (ble door sensor, temp/hum clock) work as before.

shift-del1 commented 1 week ago

This was written in the release log:

https://developers.home-assistant.io/blog/2024/10/22/new-alarm-state-property/

matteos1 commented 1 week ago

Some solution?

NunoOliveira commented 1 week ago

I'm having the same issue.

custom_components.xiaomi_gateway3.alarm_control_panel.XAlarmControlPanel'>) is setting state directly which will stop working in HA Core 2025.11. Entities should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum, please report it to the custom integration author.
AlexxIT commented 1 week ago

Solution - master version

MiroG225 commented 1 week ago

Solution - master version

Don't get it

sviperz commented 1 week ago

@MiroG225 download and apply the master version of integration.

Alternatively replace your _alarm_controlpanel.py with the file from the master branch.