Skip to content
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

Feature/eve performance device off #1125

Closed
wants to merge 6 commits into from

Conversation

ctowns
Copy link
Contributor

@ctowns ctowns commented Dec 20, 2023

No description provided.

Timac and others added 6 commits November 24, 2023 14:58
- Don't the power reports of the device if the device is off
- In the timer, we now check if the device is off using device:get_latest_state()
- Set the power to 0 before the read is skipped so that the power is correctly displayed and not using a stale value
- Add unit test to test the on attribute
- Create the 1-minute timer when the device is switched on (if the timer doesn't exist yet)
- Delete the 1-minute timer when the device is turned off
- The totle consumption is saved in the variable LATEST_TOTAL_CONSUMPTION_WH
- There is now a 15-minutes timer to send the powerConsumptionReport report to satisfy the ST energy requirement
Copy link

github-actions bot commented Dec 20, 2023

Channel deleted.

Copy link

Test Results

     55 files  ±0     347 suites  ±0   0s ⏱️ ±0s
1 627 tests  - 6  1 626 ✔️  - 7  0 💤 ±0  1 +1 
2 853 runs   - 8  2 852 ✔️  - 9  0 💤 ±0  1 +1 

For more details on these failures, see this check.

Results for commit a95a3ed. ± Comparison against base commit ff48787.

This pull request removes 7 and adds 1 tests. Note that renamed tests count towards both.
Check that the timer created in create_poll_schedule properly reads the device in requestData
Check the power and energy meter when the device is added
Check the refresh command
Check the reset command
Report with the custom Watt accumulated attribute
Report with the custom Watt accumulated attribute after 10 minutes
Report with the custom Watt attribute
Report with power consumption after 15 minutes even when device is off

Copy link

File Coverage
All files 79%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/eve-energy/init.lua 57%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against a95a3ed

@ctowns ctowns closed this Dec 20, 2023
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.

2 participants