Edit: I see you use Windows, may I advise you to move to a linux distro instead? They are much more stable and need a lot less configuring. Many things like zeroconf and autoconf do not play very well with windows without using proxies and portforwarding. It is just advice ofc.
Mhh ok.
I’ll think about it ^^
Do you think it’s possible to install an virtual environment with Ubuntu on a Windows Server ?
Would everything work then? (autoncof and zeroconf)
And can I use my old configuration from the Windows Server ?
Yes yes and yes. I have Windows Server 2016 and use Hyper-V. Within Hyper-V I installed Ubuntu 18.04 and from there I did the steps for a python venv. It works perfectly fine. No ports, no proxies, everything works just as if it was a “real” ubuntu install.
Hyper-v is just a package within windows/windows server. You can enable this by adding features in Windows. Then start Hyper-V manager and set it up to your likings. (Default settings are probably fine).
Then download Ubuntu as an ISO. Second add a VM in Hyper-V manager and make sure to select generation 1 (gen 2 will not work at least it didn’t for me). Then choose a location for your virtual hdd and add the ubuntu iso as the install medium for your OS.
Start the VM and install Ubuntu as you normally would. That is it!
@WolfsW3lp3 60GB will be fine, 2GB RAM should be sufficient, however if you can allocate 4GB I would. Just keep in mind that you will need to purge your database (history, event log etc) every so often as it will take up a lot of space eventually. You can find how to do that in the docs (I use an external DB, MariaDB on another disk, but if you use the standard one you should be aware of this).
@RobDYI I am sorry but I haven’t used macs for this in the past so I wouldn’t know. I’m sorry.
I have a little problem starting up homeassistant!
During the first startup with the copied configuration it ran into errors: https://pastebin.com/TKeS4vu2
Alright, I see 2 things when reading over it quickly. It is missing some dependencies and the ssl certificate used is either invalid, in the wrong location or unreadable.
Tbh, when starting up a fresh install best practice would be to add the components one by one, but I can understand this might be a lot of work. If you happen to know which components require separate dependencies you can look in the docs for that specific component on how to install those. For example: IKEA Tradfri requires autoconf, stream requires a bunch of dependencies and there are several other components that will require something.
To start off with I would suggest fixing the SSL certificate first (or remove it all together for the time being) so that you can at least access the frontend. That will save a lot of headache as you can see in the frontend which components did not load, or which components would require extra setup. For example, IKEA Tradfri requires you to enter a code in the frontend before you can use it. Some integrations can be installed from the UI, but there are too many to name them all here.
What I would do is start Home Assistant clean with the default configuration and work from there. This way you will at least know if HA starts at all or not and from there you can add things one by one. Most of the time, integrations are done via the UI (unless there is not one available yet). Most sensors do not require a setup as they are in core HA. For example if you use MQTT with discovery, you will have to do this in the UI. If you enter MQTT config manually then you can only use autodiscovery if you only setup the broker and not the entities.
I hope this helps a bit. I did a complete fresh install of HA a few weeks ago (I have over 18.000 lines of code in my config files combined). What I did was to let HA auto discover everything first and work from there. Cutting snippets of my old code into the new one (the ones that can’t be discovered automatically etc).
After you reconfigured everything, copy your ui-lovelace.yaml file back (or if you use storage mode do it from there). I would also recommend you to start HA with the states UI, as Lovelace can bug if there are entities that do not exist or if there are entities with a different name.
I will have to add though that this process might take a bit of time depending on the size of your setup. It took me a whole evening to do my setup, I chose for a fresh setup and only copying stuff I needed from my old setup as I did not want old unused stuff to be copied over as well.
Oh I forgot to mention, you will only have to do this for components, you will not need to rewrite your entire lovelace setup. Just make sure the entity names are corresponding after the initial configuration. Sometimes entities get a different name after a fresh install (but probably most will stay the same).
Haha, it’s evening here as well neighbor (Netherlands here). Well have a nice evening, if you ever run into trouble just ask and I will try to answer it, but like most people I do not have the answer to all questions haha.
Yes stream setup worked perfectly
But I ran into another problem with streaming my cameras (RTSP Streams not working anymore) https://pastebin.com/fNg9ZYsU
Unauthorized is not true the login credentials are correct!
Hm unfortunately I am not so good with this stuff. I assume you installed the dependencies I posted earlier? (The long string from several posts ago). Might try restarting the camera’s (or software if you use something like zoneminder or blueiris) and restart HA just to be sure. Oh and make sure your HA instance has local network access, but I assume this is working as everything else is working for you.
Edit: to be really sure it isn’t something else you could test the camera stream in vlc or other software just to be sure that the stream is reachable. Alternatively, if you did not expose the camera to the internet directly, you could try to remove the user/pwd and try again. Personally I would let HA manage the camera and not expose the rtsp port to the internet.
Wow I had the exact same idea with VLC ^^ (Restaring the camera right now because VLC cant get a connection with rtsp but the webinterface still works, strange ^^)
No the camera has no internet connecting only locally!
Nobody can use the rtsp port so you don’t have to worry about it because every port gets blocked by my router.
I will get in touch later if I found out something.