Commit Graph

  • b8010201cd Add desktop file. Joshua Rich 2023-04-10 11:40:27 +1000
  • 0e5e0c580c Add a Joshua Rich 2023-04-10 11:39:36 +1000
  • 4584f91dde Better naming of batteries in Linux. Add a screenshot of the registration window for use in the README. Add usage details to the README. Fix appSensor types. Joshua Rich 2023-04-10 10:20:47 +1000
  • c2d985da93 Fix state class on app sensors. Code clean-up in Linux network sensors. Joshua Rich 2023-04-10 09:50:32 +1000
  • bcbe03ee14 Add licensing. Better sensor icons for Linux network sensors. Joshua Rich 2023-04-10 09:45:12 +1000
  • 5ef33ad6e6 Rewrite app tracking on Linux to avoid intermediate state. Joshua Rich 2023-04-09 23:02:35 +1000
  • 4edc428a3f Fix up info and version commands. Add more details to About dialog window. Joshua Rich 2023-04-09 21:24:59 +1000
  • 71549447a5 Add network sensors on Linux. Better config loading process with initial code to validate. Better registration process. Joshua Rich 2023-04-09 21:09:05 +1000
  • 37cdac5692 Better websocket handling. Add initial code for tracking network sensors in Linux. Improvements to DBus API for Linux and more helper functions. Minor code tweaks and renaming in other places. Joshua Rich 2023-04-08 13:46:26 +1000
  • e8a487ae03 Platform/device specific sensor workers now register themselves centrally, to be started by the agent. Simplify location updater to utilise existing sensor updater logic. Document how to add new sensors. Joshua Rich 2023-04-07 12:53:56 +1000
  • 2e7bf75901 Switch mdns packages. Joshua Rich 2023-04-06 11:22:54 +1000
  • ab783b3530 Some renaming. Joshua Rich 2023-04-06 10:46:46 +1000
  • e69de27acd Lots of code moves to logically place functions/structs and avoid import cycles. Move sensor tracking logic to single agent function. Avoid creating aliases of sensorState struct. Now device code for sensors just sends an update with necessary details and this function handles creating and tracking a HA sensor for it centrally. Joshua Rich 2023-04-06 10:08:21 +1000
  • 7e6a5a7194 sensorState using iotas for deviceClass and stateClass. Sensor name and id formatting. Joshua Rich 2023-04-05 16:59:32 +1000
  • a97eec024c Some naming improvements. Battery sensor updates should use the sensorUpdate interface. Joshua Rich 2023-04-05 16:07:05 +1000
  • 1fe2db5b82 Better .gitignore (deny all except...). Joshua Rich 2023-04-05 10:33:42 +1000
  • cfa0107262 DRY with appSensor code. For battery sensors on Linux, create appropriate sensors based on the battery type. Joshua Rich 2023-04-05 10:25:18 +1000
  • 2a99083e65 sensorUpdate is not battery specific anymore. Joshua Rich 2023-04-04 19:07:45 +1000
  • 15c81ddcc9 The hass response interface now requires a ResponseHandler() function that will handle its own response. Battery sensor worker rewritten to avoid overhead of tracking batteries and sensors to just track sensors. Battery sensors on Linux rewritten to handle tracking batteries and only sending updates for battery properties that change (as per sent from DBus). Joshua Rich 2023-04-04 16:23:08 +1000
  • f18c16b7a0 Remove uneeded declarations. Add some documentation to code. Joshua Rich 2023-04-04 10:36:02 +1000
  • 182296ae67 Rewrite battery_linux code to avoid a timer loop. Joshua Rich 2023-04-03 17:55:55 +1000
  • f5b79a092d Add helper code for Linux DBus access. Utilise this helper code in sensors. Define a way to pass this helper code through a context. Joshua Rich 2023-04-03 12:05:04 +1000
  • 37fa3473f3 Move config to its own package. Create methods to add config as context value. Use a context with a config value attached in worker functions. Create a sensorState struct. Make each sensor type be this base struct. Joshua Rich 2023-04-02 13:59:12 +1000
  • 5ef6292f59 More major work to utilise and inherit a context set at the root level, and handle it being cancelled. Add more helper functions for Linux. Rename and move some code (Home Assistant websocket/api related). Joshua Rich 2023-04-01 21:19:42 +1000
  • cf2cb19001 Major rework of notifications and websocket code. All sensor workers should shut down cleanly. Related to above, better use of contexts and inheritance of them. Joshua Rich 2023-04-01 12:10:54 +1000
  • 9f662b1c51 All sensor workers now support clean-up on app close. Joshua Rich 2023-03-31 17:09:22 +1000
  • 3624fe7ea3 Add a battery state sensor for Linux. Joshua Rich 2023-03-31 16:22:30 +1000
  • d0c43da3f5 Improved app registration window layout and logic. Joshua Rich 2023-03-31 14:35:50 +1000
  • ea903af59a Battery sensors updates on Linux use ticker-based polling. Joshua Rich 2023-03-31 11:40:29 +1000
  • 0d0f8146bd Linux battery sensors PoC code. More cleverer use of interfaces. A sensor can satisfy being its own request to HA as well. Joshua Rich 2023-03-31 10:17:57 +1000
  • d69f68b2ed Major restructure of codebase. Better handling of notifications websocket. HASS API requests can be run in own goroutine. Joshua Rich 2023-03-30 09:42:57 +1000
  • d657e8bd98 Lots of restructure so that root command is simpler. Remove processRequests handler. Requests can be done as needed. Joshua Rich 2023-03-29 13:12:03 +1000
  • a3f2221bb0 Add an icon. Try to improve network handling for notifications websocket. Fix active apps sensors. Joshua Rich 2023-03-28 18:49:51 +1000
  • 692036cff4 Update debug messages to have call traces. Joshua Rich 2023-03-28 11:29:42 +1000
  • ff6a2a881a Notifications working. Joshua Rich 2023-03-27 18:28:54 +1000
  • be9c78f2cd Initial implementation of notification handling. Joshua Rich 2023-03-27 16:29:39 +1000
  • b1cb532fda More code clean-up. Joshua Rich 2023-03-26 18:03:45 +1000
  • 8025d8432d Code clean up. Joshua Rich 2023-03-26 15:43:21 +1000
  • 5876630c1d Adjusted app sensor to provide an active app and running apps count sensor. App sensor request response handling. Joshua Rich 2023-03-26 11:50:08 +1000
  • 270bf8925e Working active app sensor! Joshua Rich 2023-03-25 13:02:14 +1000
  • 32d1f9ac2a Better logic for wating on config to load. Location now updates for Linux devices. Joshua Rich 2023-03-22 14:13:39 +1000
  • 60c556d2d9 Switch to using github.com/rs/zerolog instead of logrus (which is in maintenance mode). Linux location info. Location info runner. Joshua Rich 2023-03-22 13:09:33 +1000
  • 7cc39b7848 Simplify startup. Joshua Rich 2023-03-21 14:34:10 +1000
  • afc0cd3010 Registration flow working. App now properly runs in tray without a root window shown. Joshua Rich 2023-03-21 10:37:58 +1000
  • 928cd832c2 Better registration logic. Add the beginnings of the systray. Joshua Rich 2023-03-17 15:44:29 +1000
  • 7a425e4e82 Initial commit. Anisble playbook to set up a Home Assistant server for testing against via Podman. Functionality to request (and/or find) registration info from the user. Joshua Rich 2023-03-17 10:41:40 +1000