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 345 forks source link

How to disable buzzer when switch alarm type #1279

Closed iapYang closed 8 months ago

iapYang commented 9 months ago

Currently I Have a Xiaomi Multimode Gateway,model ZNDMWG03LM,verision 1.5.4

When I change the alarm type, like from alarm_away to alarm_night, the buzzer make sounds

Is there any way can I mute the buzzer when change the alarm type?

AlexxIT commented 9 months ago

Your task similar with this https://github.com/AlexxIT/XiaomiGateway3/issues/919 BUT. You should update lua code for your needs. I don't know what command gateway sends to buzzer on alarm change. You should find it yourself.

iapYang commented 8 months ago

Thanks a lot,i'll make a try

sevenissimo commented 8 months ago

Maybe this should help.

Not extensively tested, but it seems to work.

iapYang commented 8 months ago

@sevenissimo thanks a lot,I'll give a try