Skip to content

Instantly share code, notes, and snippets.

@sevenissimo
Created March 3, 2024 09:54
Show Gist options
  • Select an option

  • Save sevenissimo/1b9712e9b9b8a0d28d5f61cbd4e60ec8 to your computer and use it in GitHub Desktop.

Select an option

Save sevenissimo/1b9712e9b9b8a0d28d5f61cbd4e60ec8 to your computer and use it in GitHub Desktop.
Disable buzzer when switch alarm type (issue #1279)
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
@sevenissimo
Copy link
Author

cd /data && curl -LkO https://gist.githubusercontent.com/sevenissimo/1b9712e9b9b8a0d28d5f61cbd4e60ec8/raw/f95142034ce4ec9cb589971e84ee6029f6fe5345/openmiio_agent.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment