Conversation
Test Results 71 files 485 suites 0s ⏱️ Results for commit d3ae5af. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against d3ae5af |
5abb504 to
eb50abd
Compare
|
Invitation URL: |
...atter-sensor/src/embedded_clusters/SoilMeasurement/server/attributes/AcceptedCommandList.lua
Outdated
Show resolved
Hide resolved
...ings/matter-sensor/src/embedded_clusters/SoilMeasurement/server/attributes/AttributeList.lua
Outdated
Show resolved
Hide resolved
| @@ -0,0 +1,67 @@ | |||
| local cluster_base = require "st.matter.cluster_base" | |||
There was a problem hiding this comment.
and this one, unless you're planning on adding a handler for this?
There was a problem hiding this comment.
Yep, I'll remove it
| if #battery_feature_eps > 0 then | ||
| device:send(clusters.PowerSource.attributes.AttributeList:read()) | ||
| else | ||
| device_cfg.match_profile(driver, device, fields.battery_support.NO_BATTERY) |
There was a problem hiding this comment.
I think we need to add some kind of handling to the match_profile function so that it can support battery? Along with a couple unit tests?
There was a problem hiding this comment.
That should already be supported, no?
There was a problem hiding this comment.
how would it be?
edit: nevermind, I forgot how the Matter Sensor match profile logic works.
2761208 to
a7fcbb4
Compare
a7fcbb4 to
09c0f55
Compare
| clusters.RadonConcentrationMeasurement.attributes.MeasuredValue, | ||
| clusters.RadonConcentrationMeasurement.attributes.MeasurementUnit, | ||
| }, | ||
| [capabilities.relativeHumidityMeasurement.ID] = { |
There was a problem hiding this comment.
This was a duplicate entry
| -- remove leading "-" | ||
| profile_name = string.sub(profile_name, 2) | ||
|
|
||
| device.log.info_with({hub_logs=true}, string.format("Updating device profile to %s.", profile_name)) |
There was a problem hiding this comment.
I removed this log because I realized this is now logged by the lua libs
This adds support for the Soil Sensor device type, introduced with Matter 1.5.