-
Notifications
You must be signed in to change notification settings - Fork 484
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
Adding support for frient Intelligent Smoke Alarm (SMSZB-120) #2024
base: main
Are you sure you want to change the base?
Adding support for frient Intelligent Smoke Alarm (SMSZB-120) #2024
Conversation
Hey @GAFfrient. We will begin a review of this PR. When you have a free moment, please sign the required Contributors License Agreement #2024 (comment) |
Duplicate profile check: Passed - no duplicate profiles detected. |
Invitation URL: |
Test Results 66 files ±0 420 suites ±0 0s ⏱️ ±0s For more details on these failures, see this check. Results for commit 443a6b3. ± Comparison against base commit 0db6c68. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 443a6b3 |
Hello. Now I did :) |
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
-- See the License for the specific language governing permissions and | ||
-- limitations under the License. | ||
|
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.
leave this in place, thanks
NAME = "Freint Smoke Detector", | ||
local function do_configure(self, device) | ||
device:configure() | ||
device:send(TemperatureMeasurement.server.attributes.MeasuredValue:configure_reporting(device, 60, 600, 100):to_endpoint(0x26)) |
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'd use add_configured_attribute
in the init
handler. (example here: https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/blob/main/drivers/SmartThings/zigbee-dimmer-remote/src/init.lua#L30)
this will ensure the configure_reporting message is sent by device:configure
as well as creates a binding to the TemperatureMeasurement
cluster
supported_capabilities = { | ||
alarm |
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 field doesn't do anything for sub-drivers
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.
We'd like to see some tests covering the new behavior.
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests