Joseph Abbey
474bd552ad
Only re-register sensors if the state has changed
2025-08-15 13:22:29 +01:00
Philip Abbey
5a0bd98ddb
Candidate bug fix for crash opening app from glance
...
Changed the function parameters on WebhookManager.onReturnRegisterWebhookSensor() to remove the last optional parameter that was causing the error message and this appears to keep the application happy on start up. Looks like an API request race between the glance's last call and the app first call.
Co-Authored-By: __JosephAbbey <me@josephabbey.dev >
2025-08-15 12:56:22 +01:00
Philip Abbey
166b5f4ec3
Found a path to a crash condition
...
Preventing a de-reference of null when the HA server is unreachable.
2025-08-10 20:50:12 +01:00
Philip Abbey
dd484aa615
Fix for settings
...
HTTP-Headers settings no longer crash the application on the device. Group settings removed as they could be be changed a second time due to a bug in the SDK.
2025-08-10 14:08:52 +01:00
Philip Abbey
f224268554
Documentation
2025-08-09 16:36:46 +01:00
Philip Abbey
c1cddc54e4
Initial attempt
...
Lacking an end to end test on this code presently.
2025-08-08 11:40:13 +01:00
Philip Abbey
d110826392
Amended Globals.mc
...
Moved wifiPollDelayMs to Globals class.
2025-07-25 08:38:55 +01:00
Philip Abbey
0d73de494e
Tidy
2025-07-24 20:56:08 +01:00
Philip Abbey
a686e1a104
Reordered settings
2025-07-24 19:49:44 +01:00
Philip Abbey
8868f2152c
Comments & Dictionaries
...
Reformatted comments to work in VSCode and converted `dict.get(:key)` to `dict[:key]` syntax as its nicer.
2025-07-24 18:54:27 +01:00
Philip Abbey
70f05e8912
Added missing code headers
...
And included vincentezw in headers for the code he touched.
2025-07-22 22:14:46 +01:00
Philip Abbey
9641313492
Wifi -> Wi-Fi
...
Amended in presentational aspects only, not in the actual code. "Wi-Fi" is the proper noun and registered trademark.
2025-07-22 22:03:10 +01:00
Vincent Elger Zwanenburg
0b84983eaf
use fixed poll delay from const
2025-07-21 21:02:51 +01:00
Vincent Elger Zwanenburg
d32135af63
fix setting toggleItem, periodic pulling
2025-07-21 19:45:14 +01:00
Vincent Elger Zwanenburg
db3fbd9886
timers as statics, defensive popviews, no double confirmation, add pin
...
screen onBack, toggle state tweaks
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
be7eed1ae1
early return from fetchApiStatus for in-app wifi, fix typo in docstrings
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
576f8c4a64
HomeAssistantConfirmationDelegate and HomeAssistantPinConfirmationDelegate undo toggles on timeout and reject
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
979d85fce5
show toast, not error, in updateMenuItems
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
ac899ff784
simplify delegate, toggle switch for empty response body
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
b45f02ef7b
move popview up so it does not close wifi dialog
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
62f0e711c9
make setting conditional by using group
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
b2b8ffb332
separate syncdelegate class file, check for startsync2
2025-07-19 10:35:34 +01:00
Vincent Elger Zwanenburg
172d4ad1e4
add Wifi LTE command execution
2025-07-19 10:35:34 +01:00
Philip Abbey
f6d0916315
Update HomeAssistantTapMenuItem.mc
...
Requirement for use of the PIN was not being correctly extracted from the options. Goes to show why the security features should not be relied on! A recent compilation fix created this breaking change.
2025-07-18 20:46:49 +01:00
Philip Abbey
ee964ce882
Update HomeAssistantMenuItemFactory.mc
...
Function documentation fix.
2025-07-11 01:11:00 +01:00
Philip Abbey
ee9da24592
Fix for too many arguments to a function call on some devices
2025-07-11 01:06:15 +01:00
Philip Abbey
906cdf7371
Code documentation comments were not updated
2025-07-10 23:54:05 +01:00
Philip Abbey
d141c03104
Review comment
...
Moved point of application exit for the menu item option.
2025-07-10 19:46:04 +01:00
Philip Abbey
842a31a1cc
Review comment
...
enable => enabled
2025-07-10 18:24:30 +01:00
Philip Abbey
6dbcea94cf
Update HomeAssistantView.mc
...
Refined more precisely where the exit option can be used and enforced in the code.
2025-07-09 21:09:33 +01:00
Philip Abbey
ec044c5408
Added two new options to menu items
...
1. The ability to disable a menu item without deleting it.
2. The option to quit the application on item selection.
2025-07-08 22:48:42 +01:00
Philip Abbey
4df1fd69bc
Update Globals.mc
...
Increased the API back off time from 1s to 2s to remove the glance's status flickering. The assumption is that the GET requests are too fast for the Bluetooth stack.
2025-07-06 21:31:33 +01:00
Philip Abbey
90ed1f4bea
Update HomeAssistantGlanceView.mc
...
Improved layout.
2025-07-06 19:02:59 +01:00
Philip Abbey
47a930828a
Revised glance view
...
Refreshed default view and new customisable view.
2025-07-06 14:44:53 +01:00
__JosephAbbey
4ed81df60a
Fix spelling of Bluetooth
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: __JosephAbbey <me@josephabbey.dev >
2025-07-05 13:57:35 +01:00
__JosephAbbey
b4f5f34760
Fix spelling of Webhook
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: __JosephAbbey <me@josephabbey.dev >
2025-07-05 13:57:02 +01:00
Philip Abbey
4cf5a0ae26
Update HomeAssistantApp.mc
...
Fix the 'fixed' comment string.
2025-07-04 17:26:33 +01:00
Philip Abbey
b44d4c6155
Update HomeAssistantApp.mc
...
Amended 4 comments
2025-07-04 17:20:48 +01:00
Philip Abbey
f2d65aa6e3
Added correctly formatted code comments
...
The newer SDK support tooltips to show the function prototype and help text, so best to make good use of it.
2025-07-04 16:57:25 +01:00
Philip Abbey
7e58e5416d
Support for Vivoactive 6 device
...
This required an update to the SDK to version 8.1.0. The new SDK found some new code warnings for unreachable code previously known to be reached based on stricter type checking, so fixed in this commit too.
2025-04-24 22:26:18 +01:00
Philip Abbey
fd213cc210
Update HomeAssistantApp.mc
...
Update the Settings object from persistent storage before checking the URLs work and reporting the status to the Glance view.
2025-04-21 13:56:08 +01:00
Philip Abbey
e8f2c0d3bb
Amended menu item class inheritance
2025-03-28 00:22:09 +00:00
Philip Abbey
71cba8c21c
Code attribution for author of PIN entry.
...
Prior to sorting out inheritance.
2025-03-28 00:20:53 +00:00
Philip Abbey
236a4969d7
Menu item code tidy
...
Prior to sorting out inheritance.
2025-03-27 20:45:51 +00:00
Philip Abbey
e41f451fbc
Update HomeAssistantApp.mc
...
Fix for lost speedup from v2.24 when fixing a bug in v2.25.
2025-03-27 20:45:02 +00:00
Philip Abbey
155649f162
Fix for 2 bugs in issue 221
...
Template rendering and Webhook ID on initial start.
2025-03-26 22:37:33 +00:00
Philip Abbey
adf69d7dec
Rearranging Web API Requests
...
Making sure the menu update API call is completed before the Webhook IDs are fetched in order to reduce latency to usefulness.
2025-03-23 16:54:13 +00:00
Philip Abbey
d105e69484
Update WebhookManager.mc
...
Removed Settings.unsetWebhookId() where it might be causing problems with replacement "Garmin Device" in Home Assistant.
2025-03-23 16:01:53 +00:00
Philip Abbey
fd58625640
Info only menu item
2025-01-19 13:44:53 +00:00
Philip Abbey
b6719365b2
Changes as per issue.
2024-11-19 21:56:32 +00:00