-
Notifications
You must be signed in to change notification settings - Fork 2
Implement energy device clock synchronization #345
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
Merged
Merged
Changes from 88 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
6153f94
schedule clock synchronization every 60 seconds
dirixmjm 44651f2
CR: Drain cancellation to avoid “Task exception was never retrieved”.
dirixmjm c0eeed6
add raise after except
dirixmjm 35d294a
add additional try/except
dirixmjm 67e3ba9
create declaration for clock sync period and set to 1 hour
dirixmjm 6c22b95
update changelog
dirixmjm 131a90f
fix clock offset detection. Original code did not properly check for
dirixmjm 9433690
attribute error
dirixmjm 42801ee
improve logging of clock offset value
dirixmjm 77093fe
CR: Add small jitter to prevent synchronization bursts
dirixmjm 6bdc720
unifi log message between C+ and Circle
dirixmjm 65d166a
fixup: mdi_clock Python code reformatted using Ruff
ffee1f1
Add CirclePlusRealTimeClockSetRequest with ACK
bouwew 220e94d
Try with 00D7
bouwew 64afae6
Add missing comma
bouwew af29876
Freeze-time for test_node_relay_and_power
bouwew 9f0b17e
Update 0028-data from test-output
bouwew e8ececc
Use freeze_time to fix the test-datetime
bouwew 5a08281
Try
bouwew 2071570
Fix datetime returned by CirclePlus
bouwew 9d8d9e7
Try 2
bouwew ca738ed
Try 3
bouwew f1ccb0a
Debug datetimes
bouwew 0e032f8
Move freeze_time to test_energy_circle()
bouwew 1bc9809
Add missing import
bouwew a208f0f
Try 4
bouwew 5242ce5
Change time bij 30 secs
bouwew 9ee3c0e
Fix 0028 datetime
bouwew 59a5afc
Get proper datetime to compare the received datetime with
bouwew b459275
Ruffed
bouwew c750b97
Try
bouwew d9dede4
Freeze time a the full hour
bouwew 385a76a
Revert back
bouwew add25dc
Update 0028-response to match change
bouwew 332f27d
Shorten, improve var names
bouwew b31e15b
Try adding a 2nd optional response
bouwew bf44542
Try 2
bouwew a970073
Try 3
bouwew 2ac6626
CirclePlus: handle time-diff larger than 24hrs
bouwew 37f4c5c
Force int via value property
bouwew ea89f56
Test larger offset
bouwew 68090b2
Fix adding/deleting day(s)
bouwew b5b31de
Full naming
bouwew 58af3f4
Line up circle-clock-sync code
bouwew f8833b8
Debug weekday to large difference
bouwew 66ea7c1
Properly calc resulting day value
bouwew 466d008
Update circle too
bouwew 1100f32
Clean up extra debug-logging
bouwew 00d8ab2
Line up circle code in detail
bouwew 698b531
Set debug-level to warning, line up messages
bouwew 9034259
Revert node id in warning logs
bouwew b8e3ecc
Revert test-updates
bouwew e11ecd6
More logging clean up
bouwew 439878b
fixup: test_bouwew Python code reformatted using Ruff
af313a7
More clean up
bouwew 1e91943
Revert "Clean up extra debug-logging"
bouwew bbb598d
Full test-output
bouwew af54eb3
Add pytest settings
bouwew e40792a
Try
bouwew c615c92
fixup: test_bouwew Python code reformatted using Ruff
e298450
Back to using freeze_time for both related testcases
bouwew df1e9e9
Fix time for CircleEnergyLogsResponses
bouwew 49bdb23
Update 0028 response
bouwew 63bc7f9
Correct var name
bouwew 85b0ce6
Revert back to utc_now
bouwew 71e6f57
Fix year error
bouwew bb658d1
Also freeze_time test_node_discovery_and_load
bouwew 61374d0
Introduce clock offset of 10s
bouwew 6d4dfb6
Try
bouwew 16efa76
Try 2
bouwew ae1cc42
10s offset Circle+
bouwew c211e7f
10s offset Circle
bouwew 5e005ff
fixup: test_bouwew Python code reformatted using Ruff
6c89d60
Clean up
bouwew f572281
Modernize %-operator formatting
bouwew ae4e3e4
Fix typo
bouwew 6a96ea2
Back to normal test-output
bouwew 73b5cb3
Remove test-debugging
bouwew dbfdd30
Calculate also difference in days,
bouwew d1f0572
Update CHANGELOG
bouwew 87434a5
v0.47.0a0 test-version
bouwew da3ae66
Line up debug messages
bouwew f50af68
Replave utc_now by fixed_time
bouwew d81c485
Clean up
bouwew 2ba67e5
Improve pytest settings
bouwew 1a687f9
Ruffed
bouwew e12211a
Disable pytest logging
bouwew f379b02
Improve clock-sync related log messages
bouwew 51ec2b7
CRAI suggestions
bouwew 226008a
Update CHANGELOG
bouwew d700822
Change debug levels
bouwew df5ae00
Set release-version 0.47.0 in pyproject.toml
bouwew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.