diff --git a/HA/custom_components/yoradio/media_player.py b/HA/custom_components/yoradio/media_player.py index f57fe6e..b8505d2 100644 --- a/HA/custom_components/yoradio/media_player.py +++ b/HA/custom_components/yoradio/media_player.py @@ -144,7 +144,7 @@ class yoradioDevice(MediaPlayerEntity): if js['on']==1: self._state = STATE_PLAYING if js['status']==1 else STATE_IDLE else: - self._state = STATE_OFF + self._state = STATE_PLAYING if js['status']==1 else STATE_OFF self._current_source = str(js['station']) + '. ' + js['name'] try: self.async_schedule_update_ha_state() diff --git a/README.md b/README.md index 97e5677..af00e74 100644 --- a/README.md +++ b/README.md @@ -226,6 +226,19 @@ Work is in progress... --- ## Version history +#### v0.9.200 +**!!! a [full update](#update-over-web-interface) with Sketch data upload is required. After updating please press CTRL+F5 in browser !!!** +- implementation of WEB/SD mode switching without reboot +- replacement of SD cards without turning off the power +- switching WEB / SD from the web interface. full update required, including SPIFFS Data +- fixing the Home Assistant integration behavior logic +- SD_HSPI parameter now works. Pins HSPI - 13(MOSI) 12(MISO) 14(CLK) +- new parameter SD_SPIPINS. ```#define SD_SPIPINS sck, miso, mosi``` +- sck, miso, mosi - any available pins. Used for "TTGO Tm Music Album" boards ```#define SD_SPIPINS 14, 2, 15``` +- fixed a bug with garbage appearing on display ILI9225 +- the slider for moving along the SD track is temporarily not working. +- bug fixes + #### v0.9.180 - OneButton library moved to the project diff --git a/yoRadio/data/www/index.html b/yoRadio/data/www/index.html index 09846dc..0b454dc 100644 --- a/yoRadio/data/www/index.html +++ b/yoRadio/data/www/index.html @@ -10,7 +10,7 @@ ёRadio - Player - +
+
WebSD