1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-12-07 02:54:12 -05:00
Commit Graph

85 Commits

Author SHA1 Message Date
Nathan Spencer
cdca084212 Address PR comments 2025-11-26 22:01:02 +00:00
Nathan Spencer
dfaeb382da Add an additional last updated diagnostic sensor for devices 2025-11-26 21:53:56 +00:00
Nathan Spencer
8467c50215 Address PR 2025-11-26 21:47:15 +00:00
Nathan Spencer
7d7675dcb1 Address PR comments 2025-11-26 21:36:23 +00:00
Nathan Spencer
fb360be616 Add additional keyword argument to set playlist to allow play control 2025-11-26 21:01:18 +00:00
Nathan Spencer
4336f658c4 Make device own required steps when setting playlist 2025-11-26 20:32:12 +00:00
Nathan Spencer
c4fd6a7ef6 Use helper to get image from track dictionary 2025-11-26 19:46:02 +00:00
Nathan Spencer
e1599b7c47 Address PR review 2025-11-25 19:08:02 +00:00
Nathan Spencer
c1754ad959 Enhance media_player with browse/search capability 2025-11-25 18:33:32 +00:00
Nathan Spencer
a3d58017b4 Address nitpick comments 2025-11-25 16:40:41 +00:00
Nathan Spencer
eecf5e90dc Don't wait on devices to initialize during coordinator update, implement dispatcher for device initialization/setup 2025-11-25 16:29:36 +00:00
Nathan Spencer
e4ccee0698 Update coordinator to not fail if no devices have been initialized 2025-11-24 20:48:46 +00:00
Nathan Spencer
e6e84f8984 Add helper to check for device initializtion instead of first status 2025-11-24 20:31:57 +00:00
Nathan Spencer
a3ea4dc05a Add convenience properties and more logging to mqtt client, better mqtt management via coordinator (#100)
* Add convenience properties and more logging to mqtt client, better mqtt management via coordinator

* Address PR comments

* Address PR comments

* Fix
2025-11-24 11:54:04 -07:00
Nathan Spencer
379b6f67f2 Swap out direct HTTP connection with server MQTT connection to handle firmware 2.60+ (#98)
* Switch to using mqtt

* Better mqtt handling when connection is interrupted

* Get track info from the cloud when playlist or index changes

* Add additional helpers

* Dynamically handle devices and other enhancements

* 📝 Add docstrings to `mqtt`

Docstrings generation was requested by @natekspencer.

* https://github.com/natekspencer/hacs-oasis_mini/pull/98#issuecomment-3568450288

The following files were modified:

* `custom_components/oasis_mini/__init__.py`
* `custom_components/oasis_mini/binary_sensor.py`
* `custom_components/oasis_mini/button.py`
* `custom_components/oasis_mini/config_flow.py`
* `custom_components/oasis_mini/coordinator.py`
* `custom_components/oasis_mini/entity.py`
* `custom_components/oasis_mini/helpers.py`
* `custom_components/oasis_mini/image.py`
* `custom_components/oasis_mini/light.py`
* `custom_components/oasis_mini/media_player.py`
* `custom_components/oasis_mini/number.py`
* `custom_components/oasis_mini/pyoasiscontrol/clients/cloud_client.py`
* `custom_components/oasis_mini/pyoasiscontrol/clients/http_client.py`
* `custom_components/oasis_mini/pyoasiscontrol/clients/mqtt_client.py`
* `custom_components/oasis_mini/pyoasiscontrol/clients/transport.py`
* `custom_components/oasis_mini/pyoasiscontrol/device.py`
* `custom_components/oasis_mini/pyoasiscontrol/utils.py`
* `custom_components/oasis_mini/select.py`
* `custom_components/oasis_mini/sensor.py`
* `custom_components/oasis_mini/switch.py`
* `custom_components/oasis_mini/update.py`
* `update_tracks.py`

* Fix formatting in transport.py

* Replace tabs with spaces

* Use tuples instead of sets for descriptors

* Encode svg in image entity

* Fix iot_class

* Fix tracks list url

* Ensure update_tracks closes the connection

* Fix number typing and docstring

* Fix docstring in update_tracks

* Cache playlist based on type

* Fix formatting in device.py

* Add missing async_send_auto_clean_command to http client

* Propagate UnauthenticatedError from async_get_track_info

* Adjust exceptions

* Move create_client outside of try block in config_flow

* Formatting

* Address PR comments

* Formatting

* Add noqa: ARG001 on unused hass

* Close cloud/MQTT clients if initial coordinator refresh fails.

* Address PR again

* PR fixes

* Pass config entry to coordinator

* Remove async_timeout (thanks ChatGPT... not)

* Address PR

* Replace magic numbers for status code

* Update autoplay wording/ordering

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-24 01:09:23 -07:00
natekspencer
5f01397b56 Update tracks 2025-11-19 23:16:54 +00:00
natekspencer
1eecef9299 Update tracks 2025-11-19 23:12:08 +00:00
natekspencer
11f7a38b04 Update tracks 2025-11-19 23:09:30 +00:00
natekspencer
4a07fa3ebb Update tracks 2025-11-19 23:04:07 +00:00
Nathan Spencer
581f41c517 Add error translations 2025-08-02 14:21:34 +00:00
Nathan Spencer
3a8e274d26 Update status icons for busy and sleeping 2025-08-02 13:54:35 +00:00
Nathan Spencer
6c6ce70932 Merge pull request #85 from natekspencer/cloud-playlists
Add cloud playlists
2025-08-02 07:52:24 -06:00
Nathan Spencer
8a72aba294 Add cloud playlists 2025-08-02 13:48:58 +00:00
natekspencer
4d2c7a0199 Update tracks 2025-07-24 19:20:41 +00:00
Nathan Spencer
2d37fb691f Fix track info with new format 2025-07-23 19:49:46 +00:00
Nathan Spencer
552339665f Add additional led effects 2025-07-23 00:06:10 +00:00
Nathan Spencer
d2bc89bdd7 Add sleep button 2025-07-22 23:36:33 +00:00
Nathan Spencer
06008e8f4c Merge pull request #78 from natekspencer/firmware-2.02-temp-fix
Add fix for firmware 2.02 led issue
2025-07-22 17:34:36 -06:00
natekspencer
f9237927d9 Update tracks 2025-07-22 19:20:38 +00:00
natekspencer
86cf060af0 Update tracks 2025-07-21 19:20:16 +00:00
natekspencer
a1bb4c78fb Update tracks 2025-07-18 19:19:31 +00:00
natekspencer
52b741fb71 Update tracks 2025-06-26 19:18:53 +00:00
natekspencer
002898de97 Update tracks 2025-06-03 19:18:35 +00:00
natekspencer
9cb8b6d398 Update tracks 2025-04-29 19:18:38 +00:00
natekspencer
839ba6ff35 Update tracks 2025-04-15 19:18:32 +00:00
natekspencer
2afb8acf0e Update tracks 2025-03-26 19:17:57 +00:00
Nathan Spencer
50f7b270f2 Add temp fix for firmware 2.02 led issue 2025-03-26 17:40:26 +00:00
Nathan Spencer
802ce0f9a8 Merge pull request #66 from natekspencer/autoplay-options
Add 24 hours autoplay option
2025-03-26 11:37:08 -06:00
Nathan Spencer
de36b6ea67 Add 24 hours autoplay option 2025-03-26 17:33:22 +00:00
natekspencer
4e370d441c Update tracks 2025-03-25 19:17:16 +00:00
natekspencer
f04438cac8 Update tracks 2025-03-18 19:16:56 +00:00
natekspencer
5d7176ebaa Update tracks 2025-03-17 19:16:39 +00:00
natekspencer
2feba20b76 Update tracks 2025-03-13 19:16:39 +00:00
natekspencer
8650fd597a Update tracks 2025-03-12 19:16:35 +00:00
natekspencer
5ea472821b Update tracks 2025-03-11 19:17:53 +00:00
natekspencer
f49b8ce1d2 Update tracks 2025-03-09 19:12:34 +00:00
natekspencer
4ed6b1701d Update tracks 2025-02-02 19:15:01 +00:00
natekspencer
4c112f2b06 Update tracks 2025-01-30 19:14:50 +00:00
natekspencer
8bb8cf9447 Update tracks 2025-01-14 19:15:13 +00:00
Nathan Spencer
73f96d8302 Don't update image unless playing or image hasn't been cached yet 2025-01-10 22:17:52 +00:00