Skip to content

Conversation

@hcarter-775
Copy link
Contributor

@hcarter-775 hcarter-775 commented Nov 5, 2025

Description of Change

In the case an Eve device supports the Matter 1.3 Electrical Sensor device type, we should use the main driver handling of the cluster instead of the unique sub-driver handling.

To note, the profile being used by default for energy eve devices is power-energy-powerConsumption, but the new profile (using the main driver) will be plug-power-energy-powerConsumption. These are identical but are differently named. This should not affect anything relevant to the driver, and even in the case an Eve device is re-profiled for whatever reason in the future, this should not break any existing rules as the profile composition remains the same.

Summary of Completed Tests

Unit test added to confirm sub-driver is not used in the case that the device supports the Electrical Sensor device type.

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Channel deleted.

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Test Results

   71 files    464 suites   0s ⏱️
2 411 tests 2 411 ✅ 0 💤 0 ❌
4 095 runs  4 095 ✅ 0 💤 0 ❌

Results for commit 9d92306.

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

File Coverage
All files 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/event_handlers.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/attribute_handlers.lua 83%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/capability_handlers.lua 88%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/eve_energy/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/third_reality_mk1/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/fields.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/utils.lua 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/embedded_cluster_utils.lua 38%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/aqara_cube/init.lua 96%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 9d92306

@hcarter-775 hcarter-775 merged commit d572842 into main Nov 11, 2025
11 checks passed
@hcarter-775 hcarter-775 deleted the add/eve-optional-main-support branch November 11, 2025 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants