Sqlite3 data base could not be validated

Mmm. The database has now grown to 391Mb.
Glad your pruning of the unnecessary input flood has assisted.
Once the housekeeping purges and consolidates the entries after 10 days (that is the default Recorder setting), please post an update, both here and in GitHub, commenting on size and if your system has remained glitch free.
Cheers mate!

We both spoke too early!
Check what is flooding your inputs a little closer.
What apps do you have installed?

Work your way through the checklist here again, and post more info.

I looked at the activity log and filtered it from 10-11am today.
I found a binary sensor (wet/dry) that I was working with on my pool. It was a Zigbee device and this was not working as I needed it to be so I have deleted this device from the Zigbee integration. No more data from this device now.
These are the APPS


I will look further

Doing some reading I learned

Long-Term Statistics: Lowering this number will not delete your long-term energy dashboard data. Home Assistant stores hourly, daily, and weekly statistics separately and permanently.

As I run Grafana and don’t think I need 10 days in HA itself I thought that this might keep my DB at a better size?
Time will Tell if it works for me.

Added this to my configuration .yaml file

recorder:
  purge_keep_days: 5  # Keeps 5 days of history instead of the default 10
  auto_purge: true    # Automatically deletes older data every night at 4:12 AM

I will let the recorder run tonight at 04:12hrs and see tomorrow’s results

After 2 days my HA is still restarting the core with same error. However it’s now getting to just over 24hrs between restarts.
Nothing seems to make sense. For ages everything ticked along nicely and then the restarts start slowly increasing. I cannot remember at which version of HA it was stable.
I have tried all the things I can find to try and help but … They are helping but it’s not fixing!!

I have read where some of the Power monitoring devices could be part of the problem, but I then ask the question about the scalability of HA? It was my belief that it was there to capture this data but I have never seen any limits or specs on this?

The Issue is still there.
I have now started excluding domains from the recorder.
So far I have excluded domains:

  • Scripts
  • camera
    I really don’t need to know when scripts run unless they are troublesome.
    Cameras are only informational in HA as gthey are based and recorded in my Synology NAS.

I have graphed the DB size. The graph flattens out with exclusions in recorder.
Interestiing

The increase in DB size has reduced substantially due to exclusions and HA has not restarted but that could be misleading at this stage due to manual restarts due to changed in Configuration.yaml with the inclusion of the exclusion code.

Yes, you’ve discovered the database doesn’t shrink if you delete entries. It just marks the slots as empty. For the database to shrink, you need to repack it. This is done as part of background housekeeping. Lets do some detailed sleuthing. I’d appreciate you staying with me for the course of this exercise, as there may be spinoffs for others too.

Apologies for not getting back to you earlier. Life, etc…

Read about your database recorder settings here:

Also have a read about databases that are corrupted.
Handling disk corruption and hardware failures => Recorder - Home Assistant

I quote:

When using SQLite, if the system encounters unrecoverable disk corruption, it will move the database aside and create a new database to keep the system online. In this case, having at least 2.5x the database size available in free disk space is essential. Starting a new database is the system’s last resort recovery option and is usually caused by failing flash storage, an inadequate power supply, an unclean shutdown, or another hardware failure.

In this event, it may be possible to recover the old database by following the SQLite recovery guide. (Recovering Data From A Corrupt SQLite Database)

Just read for now. We are going to do a bit of cleaning using the tools inside HomeAssistant. Follow along, don’t skip any steps, and keep us posted on what you observe, remembering we cannot see over your shoulder while you are doing this.

It would be appreciated if you use the forum formatting tools </> for readability if you are posting logs, code, and lists.

Before we start, a full backup is essential. The risk of data loss here is high, especially if you purge stuff from long term statistics that you realize you actually want to retain. We don’t want to just delete the database file as a troubleshooting technique like you have done in the past - we want to fix it. Having a backup means we can restore and start again if we made a mistake, or we can replicate the problem should you have found an obscure bug the developer wants to look into further.

I’ve split these up into steps, so you can tick them off, and we can eat that chocolate elephant one bite at a time. Feel free to refer back to the step number when posting responses. I’m also going to go back and edit these posts for spelling mistakes and missed steps as I proofread, so be sure to review at the start of each step.

1: Perform a manual backup from Settings/System/Backups and use the “+Backup Now” button to perform a Manual Backup, including History. This may take a while to complete so take a break while it chugs away.

After you have done the manual backup, we can start cleaning up.

2: Confirm you have Advanced SSH & Web Terminal installed. If not, refer Common tasks - Home Assistant Operating System - Home Assistant to install it.

Install Spook as well from HACS. Refer Installing Spook in Home Assistant - Spook 👻 a scary powerful toolbox for Home Assistant. and Background and the history of Spook 👻 - Spook 👻 a scary powerful toolbox for Home Assistant.

3: Lets get the database size before we start changing anything. In Settings/System/Repairs, select the three dots in the top right corner and the System Information option. Select the Home Assistant Supervisor section and copy that here to the forums. Scroll down to near the bottom and copy the Recorder section, including the data till Database version. Please post that here in the forums too (both formatted please).

4: Go back to System, and click on the icon in the top right corner.
We want to let the system close the database properly, restart and perform usual startup housekeeping, including checking the database integrity. Select ‘Restart HomeAssistant’. Confirm.
Wait for the system to come back up. This may take a few minutes.

5: Go to Setting/System/Logs and display the errors for Home Assistant Core. To the right are three dots. Click on that and select “Show Full logs”.
Download those for later reference if needed, using the down arrow to save them to a file that should be named by date and time for easy identification. Note where you stored this so you can come back to it, not only for troubleshooting, but also to delete once you have finished troubleshooting.

6: Click again on the three dots, and select “Show Condensed Logs”.
Clear the errors with the Clear button, so we can start with a clean slate.

7: Go back to System, and click on the icon in the top right corner.
We want to let the system restart again and perform usual startup housekeeping. Select Restart HomeAssistant. Confirm.
Wait for the system to come back up. This may take a few minutes.

8: Go back to logs and check if there are any errors listed. If so, download again from full logs screen.
Feel free to share this in a formatted </> post. If none displayed, say so in your post too.

9: From Settings/Apps, click on “Advanced SSH & Web Terminal” and select the “Open Web UI” button. You will now be shown the startup screen and can issue CLI commands here.

10: Lets get some information about what is filling up your existing database, using the instructions in post 33 here ( How big is your backup? - #33 by jan-tdy ) to run this in your CLI (SSH)
(I recommend a cut-and-paste rather than typing this in as spacing and quotation marks are critical for success):

sqlite3 /config/home-assistant_v2.db \ "SELECT sm.entity_id, COUNT(*) AS n FROM states s JOIN states_meta sm ON s.metadata_id = sm.metadata_id GROUP BY sm.entity_id ORDER BY n DESC LIMIT 30;"

This will give you a descending sorted list of the top 30 entities and how many records they contain.
You may find information here to confirm what you have been observing and fighting your system with recently. The chatty and rogue entities should be near the top of the list. We want to clean these up if possible from the database, especially if they will not be removed automagically by Recorder as part of normal housekeeping.

11: Feel free to share this in a formatted </> post using cut and paste.

12: Type EXIT from the CLI to return to the HomeAssistant server.

Now lets see what we can do about cleaning it up:

13: From your HomeAssistant home page:
Select Settings/Tools/Actions/
In dropdown search panel, type “database” to narrow your options.
You will see a list of database related actions that can be performed.

14: Select “List all orphaned database entities” and press the Perform Action button. The results will be shown underneath. Don’t select the Copy to Clipboard option at the bottom - select the actual text before using copy, so you don’t get funny formatting characters for step 15.
This is a list of those entities that are not going to go away without removing them manually. There may be many, some, or none too.

15: Feel free to also share this in a formatted </> post.

We are now going to purge the database and do a bit of a cleanup, to remove the allocated but now unused slots.

Warning: Be careful if you execute the “Delete all orphaned entities” if there are entries in the previous list you wish to retain.

16: Select Purge Recorder Database as outlined in Purge Recorder database - Home Assistant
Toggle “Repack” ON to shrink the resulting database and free up empty slots. Leave the other two options unselected for now.
Press the ‘Perform’ action button. This may take a few minutes to complete.

17: If you identified any orphaned entries in step 13, we can now removed these using the ‘Purge Recorder Entities’ dropdown option too. Toggle the "Entities to Remove’ to ON, and put them in the Entities selection list. Use the ‘Perform action’ button to action this.

18: Repeat step 3 and 4. Feel free to share any errors in your post.

19: There should not be any remnants of orphans in step 13 if you selected all of them to purge. Please advise if there is.

20: In Settings/System/Repairs, select the three dots in the top right corner and the System Information option. Use the copy screen to get a full snapshot, and post all of that here in the forums (formatted please). I know this was requested earlier, and this will aid in troubleshooting if further action is required, and also serve as a cross check of the environment you are operating in.

21: By now you should be comfortable to find information about your database and entities and clean them up, narrowing where you need to focus your efforts for successful housekeeping. Using the System options to restart and shutdown your HomeAssistant server rather than yanking the power cord will ensure that any database entries still in memory and not written out to the database will be flushed to disk, the database correctly closed, the database ‘dirty bit’ reset, the startup checking routines are functioning, and preventing the error message we originally set out to quash from reappearing. You will also be able to identify which devices are most chatty, which sensors and entities do not have to be recorded, and how to turn them off.

It is possible, you may have identified a bug that has not been carefully documented before. The information we have documented should be a good start for the developers to go by if that is the case.

The more information you post, and following these steps in sequence may help others encountering the same issue. Feel free to comment and make suggestions that may help others. If the process does not solve the problem, it will help identify where it lies. At least we have given that database a good workover!

Cheers.

Wow!
I appreciate your effort and thoroughness.
I will have to plan this because I have some physical limitations that will have to be watched.
I have a degenerative Lumbar and sitting for long periods is painful and I have to walk using a walking rollator with arm gutters. I will, as you say, have to “eat the chocolate elephant in stages”. When the body says rest, I have to or I pay!!

I have read your steps a couple of times and plant to read them again before I start.
I have applied the latest patches that have just come through (2026.8.2). That will restart the HA core. I always have errors in my log but usually don’t know how to fix some of them.
I have just started the Manual Backup with History. I named it “Before Troubleshooting 1”. When it’s finished, I will copy it to a removable SSD attached to my laptop docking station.
Will have a break while this runs

Step 2.


Step 3.

Home Assistant Supervisor
Host operating system	Home Assistant OS 18.2
Update channel	stable
Supervisor version	supervisor-2026.07.5
Agent version	1.10.0
Docker version	29.6.2
Disk total	228.5 GB
Disk used	48.7 GB
Nameservers	192.168.0.1, 2001:8001:6236:f400::1
Healthy	true
Supported	true
host_connectivity	true
supervisor_connectivity	true
ntp_synchronized	true
virtualization	
Board	generic-x86-64
Disk lifetime	9 %
Supervisor API	ok
Version API	ok
Installed apps	File editor (6.1.0), Z-Wave JS (1.7.1), Samba share with features (12.10.0.1), ESPHome Device Builder (2026.7.4), InfluxDB (5.0.2), Grafana (12.1.0), Mosquitto broker (7.1.0), Terminal & SSH (10.3.0)
Recorder
Oldest run start time	August 9, 2026 at 12:57 AM
Current run start time	August 15, 2026 at 11:41 AM
Estimated database size (MiB)	805.47 MiB
Database engine	sqlite
Database version	3.53.2
Sonoff
Version	3.12.2 (871119a)
Cloud devices online	11 / 13
Local devices online	9 / 9
Core metrics
Processor usage
31.3 %
Memory usage
14.1 %
Supervisor metrics
Processor usage
0 %
Memory usage
3.8 %

Step 4. Done
Step 5.
Saved Log file to
“F:\OtherData\OLD Database\home-assistant_2026-08-15T03-51-52.484Z.log”
Step 6.
Cleared
Step 7. Restart

e[31m2026-08-15 13:51:00.477 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:51:00.479 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:51:00.481 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:51:00.904 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:51:00.905 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:51:19.160 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:51:19.247 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:51:19.259 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:51:19.286 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:51:19.296 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:51:19.486 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:51:19.581 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:51:44.723 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:51:44.863 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.back_door_camera] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:51:45.675 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:51:45.678 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:51:45.683 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:51:45.712 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:51:46.230 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:51:46.238 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:52:09.215 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:52:09.307 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:52:09.317 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:52:09.328 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:52:09.352 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:52:09.593 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:52:09.643 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[33m2026-08-15 13:52:39.561 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 14: Stream refused by servere[0m
e[31m2026-08-15 13:52:39.916 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:52:40.137 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.back_door_camera] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:52:41.180 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:52:41.181 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:52:41.183 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:52:41.314 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:52:41.684 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:52:41.688 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:53:09.236 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:53:09.328 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:53:09.367 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:53:09.391 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:53:09.398 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:53:09.647 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:53:09.682 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:53:45.059 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:53:45.276 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.back_door_camera] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:53:46.622 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:53:46.665 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:53:46.671 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:53:46.697 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:53:47.021 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:53:47.033 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:54:19.255 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:54:19.351 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:54:19.379 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:54:19.411 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:54:19.417 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:54:19.698 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:54:19.787 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:55:01.946 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:55:01.949 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:55:01.953 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:55:02.129 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:55:02.530 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:55:03.086 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door] Error from stream worker: Error opening stream (Operation not permitted, rtsp://****:****@192.168.0.12:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:55:03.635 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:55:05.565 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.back_door_camera] Error from stream worker: Error opening stream (Operation not permitted, rtsp://****:****@192.168.0.190:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:55:39.346 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:55:39.372 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:55:39.395 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:55:39.438 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:55:39.445 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:55:39.797 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:55:39.834 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:56:27.096 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:56:27.098 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:56:27.114 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:56:27.271 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:56:27.671 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:56:28.597 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:56:28.980 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:56:30.709 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.back_door_camera] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:57:09.357 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:57:09.386 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:57:09.408 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:57:09.484 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:57:09.487 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:57:09.849 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:57:09.885 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
s6-rc: info: service legacy-services: stopping
e[31m2026-08-15 13:58:02.267 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:58:02.317 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:58:02.501 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:58:02.649 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:58:02.866 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:58:02.869 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved (task: None
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 499, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/smartir/fan.py", line 86, in async_setup_platform
    async_add_entities([SmartIRFan(
                        ~~~~~~~~~~^
        hass, config, device_data
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )])
    ^
  File "/config/custom_components/smartir/fan.py", line 100, in __init__
    self._manufacturer = device_data['manufacturer']
                         ~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'manufacturer'e[0m
e[33m2026-08-15 13:58:25.653 WARNING (ImportExecutor_0) [homeassistant.const] The deprecated constant CONCENTRATION_MICROGRAMS_PER_CUBIC_METER was used from sonoff. It will be removed in HA Core 2027.8. Use UnitOfDensity.MICROGRAMS_PER_CUBIC_METER instead, please report it to the author of the 'sonoff' custom integratione[0m
e[33m2026-08-15 13:58:25.657 WARNING (ImportExecutor_0) [homeassistant.const] The deprecated constant CONCENTRATION_PARTS_PER_MILLION was used from sonoff. It will be removed in HA Core 2027.8. Use UnitOfRatio.PARTS_PER_MILLION instead, please report it to the author of the 'sonoff' custom integratione[0m
e[31m2026-08-15 13:58:33.195 ERROR (MainThread) [homeassistant.components.mqtt.client] Failed to connect to MQTT server due to exception: [Errno -5] Name has no usable addresse[0m
e[33m2026-08-15 13:58:35.142 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for 192.168.0.32: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.0.32', port=6053))]: [Errno 113] Connect call failed ('192.168.0.32', 6053) (SocketAPIError)e[0m
e[33m2026-08-15 13:58:35.144 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for mobile_temperature @ 192.168.0.91: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.0.91', port=6053))]: [Errno 113] Connect call failed ('192.168.0.91', 6053) (SocketAPIError)e[0m
e[33m2026-08-15 13:58:41.715 WARNING (MainThread) [homeassistant.components.camera] Setup of camera platform onvif is taking over 10 seconds.e[0m
e[33m2026-08-15 13:58:41.725 WARNING (MainThread) [homeassistant.components.camera] Setup of camera platform onvif is taking over 10 seconds.e[0m
e[33m2026-08-15 13:58:41.735 WARNING (MainThread) [homeassistant.components.camera] Setup of camera platform onvif is taking over 10 seconds.e[0m
e[33m2026-08-15 13:58:41.742 WARNING (MainThread) [homeassistant.components.camera] Setup of camera platform onvif is taking over 10 seconds.e[0m
e[33m2026-08-15 13:58:41.756 WARNING (MainThread) [homeassistant.components.camera] Setup of camera platform onvif is taking over 10 seconds.e[0m
e[33m2026-08-15 13:58:41.762 WARNING (MainThread) [homeassistant.components.camera] Setup of camera platform onvif is taking over 10 seconds.e[0m
e[33m2026-08-15 13:58:51.124 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Fridge-Freezer' trigger: In 'numeric_state' condition: unknown entity sensor.inovalley_4e03_tempe[0m
e[33m2026-08-15 13:58:51.124 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'HiSense-Freezer' trigger: In 'numeric_state' condition: unknown entity sensor.ft004t_5fae_tempe[0m
e[33m2026-08-15 13:58:51.124 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Battery Check Back Door' trigger: In 'numeric_state' condition: unknown entity sensor.back_door_battery_levele[0m
e[33m2026-08-15 13:58:51.125 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Battery Check Front Door' trigger: In 'numeric_state' condition: unknown entity sensor.front_door_3_battery_level_2e[0m
e[31m2026-08-15 13:58:52.339 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:58:52.344 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:58:52.347 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.shed_camera] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:58:52.347 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:58:52.350 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:58:52.354 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:58:52.357 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:58:57.391 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.back_door_camera] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:58:57.434 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:58:57.441 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:58:57.472 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:58:57.474 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:58:57.478 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:58:57.479 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:58:57.524 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:02.388 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:59:02.399 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:59:02.404 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.shed_camera] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:59:02.406 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:02.435 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:02.525 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:02.544 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:59:12.641 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.back_door_camera] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:59:12.658 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:59:12.670 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:59:12.673 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_door] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:59:12.676 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream_2] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.12:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:13.060 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_substream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m
e[31m2026-08-15 13:59:13.072 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_thirdstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:13.082 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2de3304w_de_mainstream] Error from stream worker: Error opening stream (Invalid data found when processing input, rtsp://****:****@192.168.0.190:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:59:22.473 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:22.476 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2085g1_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.65:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:59:22.500 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_mainstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1)e[0m
e[31m2026-08-15 13:59:22.511 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.shed_camera] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/1)e[0m
e[31m2026-08-15 13:59:22.515 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2055fwd_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.174:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:22.660 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_thirdstream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/103?transportmode=unicast&profile=Profile_3)e[0m
e[31m2026-08-15 13:59:22.671 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hikvision_ds_2cd2065g1_i_substream] Error from stream worker: Error opening stream (Server returned 5XX Server Error reply, rtsp://****:****@192.168.0.45:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2)e[0m

Step 10.
When I cut and paste the SQL command I get bash: sqlite3: command not found

bash: sqlite3: command not found

image

I had to load the apk sqlite
Results below

[core-ssh config]$ sqlite3 /config/home-assistant_v2.db \ "SELECT sm.entity_id, COUNT(*) AS n FROM states s JOIN states_meta sm ON s.metadata_id = sm.metadata_id GROUP BY sm.entity_id ORDER BY n DESC LIMIT 30;"~
sensor.indivual_sums|538626
sensor.sonoff_10012393db_power|93399
sensor.sonoff_1001361f45_power|92395
sensor.sonoff_1000cd7a20_power|89939
sensor.sonoff_1000cd76ce_power|89175
sensor.sonoff_1001361b68_power|87697
sensor.sonoff_100123ae52_power|86077
sensor.sonoff_1001361b68_voltage|79388
sensor.sonoff_10012393db_voltage|79349
sensor.sonoff_1001361f45_voltage|77443
sensor.sonoff_1000cd76ce_voltage|76184
sensor.sonoff_100123ae52_voltage|75696
sensor.sonoff_10012393d2_voltage|75360
sensor.sonoff_1000cd7a20_voltage|75082
sensor.importing|73171
sensor.sonoff_10012393db_current|60455
sensor.shellyem_34945470fae8_channel_1_power|59915
sensor.shellyem_34945470fae8_channel_2_power|59642
sensor.solarpower|59638
sensor.house_total_energy|58444
sensor.house_power_consumption|58438
sensor.house_daily_energy|58396
sensor.ergon_grid_import|58372
sensor.shellyem_34945470fae8_channel_1_voltage|58051
sensor.shellyem_34945470fae8_channel_2_voltage|58051
sensor.sonoff_1000cd76ce_current|51220
sensor.sonoff_1001361f45_current|44989
sensor.tz3210_cehuw1lw_ts011f_current_2|44473
sensor.sonoff_1001361b68_current|36746
sensor.shellyem_34945470fae8_channel_1_power_factor|33478
Error: in prepare, near "~": syntax error
  ~
  ^--- error he

As I had alluded to earlier it was reported that the "*Smart switches with power / consumption measurement * were contenders.

I do use these to try and get a handle on energy consumption in my house.
I never knew that HA was not able to handle this sort of load??

step 13 &14.

is not an option. This is what I get

Do I select the first option??

Thanks. So far so good with what we are looking at..

Sorry about step 13 - my omission and making an assumption. You need the powerful system tool Spook installed from HACS - written by one of the HomeAssistant developers.
See Installing Spook in Home Assistant - Spook 👻 a scary powerful toolbox for Home Assistant. and Background and the history of Spook 👻 - Spook 👻 a scary powerful toolbox for Home Assistant.
This will add the required automation: Entity management - Spook 👻 a scary powerful toolbox for Home Assistant. You may find it gets cheeky and finds other things wrong in your system and has a grumble about those too. Frenck knows his internals stuff and has a sense of humour.

[I’ve added it to step 2 as an edit for those following later.]

I had a brief glance at your logs. Are your HikVision devices working correctly? How about your Sonoff devices? Your remote for the smart fan? Do you have the latest updates for these integrations/apps in HACS? Will go into more detail later on.

Take your time. No pressure. Breaks are good. Long distance problem debugging can have unique challenges, especially if different time zones. Just want to see it through to completion. It is fortuitous you stopped at step 13, where it starts to get interesting.

Add Spook. Boo!

The overnight database maintenance should be interesting. Should your system crash and restart, do step 4, 5, 6, 7, 8 again to get everything back to a known state and then continue from step 13. If still up, just proceed to step 13 and continue.

Hear from you tomorrow, your time.

Good Morning. Very tired this morning as I had a bad night with pain. Pain relief makes me drowsy.
Database stayed up overnight. up 19 hrs. Size stays the same.


Processor load

I will get a bit more rest and come back later this morning when pain relief wears off and install “Spook”. Sound scary LOL.

I suppose it might help you if I explain how I got involved with HA.
I started out some time ago with the Synology NAS. Its basic function was as a File Server but then came the need for better security hence the cameras. They use the NAS as a NVR.
I had to retire due to my back issues and disability and HA was a good way of trying to keep my brain active and also the Home Automation was very helpful with my disability. I can control many devices (A/C’s, Ceiling fans, lights, TV’s etc) from my watch/mobile.

As I said, my HIKVision Cameras are installed on my Synology NAS and I just have a Vertical /horizontal 6x2 stack for viewing in HA on my overview dashboard. I only run up the Synology surveillance station client when I want detail and history. As to whether they are installed properly? I think so. I created a user and gave it Admin rights so there should not be any rights issues but I am really only following my nose.

The system has evolved over time (10 Yrs??), hence the mix of different vendors, and sometimes I find it difficult to keep up with the progress! I started with a Raspberry Pi but it kept falling over so I moved up to a NUC i3 with 8Gb RAM and an SSD.

All integrations and software is up to date as far as I know. My smart fan??? I tried to follow documentation for Broadlink RM4 Pro. The fan works and command’s function but I really am an amateur at this too

More later when I get less brain fog.