Created
March 3, 2024 09:54
-
-
Save sevenissimo/1b9712e9b9b8a0d28d5f61cbd4e60ec8 to your computer and use it in GitHub Desktop.
Disable buzzer when switch alarm type (issue #1279)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function miio_request(from, method, req) | |
| -- Disable buzzer when switch alarm type (issue #1279) | |
| if from == 32 and method == "local.status" and req:find("alarm_long_one") then | |
| return nil | |
| end | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cd /data && curl -LkO https://gist.githubusercontent.com/sevenissimo/1b9712e9b9b8a0d28d5f61cbd4e60ec8/raw/f95142034ce4ec9cb589971e84ee6029f6fe5345/openmiio_agent.lua