Yes, I’m having issues with this integration after upgrading to 2023.8. Further investigation required as it’s not the same symptoms you’re having. I have a number of scripts to change volume, internet radio stations e.t.c on the media player device created by this integration however none of these scripts are now working. Anyone else having issues?
Did you check if entities for your radio have changed names now? I don’t see any other cause not to work…
Have you checked on GitHub whether this has been reported as a bug? Sounds like one to me, but I don’t use this functionality.
Yes checked that and the entity names have not changed. I’ve now raised a bug report as the issue doesn’t appear to be anything obvious.
I still have not found a fix to upgrade from 2023.7.3 to 2023.8.2
I have tried your sugestions, thanks but no joy.
I am running HA Supervisor on raspberry Pi4 8GB
Debian GNU/Linux 11 (bullseye)
Docker version 20.10.14, build a224086
i am going to install Portainer to see if it sheds any light on it
If I get this fixed I will post on here
I didn’t scroll up to see what your issue was, but I had trouble upgrading from 2023.8.1 to 2023.8.2. The upgrade would complete, the web page would come down, but no restart. Couldn’t start core (this container is slated for removal…) so only option was to reboot host, resulting in … 2023.8.1. I’m also running on a rpi, but 3B+ or something like that.
What worked for me eventually was, from the command line, “ha core rebuild” (I think – in any case, rebuild core), reboot host, then upgrade to 2023.8.2.
I have issues similar to the above every release, but this is the first time that upgrading didn’t eventually take using typical methods. I have rebuilt my system from released images and it still surfaces, so it’s likely baggage somewhere in my config files.
After updating yesterday from 2023.8.2 to 2023.8.3 tonight all my history values are gone, including energy dashboard. I have to recover the backup.
Are there any known issues with the update?
Working for me and no changes were made to this in the last update. Try updating again and check your logs for database errors.
You gave me a bit of a scare, but fortunately enough I can’t say this is a general issue. Good luck with figuring out the details and issues.
After upgrading to 2023.8.3 the TCP based modbus communication with my sungrow solar system is not working anymore. Anyone has similar issues? I converted back to .8.2 and its now running again.
After recover and update my instance again, the same error occurs tonight more or less at the same time. I think the error occurs with the update. No other breaking changes are made on my instance.
You are right, that it is a database error. But I cannot work with the message in the log. Have you any ideas? The old DB is saved.
Logger: homeassistant.components.recorder.util
Source: components/recorder/purge.py:501
Integration: Recorder (documentation, issues)
First occurred: 04:12:13 (1 occurrences)
Last logged: 04:12:13
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487, 58022488, 58022489, 58022490, 58022491, 58022492, 58022493, 58022494, 58022495, 58022496, 58022497, 58022498, 58022499, 58022500, 58022501, 58022502, 58022503, 58022504, 58022505, 58022506, 58022507, 58022508, 58022509, 58022510, 58022511, 58022512, 58022513, 58022514, 58022515, 58022516, 58022517, 58022518, 58022519, 58022520, 58022521, 58022522, 58022523, 58022524, 58022525, 58022526, 58022527, 58022528, 58022529, 58022530, 58022531, 58022532, 58022533, 58022534 ... 899 parameters truncated ... 58023434, 58023435, 58023436, 58023437, 58023438, 58023439, 58023440, 58023441, 58023442, 58023443, 58023444, 58023445, 58023446, 58023447, 58023448, 58023449, 58023450, 58023451, 58023452, 58023453, 58023454, 58023455, 58023456, 58023457, 58023458, 58023459, 58023460, 58023461, 58023462, 58023463, 58023464, 58023465, 58023466, 58023467, 58023468, 58023469, 58023470, 58023471, 58023472, 58023473, 58023474, 58023475, 58023476, 58023477, 58023478, 58023479, 58023480, 58023481, 58023482, 58023483)] (Background on this error at: https://sqlalche.me/e/20/4xp6)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1968, in _exec_single_context
self.dialect.do_execute(
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 920, in do_execute
cursor.execute(statement, parameters)
sqlite3.DatabaseError: database disk image is malformed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 130, in session_scope
yield session
File "/usr/src/homeassistant/homeassistant/components/recorder/purge.py", line 89, in purge_old_data
has_more_to_purge |= _purge_states_and_attributes_ids(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/recorder/purge.py", line 199, in _purge_states_and_attributes_ids
_purge_state_ids(instance, session, state_ids)
File "/usr/src/homeassistant/homeassistant/components/recorder/purge.py", line 501, in _purge_state_ids
disconnected_rows = session.execute(disconnect_states_rows(state_ids))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2232, in execute
return self._execute_internal(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2127, in _execute_internal
result: Result[Any] = compile_state_cls.orm_execute_statement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/bulk_persistence.py", line 1619, in orm_execute_statement
return super().orm_execute_statement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/context.py", line 293, in orm_execute_statement
result = conn.execute(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1413, in execute
return meth(
^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/lambdas.py", line 605, in _execute_on_connection
return connection._execute_clauseelement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1637, in _execute_clauseelement
ret = self._execute_context(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
return self._exec_single_context(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1987, in _exec_single_context
self._handle_dbapi_exception(
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2344, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1968, in _exec_single_context
self.dialect.do_execute(
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 920, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.DatabaseError: (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488, 58022489, 58022490, 58022491, 58022492, 58022493, 58022494, 58022495, 58022496, 58022497, 58022498, 58022499, 58022500, 58022501, 58022502, 58022503, 58022504, 58022505, 58022506, 58022507, 58022508, 58022509, 58022510, 58022511, 58022512, 58022513, 58022514, 58022515, 58022516, 58022517, 58022518, 58022519, 58022520, 58022521, 58022522, 58022523, 58022524, 58022525, 58022526, 58022527, 58022528, 58022529, 58022530, 58022531, 58022532, 58022533, 58022534 ... 899 parameters truncated ... 58023434, 58023435, 58023436, 58023437, 58023438, 58023439, 58023440, 58023441, 58023442, 58023443, 58023444, 58023445, 58023446, 58023447, 58023448, 58023449, 58023450, 58023451, 58023452, 58023453, 58023454, 58023455, 58023456, 58023457, 58023458, 58023459, 58023460, 58023461, 58023462, 58023463, 58023464, 58023465, 58023466, 58023467, 58023468, 58023469, 58023470, 58023471, 58023472, 58023473, 58023474, 58023475, 58023476, 58023477, 58023478, 58023479, 58023480, 58023481, 58023482, 58023483)]
(Background on this error at: https://sqlalche.me/e/20/4xp6)
I searched and found that this a know Bug in modbus that should be fixed in 2023.8.4
Did you ensure to refresh the browser. I had some similar issues when staying logged in while upgrading and got weird behaviors in sensor values. Pressing ctrl-f5 fixed it, was just a display issue
FWIW: In the popular links section below the release notes this link is an odd one:
Perhaps a mod/admin can correct? Thanks.
It is not fixed in 2023.8.4
Found out that this is not an issue of 2023.8.4 but an updated version of the sungrow modbus integration is required to fix it.
It appears that all changes made to sliders (%) no longer generate a logbook marking. Ie. I can’t debug what/who changed the setting. Logbook still gets updated for switches, buttons etc. so this applies only to some entities. Anyone else having the same issue?
Nope. Nothing. I even manually added logging.
logbook:
include:
entities:
- number.halli_iv_puhaltimien_nopeus
Restarted HA. Changed values. Still nothing. Switches etc. logging works as before. Using the very latest 2023.8.4.
I’m excluding “domains: automation” from recorder. Recorder is on mariadb.