Home Assistant MariaDB Install and System Monitoring

  Рет қаралды 81,817

Everything Smart Home

Everything Smart Home

Күн бұрын

The standard Home Assistant database, based on SQLite sometimes gets corrupt, slow and sluggish the larger it gets so I recommend switching the default Home Assistant database to MariaDB which we cover how to install in this video. Then after laying the foundations of our new database, we install the system monitor integration which allows us to keep an eye on our Home Assistant CPU, Memory, Disk space and networking bandwidth allowing us to create cards and automations based on the monitoring data.
If you'd like to support me and future projects:
Patreon:
/ everythingsmarthome
Buy Me a Coffee:
www.buymeacoffee.com/EverySma...
Written Article:
everythingsmarthome.co.uk
EVERYWHERE YOU CAN FIND ME:
Everything Smart Home Community Discord:
/ discord
Twitter: / everysmarthome (@EverySmartHome)
Instagram: / everythingsmarthome
Facebook: / everythingsmarthomeoff...
#homeassistant #smarthome
________________________
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
0:00 - Intro
1:27 - Pre-warning
2:23 - MariaDB
4:34 - System Monitor
8:34 - Outro

Пікірлер: 257
@project-hq
@project-hq Жыл бұрын
Finally got round to adding an SSD to my install. These TTT videos are amazing. Every single one of them is so clear and concise. It's epic. Thanks again Lewis
@themrsmarthome
@themrsmarthome 3 жыл бұрын
Simplicity is the keyword for that channel. Man you make things look so simple. What a great explanation as usual. Keep the good work 💪
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Appreciate it Nelson!
@MattHawkinsUK
@MattHawkinsUK 8 ай бұрын
Just switched to MariaDB using this video after corruption with my SQLlite DB. Really appreciate the clear no-nonsense delivery of information. Surprised how easy it was to do. 5 minutes and all up and running.
@TDCIYB77
@TDCIYB77 2 жыл бұрын
This has fixed my biggest gripe i had with my Setup: Web UI being sluggish!! You are my Hero!! ;)
@pereirabrian
@pereirabrian 3 жыл бұрын
I've only recently installed Home Assistant as a VM on my Desktop running Windows 10 (cause it's always on). I've watched some of your videos and find them very useful and easy to understand. Now I've got all my smart blubs, smart plugs, printer, router info, person tracking working. I'm adding MariaDB and Visual Studio Code after watching this video. Just wanted to say "Thank you". Keep it going :-)
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
That's awesome, thanks for the taking the time!
@PhilWaud
@PhilWaud Жыл бұрын
You are a hero sir! My home assistant owes its looks, functionality and general non broked ness to you! Thank you.
@redwireless
@redwireless 2 жыл бұрын
New to HA ,and this channel has definitely been our #1 online resource: *** TIP *** not sure if this is known to all, but as a 'newbie' we found out the hard way: if you set up your 'super secure password' utilizing the character '@' in it (for example, to change the letter a,A with @, as in '@ppl3' instead of 'apple'), the database, logs, records, history will NOT START! Only after looking into the logs for an hour, we discovered the @ is used in the [>]recorder code as a designator for db/server location! So the only @ character in the [>]db_url line MUST BE the one between your 'password' and 'core-mariadb' FYI! :D
@spinnercruz
@spinnercruz Жыл бұрын
Thank you, this really helped me out Jose
@miguelgarcia-vg1fh
@miguelgarcia-vg1fh 3 жыл бұрын
Good info! I had recently set this up but now realized I’ve made some mistakes so will be going back and correcting them like going to an SSD card lol. One thing to note is that the history will have too much data, like all the entities so you can filter what you want in there by typing “include:” or “exclude:”. This is mentioned in the HA page
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Yes that's good information Miguel!
@miguelgarcia-vg1fh
@miguelgarcia-vg1fh 3 жыл бұрын
@@EverythingSmartHome what SSD do you recommend to buy?
@M1L31
@M1L31 3 жыл бұрын
Thanks again! Speeded up the reaction of devices and also restarting! Love your videos! Keep it up!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks my friend!
@058Jacko
@058Jacko 3 жыл бұрын
Will be adding the monitoring and will be in touch soon!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Let me know how it goes!
@G8YTZ
@G8YTZ 3 жыл бұрын
Thanks for the tip on the Maria DB, even though I have been working with HA since 0.4, I still gain a lot of ideas from your channel.
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thank you, your a true veteran of Home Assistant! Appreciate the support!
@G8YTZ
@G8YTZ 3 жыл бұрын
@@EverythingSmartHome Hi! I have an update on the Maria DB and a possible issue. I've had to back out to my previous configuration. My hardware is an INTEL NUC Celeron 7CYJH with 8GB Ram and a 128GB SSD and I'm using NABU CASA. Basically Alexa Media TTS fails to work with Maria DB, at least it keeps requesting re-authentication and then the same again a few hours later. I backed out to the previous snapshot and all ok again. Very strange. I'll try installing again to double check, but has anyone else seen this issue?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hello! That is strange, MariaDB doesn't have anything to do with the workings of HA, it only handles history and log book data, that is all. No integrations or anything is stored in the database. Did you check your logs before reverting? I've seen others complain that different things aren't working but it's because they've made an error in the mariadb setup and HA can't start properly, preventing it from loading components after the recorder. The HA logs should confirm this
@G8YTZ
@G8YTZ 3 жыл бұрын
@@EverythingSmartHome I will repeat the process to be 100% sure, but it was the only change I made. I have a policy of making one change at a time exactly for this reason, I'll feed back again. No doubt of the performance improvement on the NUC though. I was wondering if I could easily use a remote Maria DB as I run one on my Synology DiskStation for my Amateur Radio logbook.
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Definitely check the logs after migrating to see if there any issues, find us on discord if you need some help and we can try to get you sorted
@jonfarcher
@jonfarcher 3 жыл бұрын
Good video, been meaning to setup MariaDB for a while watching this spurred me on. Now to see what difference it makes. Cheers!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks Jon! Good luck!!
@niklassundin962
@niklassundin962 2 жыл бұрын
Great video.... again!! You are awesome! Why? Because videos are high quality, quick, no-fluff, very informative. Keep up the good work!
@EverythingSmartHome
@EverythingSmartHome 2 жыл бұрын
Thanks my friend, really appreciate it! 🙏
@Dorff_Meister
@Dorff_Meister 2 жыл бұрын
Thanks! Tonight, I used this and your related video to setup both influxdb and mariadb with 372 day retention. I guess I'll have to use them to watch my free disk space, now ;) Tonight I also found the Plotly Graph Card (HACS) which I think I'll love. I've been using the apexcharts-card (HACS) and like it a lot.
@JohnSmith-vt8si
@JohnSmith-vt8si 3 жыл бұрын
Another great video, added to the todo list for the weekend. Thank you
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks John! Let me know how it goes!
@JohnSmith-vt8si
@JohnSmith-vt8si 3 жыл бұрын
@@EverythingSmartHome All working as expected, thanks Lewis
@mkjustuk
@mkjustuk 3 жыл бұрын
Brilliant, thanks for this, will get it moved over tomorrow.
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Let me know how it goes Justin!
@riccidanieletto547
@riccidanieletto547 3 жыл бұрын
Thanks for the great vids Lewis, all worked perfectly!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Excellent, glad it was useful!
@marian2141
@marian2141 3 жыл бұрын
Woo hoo! MariaDB up and running with all sensors spewing data! 😀
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Your on a roll! 😅
@safadig
@safadig 3 жыл бұрын
Another great tutorial.. Thank you.. Like the Cards format you show at the end.. Could you go into more detail for that final monitoring dashboard look?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thank you! Sure I can look at that, they are made using "Apex" cards from HACS, there are even some example code in their Github. Hope that helps a little!
@BerkeleyTowers
@BerkeleyTowers 3 жыл бұрын
Couldn't wait for tomorrow...or the weekend.....Job done! Big Thumbs Up.....Spot on as usual, thanks!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Awesome Paul, glad it worked!
@gidadavid123
@gidadavid123 3 жыл бұрын
You could also just use Recorder: commit_interval: 30 So the data is stored and will only be written on the sd card every 30 seconds
@hybrispsycho1
@hybrispsycho1 3 жыл бұрын
was hoping for this, thanks so much as always
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Got you covered 👊
@andyhamdorf1446
@andyhamdorf1446 3 жыл бұрын
Thank you. This worked great. I love your videos. Please keep them coming.
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks for the support Andy!
@Dorff_Meister
@Dorff_Meister 2 жыл бұрын
I thoroughly appreciate your SD card warning. My strong preference is to not run Pi's from SD - I was so glad when the Pi 4's started shipping with built in support for booting from USB. I prefer to run them with m.2 SSDs. All that said, my HA now runs on a VM. I migrated a couple weeks ago and it's a LOT snappier than it was on the Pi4.
@biggunsv
@biggunsv 2 жыл бұрын
Great video, I've set up Maria DB a while back when I saw your video. Do you have any information/video on how to set up reporting or extract data from the events table? Keep up the great work!
@Desmessed
@Desmessed 2 жыл бұрын
My old db was 120MB when i deleted it. That installation of HA did run for less than a week! Scary numbers there!
@EverythingSmartHome
@EverythingSmartHome 2 жыл бұрын
Depends how many entities I guess!
@Desmessed
@Desmessed 2 жыл бұрын
@@EverythingSmartHome makes sense, I did the MariaDB on a supervised Deb install and have let it run now a couple of days. I'll have a look into how the disk usage is now. Trying to read up on how I can controll how long data is kept and so on.
@streetwiztech5505
@streetwiztech5505 3 жыл бұрын
Waiting to order my blue when they come back in stock (fingers crossed) before i do the mariadb switch over.. my rpi3 is busy enough :-) Another good video.... nice one
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Nice, let me know how the blue goes! You've got lots of exciting projects now 😅
@JohnJoeMorganTheNorthernOffice
@JohnJoeMorganTheNorthernOffice 3 жыл бұрын
Cheers ... sussed out my missing logbook and history. In MariaDB config I had changed the user name but hadn't updated the URL. Thanks for the kick in the arse. Been bugging me for months
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Glad you got it working!
@MartynSmith
@MartynSmith 3 жыл бұрын
Very important step missed - around 3:30 Restart HA, and wait and wait, make a cup of tea and wait ** Do not faff about with your config file think you have got your password wrong ....... patience is a virtue I don't have! Great Video again
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Haha glad you got through it in the end 😂
@ShavedAp3
@ShavedAp3 Жыл бұрын
I know this video is quite old and a lot has changed with home assistant so Im wondering if things like MariaDB are still the way to go or would it be a good thing to go back to default? as always thanks for the videos looking forward to the new sensor when it comes
@nschdnschd
@nschdnschd 3 жыл бұрын
Hey, great video, but the adapter can also be named by "eth0" so it do not start with "en" :)
@NookieClr
@NookieClr 3 жыл бұрын
Fantastic, keep up the good work!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks buddy!
@kpurintun
@kpurintun 2 жыл бұрын
great vid, everything went swimmingly.
@real_christian
@real_christian 11 ай бұрын
Great video! Using Home Assistant over a year now. Just switched to MariaDB. One question,- in the roundup you showed a couple of graphs. Which card did you used for the network network_throughput_in and network_throughput_out. Awesome if you can share this :) Kudos for the video. Keep up the good work.
@davidtjac
@davidtjac 3 жыл бұрын
Great video, really easy to follow. Any chance on doing a tutorial on energy cost monitoring. Particularly daily/weekly/monthly running cost using day/night tariffs
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks David! I'd loved too but unfortunately don't have anything I could use to demonstrate it on at the moment
@ianrobson9612
@ianrobson9612 6 ай бұрын
Lewis thanks again for a great video. I followed along and all went well except I am missing a history tab. Is there something I need to add to get it to appear? I also did not see the old db file to delete?
@alejandrortl
@alejandrortl 3 жыл бұрын
Great job as always
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Appreciate it Alejandro
@francoiasis.r.l.5994
@francoiasis.r.l.5994 6 ай бұрын
Thank you, it was helpfull !
@marktomlinson6922
@marktomlinson6922 3 жыл бұрын
Top work sir, concise and bang on the money, I've been meaning to move off SQL-lite for a while now as I was getting table errors in the logs and the system started to feel a bit sluggish. Personally I use Netdata docker to monitor my systems though, as it's scalable and then centrally managed as I have a few low powered boxes running round the house that I need to keep an eye on. did I hear you say Node red ha ha ha ha
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks Mark! Hopefully you can migrate soon! That's a good solution also, wouldnt go changing!
@surgical_17
@surgical_17 3 жыл бұрын
How about a video of a UPS for a Raspberry Pi? I'm living in an area with a lot of power outages and I am trying to find a solution to keep my Raspberry pi 4 running
@johndutt1436
@johndutt1436 2 жыл бұрын
Thanks for this video. I am also running HA virtualized using qemu/kvm and virtual manager however, I am unable to perform snapshots with the current HA qcow. I was wondering what were you using for snapshots? Thx.
@tony113000
@tony113000 3 жыл бұрын
Another great video - Thanks
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks Tony!
@arvidjayal9304
@arvidjayal9304 2 жыл бұрын
Great tutorial. Thanks.
@EverythingSmartHome
@EverythingSmartHome 2 жыл бұрын
Thanks for watching!
@sygad1
@sygad1 3 жыл бұрын
Nice and concise, thanks. Idea for a video, MQQT, especially around naming conventions
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Cheers Darren! Thanks for the suggestion!
@sygad1
@sygad1 3 жыл бұрын
@@EverythingSmartHome no problem, i've tried to watch a number of videos on the subject and they never quite seem to explain it clearly, you have a nice succint way of demonstrating it, definitely can tell you do prep and it shows
@MarkGhali
@MarkGhali 3 жыл бұрын
I cannot hit Like fast enough! Lewis you are too awesome!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks Mark!! Glad you enjoyed it!
@ValZakharov
@ValZakharov 3 жыл бұрын
Thanks for another great tutorial. It goes straight to favorites folder. Here's another potential video for us - at 0:48 it shows disk usage as full as 91%. My one is bit lower but I'm sure I'll catch you up soon enough. So what's way to clean the disk and remove old/obsolete files that are not needed in HA any longer. (and how to to delete something essential for sure). Thanks.
@tomar5e115
@tomar5e115 3 жыл бұрын
He's on a VM mate, chances are he only allocated a few gigs to the install
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Yeah it would be entirely dependent on what you have running etc but are you storing any CCTV images etc? And yes on a VM, I could do with increasing the size at some point 😅
@rjbrowning85
@rjbrowning85 Жыл бұрын
What tool did you use to create the CPU, Memory, and Throughput graphs? The default Lovelace sensor graph doesn't provide that level of granularity.
@lucianbuzatu4602
@lucianbuzatu4602 2 жыл бұрын
Hello, it's possible to use Grafana with MariaDB without installing InfluxDB? Thanks for your inspire videos.
@LucienWolfs
@LucienWolfs 3 жыл бұрын
Great video. Hoping for some helpfull tips for more stability problems of HA. Almost daily HA is in a hung status. How can I see why this is happening ?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks! Check your logs to see what's going on!
@ustoopia
@ustoopia Жыл бұрын
very useful video. thanks for that. It did however leave me wondering if running the db in mardiab somehow will require me to take some steps to make sure that the database is also included in my auto backup to my nas. if anybody has any thoughts on this I would love to hear them!
@its_giff
@its_giff 3 жыл бұрын
ever thought of adding a sensor to monitor the size of the mariadb database?
@MartijnKrijgsman
@MartijnKrijgsman Жыл бұрын
Love your video's just wondering why you would put you db_url in the configuration.yml instead of only a reference to the secrets.yml seems the better place like that
@traxeonic3600
@traxeonic3600 8 ай бұрын
I actually do this in my configuration. the entire parameter is in the secrets.yaml file. then I reference it in the configuration.yaml like: db_url: !secret mariadb_url .... while secrets.yaml is not any more secure than the configuration.yaml file since they are colocated and not enciphered, it DOES allow me to do things like backup everything to github and not push the secrets file to github. It also allows me to easily share configuration samples with people without having to scrub them.
@yankee-in-london
@yankee-in-london 2 жыл бұрын
I'm surprised to hear that SQLite isn't performing well (or reliably) considering Home Assistant only has 10 days of data and this should be way, way below any threshold where performance is suffering. Of course i've never analyzed the queries (the achillieas heel of all SQL database apps) but was wondering if you had any metrics on how MariaDB had improved things.
@paulatkinson9010
@paulatkinson9010 2 жыл бұрын
Have these sensor settings changed now? I keep getting error messages when trying to type them in 🤔
@elliot762001
@elliot762001 2 жыл бұрын
Im running home assistant on a VM in my Synology NAS. I also have a docker container with mariadb running for my kodi database. can i use this for home assistant too?
@thomasdeverill7625
@thomasdeverill7625 Жыл бұрын
Anyway to do this while retaining all the sensor data?
@yankee-in-london
@yankee-in-london 2 жыл бұрын
Have you tried using MariaDB with a socket connection? This would definitely be faster still. I have a feeling that socket may be obfuscated a bit because I think Maria DB is running inside a docker container and i'm not sure that HA and Maria have a shared volume where this socket can be reached.
@ChrLyons88
@ChrLyons88 6 ай бұрын
@EverythingSmartHome if you are running Home Assistant with Proxmox, would you continue to use the Add-On or move the database to a separate container or VM?
@fygh8767
@fygh8767 2 жыл бұрын
Hi Lads, I understand Maria DB is sensitive to backups unless stopped prior to manual backups. Might I decide to use MariaDB in my forthcoming install , would this cause a problem with automatic routine backups with HA OS, generating corrupted files?
@okanerdem
@okanerdem 3 жыл бұрын
How can i add configuration validation in server controls?
@jesu007
@jesu007 2 жыл бұрын
Hello, I'm planning to move my installation to an ODROID with eMMC. Is it ok to move to MariaDB with eMMC? Or is it not recommended like an SD card install?
@pokemonfreaky100
@pokemonfreaky100 3 жыл бұрын
Where is the new MariaDB file database located (in case you might want to back it up seperately)?
@harchom
@harchom 2 жыл бұрын
Nice video, but this isnt working for me... meybe its because of newer verison of HA ? (2021.12.10 HA OS 7.2) but after MariaDB install whole HA is noticeably slower...
@LookatBowen
@LookatBowen Жыл бұрын
It worked as you suggested, and I know you mentioned Sensor data will be lost, bu I was hoping I had heard you wrong. Of course, it is lost. Is there any way to get the sensor data back. Losing all the energy stats is a biggy. Is there a solution you are aware of?
@tomferrin1148
@tomferrin1148 5 ай бұрын
HA newbie here. I'm on the 2024.2.1 version of HA and it looks like things have changed a bit with the UI since this tutorial was created. Would love an update!
@espressomatic
@espressomatic 2 жыл бұрын
Is there a need for a strong password at all when it's being stored in plain text in the HA config?
@rikardz1986
@rikardz1986 Жыл бұрын
About the SD warning.... how about if I use a SD Card on a IPbox with HA ?
@SelfSufficient08
@SelfSufficient08 3 жыл бұрын
Great video. Any suggestions on manually entering some of the historical sensor data ? Example: I have about 12 utility meters that keep count of my solar gen, electric usage, grid usage and battery usage. I have 3 years of history now so it would be a sad day to lost it. I just have 4 sets of sensors for daily, monthly, yearly and all time. :-) any advice on how to add if I convert are welcome
@Xavier_BE
@Xavier_BE 9 ай бұрын
+1: I actually came to this video for that exact answer
@SanilSahadevan
@SanilSahadevan Жыл бұрын
Hi, thanks for the video... planning to move to Maria DB... just a quick question. I use RPi 3 and a SSD as external data disk. Home assistant boots from an SD card , but all data is stored on SSD connected via USB port. I heard you mention not to use it with an SD card and to move to SSD. Tried a lot, but can't get to boot from SSD on RPI 3. So only did I start using the data disk feature. So is it ok to use Maria DB on my existing setup? Or will i have to boot from SSD (possible on RPI 4's but hardly available in the market right now)
@verwaeststijn
@verwaeststijn 3 жыл бұрын
and another one done :p ,although not the system monitoring since i don't see the point for myself :)
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Nice! 🙌 Yeah for your setup probably doesn't make an awful lot of sense!
@espressomatic
@espressomatic 2 жыл бұрын
Despite the "speed increases" of the past 3 or 4 releases, I'm finding that with 2022.7 it takes much longer to access the HA web UI than it ever has. I'm running a VM with decent and dedicated resource allocation on a fast server and first access to HA feels like I'm on dialup.
@iainhodge9253
@iainhodge9253 3 жыл бұрын
Any idea how one might swap history recording to a Docker based MariaDB instance? I’m already using MariaDB for a couple of databases and I not sure of the impact of having two MariaDB instances - one in HA and one in my Docker container.
@David-fe8bs
@David-fe8bs 3 жыл бұрын
you can just create a database in your docker and use that one
@ldam
@ldam 2 жыл бұрын
I use raspberry Pi 4 8gb with 240 ssd, I get error message on check config not sure why can you check see what i did wrong on the command sensor: - platform: systemmonitor resources: - type: processor_use - type: processor_temperature - type: memory_free - type: disk_use_percent - arg: / - type: disk_use - type: disk_free my network never show up when i check on terminal
@johndoudar6395
@johndoudar6395 3 жыл бұрын
Great video. I initially set up HA on an SD card and RPi 4 4G just to play around and see wat it could do. As I am planning on keeping it, is it possible to transfer HA to an SSD drive withing having to do a complete reinstall?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks! It would be possible yes, unfortunately I don't have a Pi 4 to be able to demonstrate it
@johndoudar6395
@johndoudar6395 3 жыл бұрын
@@EverythingSmartHome Have transferred HA from an SD card to SSD drive all went smoothly. Now going to install MariaDB as suggested.
@NulledMedia
@NulledMedia 2 жыл бұрын
If you're seeing issues with recorder, logbook etc after switching over to MariaDB; try a shorter password and remove any symbols, restart after changes.
@samuellee5127
@samuellee5127 2 жыл бұрын
Thank you Kevin for that info. That fixed my issue with the recorder, logbook, etc. = )
@kicksejaapie
@kicksejaapie 2 жыл бұрын
Where is the new database located? I want to create a sensor out of it!
@BoostedNW
@BoostedNW 2 жыл бұрын
adapters that begin with en are cause its in a VM. If you are on bare metal such as a raspberry pi and using the built in ethernet,. the adapter is likely going to be "eth0" or if using built in wifi "wlan0"
@ThatsFinn
@ThatsFinn 3 жыл бұрын
Hey. Idea for a video: How to run home assistant on an SSD with a raspberry pi!
@mrphyslaw
@mrphyslaw 3 жыл бұрын
Just get a NUC or sff pc.
@ThatsFinn
@ThatsFinn 3 жыл бұрын
@@mrphyslaw i dont have nuc, they're somewhat expensive, i already have a rasp pi and a ssd is cheap as. i dont see a need for now with as little devices as i have.
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hey Finn, I don't have a Pi 4 to use but hopefully I can try and acquire one at some point!
@lelandclayton5462
@lelandclayton5462 3 жыл бұрын
@@EverythingSmartHome It can be done on a Raspberry Pi 3. Would have to be a USB to SATA Adapter with a SSD and would still need a SD Card. Just have to modify the System to use the SSD as the docker container storage. Could also be easily done with a existing system by using a directory link. Another option is a MicroSD to eMMC Adapter.
@SpiceSnow
@SpiceSnow 3 жыл бұрын
try this video kzbin.info/www/bejne/hZzJZoqYf8R3d9E these steps worked for me
@k4sr7iir
@k4sr7iir 3 жыл бұрын
Hey, Lewis! What do you thing about a video thats help us switching our Raspberry Pi SD card to a SSD? Some adaptors and SSDs recommendations might be a good options for the video too!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hey! I'd love to but I don't have any Pi 4s I can use, hopefully I can acquire one soon!
@k4sr7iir
@k4sr7iir 3 жыл бұрын
Looking forward for this!
@brianj2029
@brianj2029 3 жыл бұрын
Thanks for the video. Perhaps it's already been answered, but how did you do that Bandwidth card?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hey Brian, this a custom card from HACS called "Apex"
@brianj2029
@brianj2029 3 жыл бұрын
Excellent...thanks so much. One more question. On my test machine running HA in Docker on Synology, the temperature resource worked fine (which I was a bit surprised) but when I tried the same on my "NUC" (intel laptop running the nuc HA software install....so no VM), it did not. Any idea why?
@kimgnavpot
@kimgnavpot 3 жыл бұрын
thanks
@mattriding5588
@mattriding5588 3 жыл бұрын
Question, I use influxDB integration for my historical data and graphs through Grafana. Moving to mariaDB, should the influx data just pick up where it left off?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
There should be no issue since influxdb is a complete seperate standalone integration. Hope that helps!
@aswinmeulblok2191
@aswinmeulblok2191 3 жыл бұрын
Nice video!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks Aswin! 🙏
@aswinmeulblok2191
@aswinmeulblok2191 3 жыл бұрын
@@EverythingSmartHome i got multiple vms running on my host machine how can i monitor they cpu usage?
@MarcelDarvas
@MarcelDarvas 3 жыл бұрын
I need to check how my Docker got things set up, I have the "IOTstack" installer. That community is huge about InfluxDB and Grafana and then Mosquitto. Maybe this is overkill, however I wanted to ask if anyone watching this video had any experiences with InfluxDB
@davidnestico
@davidnestico Жыл бұрын
So I did everything but nowhere in VSCode can I find "home-assistant_v2.db" to delete?
@BobRed0965
@BobRed0965 Жыл бұрын
I saw the same thing. Apparently Studio Code Server only shows files it can edit. Do you have Terminal installed? If so. you can do it by opening the terminal and entering the following commands: > cd /config > rm home-assistant_v2.db NOTE: instead of using the rm command (remove), I used the mv command (move - which is also used to rename) to rename it. I did this out of an abundance of caution (paranoia). That command is: > mv home-assistant_v2.db home-assistant_v2.db.bak After a few days I'll delete it with: > rm home-assistant_v2.db.bak
@AlexeiWatson
@AlexeiWatson 2 жыл бұрын
FYI I got a heap of errors on first boot and it turns out that you can't use certain symbols in your MariaDB password
@ItamarValdman
@ItamarValdman 3 жыл бұрын
Hi, again great channel! I have semi-related question, you are suggesting not to base the HA on SD card while using mariaDB and InfluxDB. The new "Home Assistant Blue" is based on eMMC, is it different? Is it reliable enough? Or the SSD suggestion still stands? Thank you in advance!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks! eMMC generally has much more endurance and write cycles so you should be fine, this is drive dependant but yeah you will be good to go!
@ItamarValdman
@ItamarValdman 3 жыл бұрын
@@EverythingSmartHome thank you! You are amazing!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
And you are awesome!! Thanks for the support
@MrDVG1990
@MrDVG1990 3 жыл бұрын
Thank you for the guide! But the processor_use entity is not created with a normal installation (no docker) on my rpi2 with a ssd. What could be the problem?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Your welcome! Your using Home Assistant OS? (If you are btw then this runs docker) also you have an SSD on a Pi 2?!
@MrDVG1990
@MrDVG1990 3 жыл бұрын
@@EverythingSmartHome yes, it is home assistant OS. I run it on an SSD by configuring it so it uses the SD card to start, then switches to the SSD. Using a RPI2 is not recommended but i have to say it runs very smoothly in my case www.creationfactory.co/2020/10/configuring-home-assistant-to-run-off.html
@Klaus-macht-Bilder_de
@Klaus-macht-Bilder_de 3 жыл бұрын
Thank you for explaining I had a Influxdb & Grafana Instalation running on my RP4/SSD before insatlling Mariadb - Mariadb is now running... but influx/Gafana not any longer :( - any idea?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
There shouldn't be an issue, can you check your logs?
@Klaus-macht-Bilder_de
@Klaus-macht-Bilder_de 3 жыл бұрын
@@EverythingSmartHome THank you I found the issue ... an old non-updated IP-Adress
@nico96gmail
@nico96gmail 3 жыл бұрын
The next step up in data base is postgresQL
@Anonymous-jw6ri
@Anonymous-jw6ri Жыл бұрын
Hey, the main devs came out recently and said that most people should not be changing databases. any chances on updating the video so people know not to switch
@ViperJoeB
@ViperJoeB 3 жыл бұрын
Hi. Great how to monitor lesson. All worked except the network monitor. Both In and Out return an unknown. I am running HA via a Hyper V VM. Is it possible that this will not work in a VM similar to your description on processor temperature? I have verified my network adapter name. Configuration check is "green" or good. Any thoughts are greatly appreciated.....
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hello and thanks! It should work in Hyper-V no problem, the only thing that won't work as mentioned is temperature. What was the error you got? If you need help feel free to hop into the discord server!
@ViperJoeB
@ViperJoeB 3 жыл бұрын
@@EverythingSmartHome I don't get an error. The state just shows "unknown" under developer tools and the history shows "0" for both in and out throughput lines. BTW, I love your channel. You really break things down into simple terms and procedures. I'l be sending you some coffee....
@barranhapt
@barranhapt 2 жыл бұрын
MariaDb can also get corrupted after power loss and it doesn't recover automatically! the workaround is to uninstall mariadb and install it again! its even worse than to rename the sqlite database. Do you have any advice?
@sorinescu123456789
@sorinescu123456789 Жыл бұрын
Big problem when the supersecure password has the @ character included. The recorder handshake was not happening, and no data was accumulating. No documentation that I could find. Changed the db name, changed the core-mariadb with the IP address, and eventually I noticed that there was a @#$@ sequence in the yaml file that didn't look good at all. Beginner's mistake, I guess...
@MattHawkinsUK
@MattHawkinsUK 8 ай бұрын
I wouldn't say that was a mistake on your part. No reason you wouldn't think @ was OK. It was only chance that I didn't think to include that character in mine. It (the HA interface) should make it clear in the settings if the password is restricted to a set of special characters.
@Stanl3yy
@Stanl3yy 3 жыл бұрын
Is it easy to migrate homeassistant from an SD card to SSD? And if I run from an SSD shouls I use the 64 bit version? And can you make a guide how to? I'm currently running on an pi4 4GB model. Thanks for the video's!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks for watching! Yes it's easy, I would just use the snapshot restore feature and do a fresh install. Hope that helps!
@ioanniskoutroulis5866
@ioanniskoutroulis5866 3 жыл бұрын
I’ m having a question about how to find and install a unique ID in mqtt projects, in Home Assistant installed on a raspberry pi 4 64bit.... Please I’m struggling on this!
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hello, sorry I don't understand the question?
@ioanniskoutroulis5866
@ioanniskoutroulis5866 3 жыл бұрын
@@EverythingSmartHome Thanks for the reply...When I' m trying to connect my nodmcu configured as a switch, the mqtt doesn't let me, because it asks a unique ID....Is there any configuration that bypass this, or I should some how find a way to put this key ?
@97ynoT91
@97ynoT91 3 жыл бұрын
Thanks for another great video! Quick question for you though... I am running on a Raspberry Pi 4 4GB. I do have a 256 GB M.2 NVME SSD in a usb 3.0 enclosure. Frenck had mentioned instead of changing the eeprom to boot from USB 3.0, you can just leave it booting up from microsd and write all additional data to the USB 3.0 drive. Any idea how to do that?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hey thanks Anthony! You could do that, all you would need to do is mount the USB, however if your going to the hassle of plugging in an SSD, why not just boot from it instead? Was there another reason you don't want to?
@97ynoT91
@97ynoT91 3 жыл бұрын
@@EverythingSmartHome Not necessarily. Still learning Linux and the like , so working on getting more comfortable with it.
@BrendanBerg
@BrendanBerg 3 жыл бұрын
@@EverythingSmartHome I think this is a topic for the next one! What's the best way to get booted from the SSD?
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
I don't have a Pi 4 to be able to use at the moment but perhaps I can't ry get a good of one!
@jimudd5836
@jimudd5836 3 жыл бұрын
Thanks MariaDB really seems to give that extra umphh, but with the system monitor my only assosiated resource with IP for my home assistant is wlan0, since I have need for wifi for my instance I had to deviate from yor installation to SSD, I used etcher and start directory with wifi credentials to setup my wifi setup, possible my wifi setup method screws with home assistant and wifi is not supported for trafic data collection? After smooth setup with guide and 6 frustrating hours of trying to solve the network trafik problem I apriciate all recomendations. Best regards from sweden
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Hello! In the SSD video I showed how to create WiFi details 😅 but it shouldn't cause an issue anyways no!
@zephyr59710
@zephyr59710 5 ай бұрын
Why sqlite less reliable ? Mariadb without high avail cluster is really more reliable ??
@woollysoxx
@woollysoxx 3 жыл бұрын
Great info as always. Quick question, i got mariaDB set up as per your video and all seemed fine, then i noticed a couple of esphome devices had gone offline, any ideas? I went back to a backup i made on proxmox and they came back. Any thoughts would be appreciated, Allan
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
Thanks Allan, that is strange, the database doesnt contain any information about your sensors and integrations, it only contains sensor history so it's not possible for it to make your device go offline. There was potentially another issue simaltaneously that caused it to go offline? Did you check your HA logs?
@woollysoxx
@woollysoxx 3 жыл бұрын
@@EverythingSmartHome Hi thanks for your reply, no not yet, I have recovered to a backup just to get things going again. I will try again soon and let you know, busy decorating as well today, thanks, Allan
@EverythingSmartHome
@EverythingSmartHome 3 жыл бұрын
No problem, if you need help please jump in the discord server and we can get you sorted!
@woollysoxx
@woollysoxx 3 жыл бұрын
@@EverythingSmartHome Cheers
6 ESSENTIAL Beginner's Tips After Installing Home Assistant
10:49
Everything Smart Home
Рет қаралды 160 М.
15 Home Assistant Tips You MUST Do
14:28
Everything Smart Home
Рет қаралды 352 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 134 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 80 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 67 МЛН
NEXT LEVEL STATISTICS - Home Assistant InfluxDB and Grafana
36:08
Everything Smart Home
Рет қаралды 125 М.
HOME ASSISTANT - FASTER AND MORE RELIABLE WITH MARIA DB
7:46
Smart Home Australia
Рет қаралды 3,9 М.
This is SO Much Better! Getting Started with ESPHome 2021
29:42
Everything Smart Home
Рет қаралды 327 М.
Buying the Most EXPENSIVE Temu Items
23:44
Austin Evans
Рет қаралды 552 М.
EASY Lovelace Mobile Dashboard | Home Assistant Tutorial
26:20
Zack Barett
Рет қаралды 207 М.
PhD AI student explains how China already have won in AI..
13:28
livinlavidaluke
Рет қаралды 67 М.
Fixing The WORST Thing About My 3D Printer With Home Assistant
20:38
Everything Smart Home
Рет қаралды 59 М.
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 3,5 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 5 МЛН
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН