-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aqara Wireless Mini Switch T1 #1145
Aqara Wireless Mini Switch T1 #1145
Conversation
Channel deleted. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against ec7162d |
@@ -0,0 +1,94 @@ | |||
local battery_defaults = require "st.zigbee.defaults.battery_defaults" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing CopyRight Profile.
@@ -0,0 +1,135 @@ | |||
---@diagnostic disable: param-type-mismatch, missing-parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been modified
device:emit_event(capabilities.button.supportedButtonValues({"pushed","held","double"}, {visibility = { displayed = false }})) | ||
device:emit_event(capabilities.button.numberOfButtons({value = 1})) | ||
device:emit_event(capabilities.button.button.pushed({state_change = false})) | ||
device:emit_event(capabilities.battery.battery(100)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could be missing something, but is the battery value held at 100%? Is there a specific function that is updating the value? Or is it an automatic reportable change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the "added" lifecycle event handler that fires when the device is added for the first time. In general we do this so that the value is populated on add so there are no UI hiccups.
After the fact, the value will be read using the standard zigbee attributes and handled by the defaults.
470eb3a
to
1a03d22
Compare
1a03d22
to
ec7162d
Compare
No description provided.