442 9 Hurdles of Home Assistant I Had to Overcome

  Переглядів 88,016

Andreas Spiess

Andreas Spiess

День тому

The Home Assistant project came a long way and currently is the de facto standard for serious home automation. Time to show you my setup. Because, of course, it has some specialties. We will go through nine hurdles and find a solution for each of them. Watching this video might save you valuable time.
Why two boards (options)?
HA Automations or Node-Red?
Installation of HA
Terminal and RSA key
Install HACS
Install File Editor
Install Node-Red Companion and Node-Red WebSocket support
Show containers in HA window
Install ESPHome and create Example sensors
Flash Sonoff S26 Smart Plug
Write data to another server
HA Zigbee or Zigbee2MQTT?
My second channel: / hb9blawireless
Links:
ESP32 DevBoard used: s.click.aliexpress.com/e/_ANHrBc
Cheap ESP32 Dev Board: s.click.aliexpress.com/e/_ApGhKT
ESP8266 Dev Board: s.click.aliexpress.com/e/_ArLZRN
Sonoff S26: s.click.aliexpress.com/e/_Dmr...
Installing Home Assistant: • Installing Home Assist...
Enable SSH In Home Assistant: • Enable SSH In Home Ass...
Install HACS: • How to install HACS in...
Sonoff S26 Code: esphome.io/devices/sonoff_s20...
HA Binary Sensor Code: esphome.io/guides/getting_sta...
VSCode SSH using RSA Keys: • VSCode SSH using Keys
The links above usually are affiliate links that support the channel (no additional cost for you).
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
My Patreon Page: / andreasspiess
Discord: / discord
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission on your purchases to buy new stuff for the channel
My Amazon.com shop: www.amazon.com/shop/andreassp...
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For Amazon.de: amzn.to/2r0ZCYI
For Amazon UK: amzn.to/2mxBaJf
For ebay.com: ebay.to/2DuYXBp
profile.php?...
/ spiessa
www.instructables.com/member/...
Please do not try to email me. This communication channel is reserved for my primary job
As an Amazon Associate, I earn from qualifying purchases
#no#midroll#ads
00:00 Intro
00:42 Content
01:08 My Setup
02:06 Why two boards (options)?
03:53 HA Automations or Node-Red?
04:24 Installation of HA
04:44 Terminal and RSA key
05:28 Install HACS
06:22 File Editor
06:36 Node-Red Companion and Node-Red WebSocket support
08:56 Show containers in HA window
09:50 Install ESPHome and create Example sensors
12:22 Flash Sonoff S26 Smart Plug
13:15 Write data to another server
13:43 HA Zigbee or Zigbee2MQTT?
14:00 My verdict
15:11 My open points

КОМЕНТАРІ: 527
@wrbrower
@wrbrower Рік тому
I really appreciate all of the pain you go through to create these step by step, in-depth videos.
@AndreasSpiess
@AndreasSpiess Рік тому
Fortunately, it is not a pain. Otherwise I would immediately stop! But it is a lot of work, I agree.
@usefulelectronics
@usefulelectronics Рік тому
Amazing content. this tutorial included a lot of important concepts regarding IoT and handy tools that makes development process easier ! keep up the good work !
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for your kind words!
@mauriciovega7431
@mauriciovega7431 Рік тому
As usual, Spot on Andreas! Granularity always has to be applied wisely. This is a good example considering your use case and for sure will be used by many people who like to have full control of home automation/monitoring. Thank you!
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@NickRains
@NickRains Рік тому
Thank you for the shout out. You have no idea how much this means to me. You’ve taught me so much and continue to teach me. 🙏
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome! I liked your video.
@breiti78
@breiti78 Рік тому
First of all. As always great video. There is one thing which alot of people missunderstand in the Energy Dashboard. I think the picture they are showing is also a bit missleading because of the running dots on the wire. The Energy Dashboard is showing the Energy (kWh) consumption over the, in the filter selected, period of time. It is not showing the live power consumtion (kW). The Energy Dashboard needs a constantly growing value for each of the phases or sources (lifetime value). The rest of the calculation is happening based on the period you select in the filter. Depending on the integration you have with the Huawei Sun 2000 you can still have the momentary power consumtion as a sensor and do something with it. This has just nothing to do with the Energy Dashboard.
@AndreasSpiess
@AndreasSpiess Рік тому
I agree. But all dashboards I know show power. Because this matters for decision making (e.g. is there enough power to switch the washer on. Energy is more foe an after the fact analysis.
@krisgeusens162
@krisgeusens162 Рік тому
@@AndreasSpiess I measure energy with Shelly EM
@sophiesmith5922
@sophiesmith5922 Рік тому
Very nice. This video may inspire me to try Home Assistant. I like the dashboard. I have not created much for automating things just yet, a work in process for plant lights and so forth. The ability to interface so well with many home projects is a plus.
@AndreasSpiess
@AndreasSpiess Рік тому
I also see the biggest advantage of HA the dashboards and some of the standard sensor integrations (for example for my Huawei solar inverter).
@peter.stimpel
@peter.stimpel Рік тому
I fully support your call for less but meaningful updates in HA. And want to add some thoughts on your setup. I was using a kind of similar hardware setup, but disliked the RPI part, because of speed, and missing measures to survive a power outage, and I need my RPIs for different things. So I changed to two older notebooks, equipped them with some more memory, SSD, and installed proxmoxx. I added a VM for running HA OS. I added other machines, for pihole, openvpn, and a linux machine to run docker. And since I am a software developer in my dayjob, I added a LAMP environment and Jenkins as well for playing around. In HA I run only things that are truly related to it. But grafana, prometheus, mosquitto and so on are running in the docker environment. This way I have another benefit: the batteries of the laptops act as UPS for short outages. I am happy with it, and run this setup for more than 12 months. For the frequent changes in HA: I doublecheck the "breaking changes" on each release. This is where all the hassle is hidden in. One time I missed that, and the HA devs decided to kick some nodes from NodeRed in that release, which broke my workflows until I re-added the missing nodes in NodeRed. Thanks for the video, Andreas.
@AndreasSpiess
@AndreasSpiess Рік тому
Your setup of course is much versatile. Up till now I did not upgrade because of the following reasons: 1. The power consumption usually is higher. And since I have solar I became focused on that topic. Maybe a bit too much ;-) 2. Maintenance of my infrastructure is the next thing I want to focus. You know, mi remaining lifetime is rather short! But maybe, if I loose more time waiting for compilation I will go to the next level. 3. Because my WiFi is the most critical part, I invested in a UPS for the Lab.
@peter.stimpel
@peter.stimpel Рік тому
@@AndreasSpiess Yep, and that's the beauty: everyone can select one out of many paths for achieving a certain thing. If I would have told I run my own small hypervisor cluster at home, 20 years ago, people would told me "stop dreaming". But for the power interuption: I do not know why people pay so less attention to this detail. Having time to shut down databases properly when a power outage happens, is priceless.
@jmr
@jmr Рік тому
@@AndreasSpiess My UPS devices have been very helpful! I also value my local network during power outages.
@AndreasSpiess
@AndreasSpiess Рік тому
@@peter.stimpel What I learned over time: A PC or Raspberry crash creates way less hassle than a network down. The software and particularly the built-in recovery procedures got much better over the years, and I no longer lose a lot of work due to autosaving, etc. But it usually takes one hour if my network is down, also to get a proper connection to my ISP. This was the main reason for my UPS. And with my solar plans, my UPS only has to cover a few seconds, and the big battery in the basement should kick in.
@AndreasSpiess
@AndreasSpiess Рік тому
@@jmr So far, we do not have outages. But the predictions for end of summer forecast that they might cut electricity to save power...
@MFBcode
@MFBcode Рік тому
About performance: I took me lot of research to find how to speed up raspberry pi/finding faster boards/deal with problems of getting parts etc. After months and no ideal conclusion of fast SoC, I noticed that I was just waisting time. I decided to buy MiniPC and I added virtualisation (proxmox). Now I have home server with fast nvme/fast ram/hdd/lots of cpu cores. I installed HA (as VM), pihole, vpn, surveillance... and have a lot of place for more experiments :) Compiling esphome firmware? Matter of seconds, upload takes longer. Was it more expensive? Of course, you can pay like for 4 RPi4 but performance is like you would have 10 RPi4.
@AndreasSpiess
@AndreasSpiess Рік тому
This seems to be an interesting alternative to a Raspberry. My concern is the power consumption. How much does your server use? and maybe you can post a search term to find your config (UKposts no longer allows links)
@MFBcode
@MFBcode Рік тому
@@AndreasSpiess I decided to got with AMD Ryzen 5600G and ASRock X300. Power usage is 24W (measured with shelly). I could be less if I decided to go with 35tdp CPU instead of 65tdp, but I was more focused on performance. At beginning I was a little scared of Proxmox configuration, but then I found github tteck/Proxmox. With one command you can create whole VM with HA.
@CamiloSperberg
@CamiloSperberg Рік тому
I also struggled a lot with HA being slow. In the end, decided to migrate it to an (very) old 2011 MBP I had accumulating dust. Best decision ever! ESPHome doesn't take that long to compile and every action in my house now happens instantly. Also: I did go for Docker and it made my life so simple by migrating away from the rpi4. Another advantage is that I can choose when to update. Up until now, I've kept it running for about 2 years already and only when I have the time for it I update and change conf if needed.
@AndreasSpiess
@AndreasSpiess Рік тому
@@MFBcode Thank you for the link to the helpers. Because I already ordered a second-hand thin client PC to tinker around. Maybe it can be used as a Pi replacement (lower performance but also lower power consumption)
@AndreasSpiess
@AndreasSpiess Рік тому
@@CamiloSperberg Thank you for sharing your experience. As mentioned in the other comment I will try the PC way, too
@lawrencerubanka7087
@lawrencerubanka7087 Рік тому
Thanks Andreas! As always, excellent analysis. I also agree with you on the release strategy used by Home Assistant. I would like to see separate stable and development releases. I don't know enough about the development life cycle with large complex systems such as this, but I imagine there could be a more organized approach. I would bet that having more testers doing regression testing would help greatly. (...cautiously raises hand to volunteer...). Thanks again for you excellent work!
@AndreasSpiess
@AndreasSpiess Рік тому
Many projects use such a strategy. But it needs some organization. Maybe I have this need because I implemented large ERP systems during my career…
@VassilisKoulouris
@VassilisKoulouris Рік тому
I had the same setup and I was testing in parallel Openhab 3 on IOTstack (Openhab, MQTT, NodeRed, Pi-hole, TasmotaAdmin, NTP Server, Web Server and Portainer - all running flawlessly on a single Pi4 with SSD) and a stand alone HA running natively on a rpi4 with SSD. My conclusion was to abandon the HA as most of the functionality that I needed for my home automation was covered by Openhab and now everything is running on a single Pi4 - beautifully I might add! Thanks for all your work Andreas!!!
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for sharing! I also run IOTstack, but felt, that a lot of innovative work is done in HA and I wanted to participate…
@bennylloyd-willner9667
@bennylloyd-willner9667 Рік тому
Great video! I have put my HA project on the shelf for the moment due to, well, life happening😁, but the dark season is upon us in Sweden so more IT-nerdy times are to follow. This was a very good kick-in-the-butt to start over with a fresh setup (I only have a couple of cameras, lights, and switches so no biggie to start over and do it properly)
@AndreasSpiess
@AndreasSpiess Рік тому
Go for it and enjoy!
@willb1242
@willb1242 Рік тому
That's funny. I also find my interest in electronics is seasonal - a crowdfunded product came this summer and by the time it did I lost interest from the prior winter!
@johnmccormick2883
@johnmccormick2883 Рік тому
Your video arrived at a perfect time for me… Thank you. It convinced me to steer clear of HA as a solution due to the many complexities involved and constant need for maintenance. Also maintainability in my absence. 73’s
@TheUnofficialMaker
@TheUnofficialMaker Рік тому
your missing alot of fun, unless you don't have the time. look at homekit.
@johnmccormick2883
@johnmccormick2883 Рік тому
@@TheUnofficialMaker thank you for the reply VJ… if I was in my 30’s I’d probably gone it a go… but I’m nearing 70 and these days I ask myself what would my family do in my absence? I know I’d enjoy doing it as I was an automation engineer professionally for Westinghouse, GE & Siemens for many years and loved it. In my later years I was cognizant of “system maintainability” as a primary requirement of leaving the end customer with a good solution. All the best to you…
@AndreasSpiess
@AndreasSpiess Рік тому
@John: We have similar backgrounds. I built global ERP systems… Stability and maintainability are important for me. (And also the WAF)
@johnmccormick2883
@johnmccormick2883 Рік тому
@@AndreasSpiess And we are also both ham radio enthusiasts. I got my novice license in high school and prefer code so I guess I’m eligible for the QCWA X 2 …. ..
@Bob-Is-A-PotterNow
@Bob-Is-A-PotterNow Рік тому
Thank you Andreas! This will be incredibly useful for my upcoming HA project!
@AndreasSpiess
@AndreasSpiess Рік тому
Glad it was helpful!
@jakobhalskov
@jakobhalskov Рік тому
Looking so much forward to watch this as I just got home from a Home Assistant presentation :D
@AndreasSpiess
@AndreasSpiess Рік тому
I hope the video was ok ;-)
@Davvg
@Davvg Рік тому
I recently changed my HA install from a Pi to a used dell optiplex- it idles at around 12w which I think is pretty good for a full x86_64 computer and gives me more room for some higher strain applications. Using two Pis is a good solution I wasn’t even aware of, if only they were reliably in stock right now!
@saidinesh5
@saidinesh5 Рік тому
There are also cheap intel atom boxes that have a much lower idle power consumption and full x86_64 boxes. One example is atomic pi.
@AndreasSpiess
@AndreasSpiess Рік тому
Do you run on Linux or Windows? And how good is Windows supported by all our tools?
@Davvg
@Davvg Рік тому
@@AndreasSpiess I’m actually just running Home assistant OS on it. I’ve been thinking about switching to home assistant container on Debian so I can use it to run programs that aren’t available as add-ons in HA (e.g. a jellyfin server) - but it would mean I have to change my installation to move my add-ons to separate containers as well
@Davvg
@Davvg Рік тому
@@saidinesh5 I had considered the atomic Pi and a few NUCs; I decided I wanted a little more power than the atomic pi offered but didn’t want to shell out the price for a decent NUC. These USFF PCs are a pretty good middle ground for the price and the hardware you get if you buy them used. Mine is an optiplex 3060 micro w/ an 8th gen i3. Not a powerhouse, but much more capable than a Pi and not too far from the retail price of the 8gb Pi at only about $120 (used)
@saidinesh5
@saidinesh5 Рік тому
@@AndreasSpiess My beelink Z83 (intel atom z8300) box came with an activated copy of windows 10, but i installed linux + home assistant on it and never looked back. Windows worked well for "home theater usecases" (media player + my rgb lighting control script), but the 2GB ram meant I couldn't use it for much else. For < $80, it was good value. Power consumption should be less than 5W at idle i think.
@MarkSpohr
@MarkSpohr Рік тому
Useful and interesting! I have installed HA on a Pi4. First baby steps. Impressed so far. Much to learn.
@AndreasSpiess
@AndreasSpiess Рік тому
Indeed, a good product!
@tomvanhal4498
@tomvanhal4498 Рік тому
Thank you for this video Andreas. I am using home assistant for 2 years now and i am still learning Everyday. I recently added my Huawei inverter to home assistant using the modbus connection. Modbus to USB converter 7€ and it's working great. The schematic i still don't have because i don't have a meter for in and outs tot the grid. The Huawei solar was easy added under hacs. My energy monitoring is great and correct. Normaly at the end of this week i receive new digital grid meters so i can add this to my energy dashboard.
@AndreasSpiess
@AndreasSpiess Рік тому
Which integration do you use for your Sun2000 inverter?
@HiruS22
@HiruS22 Рік тому
I have a lot of D1 Mini/ESP32 boards controlling and monitoring things around the house, all programmed and running with Blynk, which is moving to a new model and closing its server at the end of this year leaving me looking for an alternative. Home Assistant looks like it’s going to be the way to go, but watching this and reading the comments makes me realise I’m going to struggle to get my head round it in the limited time I can devote to it.
@AndreasSpiess
@AndreasSpiess Рік тому
You are right, it will take time. But all other platforms have a learning curve. With your experience I would ask: How long the project will be around? Because changing a system just because the supplier stops is the most painful. In private and in business…
@anonymoususer6448
@anonymoususer6448 Рік тому
Distributing the setup over 2 RPIs... great idea. I have it all on 1 RPI4 with an external harddisk and because of that I'm running an unsupported (OS) configuration. I know I'm playing with a loaded gun. Last week I was not able to do any updates anymore and I had to do a work-around on a work-around by using another work-around to fix this. It did cost me a whole Saturday afternoon. Your video just came at the right time. I'm considering a new deployment...maybe during Christmas holidays And as usual, you solved all the hard things for us. Thank you Andreas ! /chrisV
@AndreasSpiess
@AndreasSpiess Рік тому
Reading the comments, I see that others use X86 systems instead of 2 Raspberries. Maybe also a good way. I definitively will investigate into this direction (also because Pis are hard to get).
@anonymoususer6448
@anonymoususer6448 Рік тому
@@AndreasSpiess indeed: an old latop with virtual machines which can be snapshotted. - In case disaster strikes... revert to snapshot. - If power fails... battery takes over And add an extra ESP32 to provide the RPI's GPIOs (which I use) This looks more and more appealing...
@akiko009
@akiko009 Рік тому
Thanks! I set up my home automation well before HA and even before RPi, but the latest developments are certainly making me think about redoing everything. I'm glad that I have always avoided anything that must talk to the outside world (e.g. internet based services) to work. This has enabled my setup to continue working even though much time has passed. This is my major peeve with most of the offerings today. While many can exist without outside services, to use them in an efficient manner they simply have to talk to something to download updates, store state, etc.
@AndreasSpiess
@AndreasSpiess Рік тому
My setup of course talks to the outside for installation and updates. Also for services like Radiosondy or weather forecast which need data I do not own. The rest does not need the internet with one exception: My Mailbox is still on TTN. But it will be changed soon…
@unknownentity330
@unknownentity330 Рік тому
​@@AndreasSpiess Hi Andreas, a lot of what you do is beyond the scope of my knowledge haha but it also gives me the kick up the bum to learn so your time and effort is much appreciated! Anyways, I just have a small query: I have HA setup on a RPI4. It runs great 99% of the time and my family love it. Super! However, when I set it all up I didn't know RPI4s lack a Real Time Clock (RTC). I learned HA uses NTP servers (online) to keep time thus when my internet cuts out (which rarely happens) but when it does, I lose control of devices/automations. I found a really nice digikey guide in adding a Real Time Clock to a RPI4 but apparently HA cannot use these. This leaves seemingly one solution: creating one's own NTP server. How do you keep everything running if your internet cuts out?
@AndreasSpiess
@AndreasSpiess Рік тому
@@unknownentity330 Fortunately, I do not have a lot of such cuts. But I thought that the Pi continues with the updating the clock even without internet and only needs NTP from time to time.
@unknownentity330
@unknownentity330 Рік тому
@@AndreasSpiess Perhaps my network is going down as opposed to the Internet then. I shall investigate the issue further and I'll report back when I have a definitive answer
@unknownentity330
@unknownentity330 Рік тому
@@AndreasSpiess Hi Andreas, it was indeed my network going down, not the internet. I didn't know much about NTP but I researched it a bit. Computerphile released an explanatory video about how it works too. Interesting stuff. Thanks for your information, it was a great help in diagnosing my problem
@gordon861
@gordon861 Рік тому
Thank you for that, on first watch I think I understood about 25%, but I am sure watching it through again later when not half asleep will help. I will have to dig out a spare Pi4 and stick node-red on it, it seems better than the HA unit for automation, which I have never got on with.
@AndreasSpiess
@AndreasSpiess Рік тому
Node-Red for sure is very different to HA automation. And I like it a lot!
@brainwater
@brainwater Рік тому
I'm supposed to get my home assistant yellow this week, so this is perfect timing.
@AndreasSpiess
@AndreasSpiess Рік тому
Mine also was scheduled for November. But I recently saw that they shifted it to the next year :-(
@pacolucas7512
@pacolucas7512 Рік тому
I will check this video later again, great summary
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you!
@jorgeferreira2009
@jorgeferreira2009 Рік тому
Great video Andreas. Thank you for sharing.
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@PlatimaTinkers
@PlatimaTinkers Рік тому
Excellent video, granted I have to say Home Assistant changes so bloody quickly!
@AndreasSpiess
@AndreasSpiess Рік тому
Welcome aboard the channel!
@koeiekop1973
@koeiekop1973 Рік тому
Learned some interesting things in your video, thanks again. I hope you get your energy usage up and running, it helped me getting more aware of my usage and how I could minimize it. My HA is running in docker on a Synology NAS, but the updating op HA and the add ons is indeed a bit of a hassle. I am experimenting with a virtual server on my NAS with the supervisor HA, much easier for updates indeed. I will certainly have a look at the IOTstack video! These “experiments” can take up so much of your time, but it’s so cool that you can integrate almost everything that has a powerplug:) I also used the excuse to slowly build the interface for my phone and tablets:) not sure if that will be finished in the next years😂 thanks to all the comments in your video I am also considering some kind of small PC. Maybe interesting content for another tutorials? Respect that you keep updating so frequently!!
@AndreasSpiess
@AndreasSpiess Рік тому
Because many commenters mentioned MiniPCs as an alternative, I decided to try it out.
@yekutielbenheshel354
@yekutielbenheshel354 Рік тому
Excellent! This is really great stuff Andreas! Digging into the granular details and coming up solutions is the tedious, yet important part of engineering that is often glossed over by hand wavers (marketing wonks). Making new technologies actually work properly in the real world is often much, much more difficult than it seems.
@AndreasSpiess
@AndreasSpiess Рік тому
Glad it was helpful!
@chuxxsss
@chuxxsss Рік тому
Thank Andreas, small gold this weekend. That ismy problem to the RSA key plus setup for F TruNAS scale key with Letsencrypt.
@AndreasSpiess
@AndreasSpiess Рік тому
At least something! I am convinced you will find more in the future!
@chuxxsss
@chuxxsss Рік тому
@@AndreasSpiess Son finds a gram a day.
@Johan-bb4sy
@Johan-bb4sy Рік тому
There is a HACS integration that shows the power distribution as you like it. It is called Power Flow Card, and shows kw instead of kwh.
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for the tip. I will have a look at it!
@matthiasnott
@matthiasnott Рік тому
Hat mich sehr gefreut einen (leider) ehemaligen Kollegen da zu finden - und einen krassen UKpostsr noch dazu. Respekt! Ich habe gerade mit HA angefangen - noch viel zu lernen dieser nicht mehr ganz junge Padavan hat 😊
@AndreasSpiess
@AndreasSpiess Рік тому
Als ich deinen Namen gesehen habe, habe ich gedacht: Den habe ich doch schon mal gehört! "Welcome aboard the channel"!
@matthiasnott
@matthiasnott Рік тому
@@AndreasSpiess Hat mich jedenfalls sehr gefreut. Sehr beeindruckend, was Du so gemacht hast hier. Ich habe meiner Tochter (10 Jahre) gerade heute gesagt, schau Dir mal meinen Kollegen an, der hat 400k Follower auf UKposts. Wenn Du jetzt Python lernst, mach mal Videos darüber, was Du so herausfindest :)
@patrickpaganini
@patrickpaganini Рік тому
Excellent video - thanks very much. When new to HA, even installing HACs, then installing a HACs integration via the HACs tab, then going to settings, and installing it once more via devices/integrations is far from obvious or straight forward.
@AndreasSpiess
@AndreasSpiess Рік тому
Indeed, it took me a while to learn. That was the reason for this video...
@GordieGii
@GordieGii Рік тому
Thanks for this very informative video.
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@1over137
@1over137 Рік тому
I went with a different approach as I started out before HA was a thing. Originally I was sending raw delimited text blocks over raw TCP/IP. Starting with the PI, then moving to ESP8266s. I also started with heating control. A few years back I moved to MQTT and also integrated most of the existing sensors etc with HA as it became popular. Of course, Influx and Grafana, but the core is where the magic happens. The approach I use is in Python with PahoMQTT and a custom library with the most used class: MultiTopicObservableMQTTCache. For each automation I create a Python script, pull in this class, subscribe to some topics and attach listeners to the cache. The beauty here is, I can handle multiple asynhronous sensors, synchronously. If I get notified of a motion even from the upstair hall sensor, whlie in that context I can check the last message on the solar panel power topic and assess if I need to put lights on or not... and of course vice versa when the solar panel updates and there has been motion detect within a window of time turn the lights on as they are now needed. Hopefully YT won't remove my link to gitlab: gitlab.com/paulcam/home_heating/-/blob/master/new_docker/docker-compose.yml is a good place to start as you know docker. In addition to these there are also an HA docker, DHCP, DNS, Zigbee2MQTT and a few others. I have 2 MQTT networks. "PROD" which includes all the actual 3rd party sensors and devices and "HEATING" with is just the internal state machines for the heating controller.
@1over137
@1over137 Рік тому
Almost all of my custom hardware sensors are gone now. Still an ESP8266 doing the outdoor temps and one in the boiler cupboard measuring heating pipe temps etc. They rest are SonOff temp/humidity sensors and my custom flashed smart sockets have all been flashed with Tasmota now. The only switch with custom firmware is the boiler control switch, which incorporates some safety condition software of mine I first need to intergration into a custom Tasmota before using that.
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for the link. I will haves look at your project! Home Automation is not too important for me, it just should work. So I tend to stand on the shoulders of others… BTW, I see myself going the same direction with simple sensors and switches. Tasmota or ESPhome are so simple to use these days…
@Steve61
@Steve61 Рік тому
Andreas - thanks again for another useful video. I agree with you on the frequent updates - especially those requiring a restart. However, I also know the developers are under a lot of community pressure to add new features - I was following one for an air conditioner controller and it was frustrating waiting for it to be properly integrated. It's the price you pay for free community driven software. Just on the energy dashboard - I think that number for the "house" should be KWH - it is the progressive consumption for the household throughout the day. That dashboard does not show current. For example, so far today, my house has used 13.6kWh (gross) and generated 33kWh from the solar panels, but that dashboard doesn't tell what I am drawing right now. The energy dashboard does have a lag of at least 15 minutes, so I have set up my own with additional current & cost sensors. My additional sensors show we are currently drawing 0.55kW and exporting 2.8kW, so maybe I'll turn on the dishwasher!
@AndreasSpiess
@AndreasSpiess Рік тому
I agree that we need kWh, but after the fact for analysis. For decision making, as you mention, we need kW. And all other apps I know show kW in a very similar diagram. That is probably also confusing...
@misteragony
@misteragony Рік тому
I run my HA dockerised with addons on a RPI4 8GB model booting from a SSD usb stick. I never ran into any performance issues even if it's running about 20 containers at the moment. I like the dockerized setup since it allows you to revert very quickly to older versions if needed. The only performance tweak I did was installing zram.
@AndreasSpiess
@AndreasSpiess Рік тому
So your setup is logically similar to mine. The critical stuff still runs on docker…
@Grovion
@Grovion Рік тому
I really like the agile approach home assistant is going for and don't think it is unprofessional as well. I understand that some people don't like it but there could be a good midleground for everyone: Have two upgrade channels: A "cutting edge"-channel that is just as it is now and then a stable one, where you bundle all updates of a year into one big chunck. You could for example release such an update every January and take in all updates that have been released on the cutting edge channel until november or so (so that you only put stuff in there that had some hardening time). People could then be asked at installation of Home Assistant if they want stability or fast updates (there should of course be a setting to switch beetween them as well). I think that could please both of the major user groups: People that want to be involved and get frequent updates and people that want a more stable system with less points in time with breaking changes. In fact this way the stable users profit from the cutting edge users because once the changes come to stable all the cutting edge users have already reported the major problems and hopefully most of them are already adressed once they hit stable ;)
@AndreasSpiess
@AndreasSpiess Рік тому
I would also vote vor a "stable release" for guys like me who want to use it a work horse. And a second channel (beta?) for the ones who want more.
@brainwater
@brainwater Рік тому
I was thinking the stable wouldn't be useful for me, but then I realized I'm planning on setting up smart home automation for clients, and would really value the stable version for them.
@klassichd10
@klassichd10 Рік тому
Thanks for the insights. I appreciate, that you decided to use a standard home automation system now and not a patchwork of different sytsems. According to my experience this is essential for an effecive and efficient continous work and growth. I will observe your experience with HA. Personally I am using ioBroker for years now and it runs well for me. Zigbee, Modbus, EPSHome, RFLink , Homematic, etc. But it always good to know what is going on in the home automation world. Btw. I did not start wich punch cards but with punch tape. :-)
@AndreasSpiess
@AndreasSpiess Рік тому
I used the punch tapes not for programming but for teletypes. An interesting story: In military service we got two identical tapes with random noise. One was handed over to the sender and one to the receiver. A device mixed the pain text with one "noise" tape and the other "demodulated" it. Of course, both had to start the tapes at the same place. This is why they had a number every 100 letters or so. Like that, we had a perfect encryption. Already in the 1970s ;-)
@klassichd10
@klassichd10 Рік тому
@@AndreasSpiess Thanks for this interesting insight! Crypto-people were always smart! Even with simple tools. As students we had to use these noisy teletype machines (5 track punch) to type in our Algol or Fortran programs. Every typo was painful. My first printer was a used Teletype with cylinder print head and modern 8 bit ASCII code.
@ch94086
@ch94086 Рік тому
Watching your node-red demonstration brought me a new meaning to spaghetti code. 😁 But seriously, it makes me wonder if a domain specific text format is better than graphics. Thanks for a nice video.
@AndreasSpiess
@AndreasSpiess Рік тому
I assume it depends on your preferences. I like the message approach of Node-Red and the many available nodes. Saved me a lot of time.
@PL-VA
@PL-VA Рік тому
Long time viewer, new commenter. I'm a big HA fan and you're right it's come a long way. I have it all running on single Pi4. Mine is fully containerized, and while early on there were a few issues "it just works", even when addons fail updates etc, you can restore, revert etc. I don't see the need to move workloads like nodered off - it's nicely interegrated and at least on a Pi4 runs without delays. I'm 100% agreeing with you on ESPHome - it's how I get into HA actually. However, I don't use ESPHome in the way you lay out - I compile, test etc. all my ESP8266/ESP32 projects on workstation - not the Pi. I add the IP of the HA to the ESPHome configuration and a password/secret. When the unit starts up it sends a request to HA, and the addon will issue a popup where I can enter the password to adopt (I have a notification saying I need to adopt it). The ESPHome device is then fully adopted and "just works". If I have OTA enabled, I can update from my workstation without having physical access to the devices, and the overhead (if you can call it that) on HA is minimal - it just lists the ESPHome devices and if I click on them, the device/entities associated with that ESPHome. All in all, I think you're taking it a bit further than I would - I would not hesitate to use HA in production environment but not as a single unit. That's what MQTT and other messaging systems fix. But I haven't had a real downtime even when I screw up for years. I can revert add-on updates. Yes, during a system update the sytem will reboot and not react to changes for the 20-30 seconds it's down. I'm not monitoring critical ICU patients, so production ready yes - monitoring healthcare and a nuclear power plant, no :D
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for sharing your ESPhome setup. I have to look into it. Concerning „Running a nuclear power plant“: I worked for Digital Equipment Corporation and Ken Olsen, the Founder, had the rule that his systems are allowed to run everything but a nuclear power plant!
@OmarMekkawy
@OmarMekkawy Рік тому
I got a seat in the first row ♥️😂. Thank you before watching the video.
@iamkrishnendudas
@iamkrishnendudas Рік тому
I also got one 😂
@stevesfascinations1516
@stevesfascinations1516 Рік тому
Another great video! I use TASMOTA on the S26 and love it. I also find updates on Home Assistant can blow up your setup. Using Proxmox it is easy to backup your install by cloning the virtual machine. I also backup the .yaml files just in case....Home Assistant is amazing, but you have to backup...Also MQTT is high on my list.
@AndreasSpiess
@AndreasSpiess Рік тому
Im just sitting in front of my computer tinkering with proxmox ;-)
@taoufikbadri6959
@taoufikbadri6959 Рік тому
Good job! Thanks.
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@DerTou
@DerTou Рік тому
As an alternative to Raspberry Pi for Home Assistant you could also get a used or refurbished thin client. For example I got a Fujitsu Futro S740 with Intel J4105, 8GB RAM, 16GB SSD for 44€. It should be faster than a Raspberri Pi 4 and has PSU and a small SSD already included, so you don't need any additional components to get started right away. Power draw is also pretty low, I didn't measure it myself yet but from what I read online it should be around 5W.
@AndreasSpiess
@AndreasSpiess Рік тому
Good idea. Would one with an AMD processor also work? I see a lot of s920 but no 740…
@jmr
@jmr Рік тому
Nice overview. My energy dashboard aligns with my electric company nearly perfectly. kWh is how our energy is reported here by all my inputs but you may want to use a Riemann helper to make a compatible input since yours is kW. There is also a very nice blueprint available to notify you of updates to your phone or tablet. It helpfully links to the changes and has actionable links to make updating or skipping updates very easy.
@AndreasSpiess
@AndreasSpiess Рік тому
I know the Riemann helper. But I do not like the fact that we all measure Watts (no instument measures Wh which always is calculated) and integrate it to Wh over time and then differentiate it again to get back to W. Thank you for the tip for the update function. It seems valuable.
@psilin9473
@psilin9473 Рік тому
@@AndreasSpiess well, here you miss an important point: electrical energy has a base unit of Joule(J). And because Watt is the equivalent of 1 Joule per second, the electricity company uses kWh. ( 1kWh equals 3600000 J). So in other words: energy is calculated in J and not in Watt. To go from power (W) to energy, (J) one needs to integrate. To harvest the total energy during a certain period hou only have to add the numbers of the measured time intervals.
@daveneill5358
@daveneill5358 Рік тому
@@psilin9473 Excellent explanation. I had been stuck like Andreas is on the kW v. kWh question until realizing this.
@oscargr_
@oscargr_ Рік тому
@@psilin9473 Was going through the comments just to find someone saying this. Didn't quite get what Andries meant by "kWh depicts a momentary situation" To me kWh depicts the integrated situation. The device that is on now is represented by its Watts, How much you need to pay the energy company is represented by the Watt-hours.
@psilin9473
@psilin9473 Рік тому
@@oscargr_ Watt is the unity of power. Power is momentary. kWh is an adjusted value of energy. That is what you pay for. Suppose you buy a candy bar. Then you buy an amount of energy. You can eat the candy bar within five minutes (high power device) or you can eat the candy bar during a week (low power). In both situations you payed the same amount for the energy stored in the candy bar.
@AndreasDelleske
@AndreasDelleske Рік тому
I don't even tinker much these days (a little Tasmota and energy meters here and there), but the amount of hours I am sure would have saved just by watching your videos summarizes to more than a manmonth I guess :)
@AndreasSpiess
@AndreasSpiess Рік тому
It also was quite an investment of time on this side. This is why I thought I can save it on the viewer's end...
@AndreasDelleske
@AndreasDelleske Рік тому
@@AndreasSpiess You definitely do! I also like your practical experience with your neighborhood solar project! Thumbs up!
@Reducer
@Reducer Рік тому
That was the perfect time for this video! I have a Pi with a CC2531 USB stick, and that's a pretty outdated model with bad range due to only having an internal antenna. I just got a ZigStar Stick v4 in the mail, so I was thinking about remaking my entire IoT network from scratch since I need to reconnect all devices to the new stick anyway, and my Pi is a bit of a mess of things running natively as well as in Docker. I'd like to take some time to actually get that in proper order, and try HA as well -- I've been using Node Red exclusively so far. I think I'll steal that idea with HA on a separate Pi, didn't even occur to me to try that.
@AndreasSpiess
@AndreasSpiess Рік тому
One small remark: I Vevey plug the Zigbee stick directly into the Pi. Too much noise. I connect it with a USB cable and put it away from electronics…
@ufootje
@ufootje Рік тому
nice video! I agree about the updates, releases,fixes etc. Its too much and unreliable now, it make me ignore updates and do just one or two updates a year, usually in the winter when I have time. As an automation alternative; I use small python scripts that interacts with HA through mqtt, that works really well. (if you are comfortable with python)
@AndreasSpiess
@AndreasSpiess Рік тому
I also plan to use HA mainly for the user interface and for some adapters. The rest is still Node-Red here...
@morpheusde
@morpheusde Рік тому
Hallo Andreas, das Video kommt genau zum richtigen Zeitpunkt! Werde ich mir in der Mittagspause in Ruhe anschauen. Vielen lieben Dank 73 de DG5GAF
@AndreasSpiess
@AndreasSpiess Рік тому
Da brauchst du sicher Ruhe. Es ist etwas hektisch geraten. Aber man kann Details ja auch 2x ansehen... 73 de HB9BLA
@morpheusde
@morpheusde Рік тому
@@AndreasSpiess genau, dann kapier es auch ich hihi
@JakobKobberholm
@JakobKobberholm Рік тому
Great video. Regarding Zigbee2MQTT, the answer is always more MQTT :) It will allow you to observe all your sensors over a standard protocol from third party applications. It will allow you to move between Home Assistant, OpenHAB, IOBroker or even using commercial SCADA systems and still have access to all your sensors. And making virtual devices is trivial. If a value can be read and written to from a terminal command, writing a Python script that will publish that value to an MQTT topic is around 10 lines of code, so you can easily convert your PC volume, monitor brightness or favorite web service status to an MQTT device that will Just Work(TM) in all systems, without writing custom integrations. There are already MQTT bridges for hundreds if not thousands of services and other protocols, like media players, Modbus, KNX etc and I hope eventually we can just completely move beyond the idea of building drivers/integrations into each smart home platform and have it all in the neutral MQTT layer instead.
@AndreasSpiess
@AndreasSpiess Рік тому
I am a big fan of MQTT! But for the integration of a few PIRs and switches I could live without it ;-)
@mohammedk.h.f3016
@mohammedk.h.f3016 Рік тому
Thanks... Very useful video.
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you!
@McTroyd
@McTroyd Рік тому
Put differently, I'd be glad for the frequent updates being available. One of my biggest pet peeves of commercial IOT products is the lack of a built-in updating mechanism (assuming updates are offered at all). They should definitely manage that better though. It's different to pounce on someone for a security update, than an update because someone misspelled something.
@AndreasSpiess
@AndreasSpiess Рік тому
It is much easier for the developers to decide what is a feature and what a bug. So the stable version would only get bug fixes.
@qedqubit
@qedqubit Рік тому
wow you are teaching wizdom stuff man ! i should watch this when i'm not drunk !
@AndreasSpiess
@AndreasSpiess Рік тому
Definitively!
@EdoDijkgraaf
@EdoDijkgraaf Рік тому
I think the version rant is very personal. I love to follow the progress the team brings us. I guess that is personal as well. I can’t boot up Ubuntu without sudo apt-get…
@AndreasSpiess
@AndreasSpiess Рік тому
I agree. So you would chose the beta channel and I would subscribe the stable one. As in many other projects. Not my invention ;-)
@SierraLimaOscar
@SierraLimaOscar Рік тому
Have come to the same conclusion and also run the native HAS OS on one RPi and my mqtt and node-red on another. I also think that the automation/logic workflows are more versatile and easier to troubleshoot in Node-Red, but only from a certain complexity forward. For the simple stuff HA is very good. Using mqtt as my main communication protocol for my sensors and devices also gives me a parallel/redundant way to control stuff if HA dies - which is why I prefer zigbee2mqtt (and zwave2mqtt) over the native integration. Can't wait for your video on dashboards - that is the part I am just too lazy to tackle properly. My automations are quite finely tuned, but my presentation of them is sh*t, so maybe seeing yours will give me both the inspiration and motivation to fix it.
@AndreasSpiess
@AndreasSpiess Рік тому
I will probably not make videos about dashboards. There are many specialized channels for that. And anyway, a good automation does not need a lot of dashboards ;-)
@evaldonascimento3347
@evaldonascimento3347 Рік тому
My 2 cents contribution: if you want to run esphome faster you can install it on docker over a notebook pc or a server. Once your esp card is uploaded, HA will find it as a new device. You dont need esphome installed on HA to run your esphome devices
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for the tip. Last time I tried it I was not successful…
@raspberryjo
@raspberryjo Рік тому
Nice video thank you! I have to test NodeRed integration in HA. Shame on me I have installed HA on two orangePi(s) with Armbian but I could not remember how 🙂
@AndreasSpiess
@AndreasSpiess Рік тому
A few years ago I started a word document with every installation of a new product. I quite often have to go back for details to these documents ;-)
@ivanbrunello6068
@ivanbrunello6068 Рік тому
I am a (quite) happy user of the UNSUPPORTED supervised installation: that is, installing home assistant on top of a raspbian os+docker. This allows me to have several advantages: I can run addons (and make backups the easy way), just like in native HASSOS, consolidate services (got a couple other containers running on same underloaded machine), and make some tricks not available easily in HASSOS install: my HA server cannot have usb connected and I happily have an USBIP gateway to map e.g. my Z-wave2usb adapter, and present it to Home assistant as a local resource.
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for sharing your experience!
@SAerror1
@SAerror1 Рік тому
Have you looked at OpenHAB 3 at all? 1 and 2 were quite clunky and hard to learn but I think they really nailed the UI and data model in the third major version. Both platforms have good node-red integration so you can always glue them together if you need HA to control something which OH cannot, or vice versa.
@Frem_Kra
@Frem_Kra Рік тому
Open HAB looks way more promising.
@AndreasSpiess
@AndreasSpiess Рік тому
I never used openHAB. Home Automation is not my most important topic. This is why I googled and found a 100:1 ratio. Not a very sophisticated method, I know.
@marcellomaia3451
@marcellomaia3451 Рік тому
@@AndreasSpiess The reasons you highlighted here are the ones that moved me towards Openhab. Much more stable(few releases on the stable branch) and running on a standard raspberry OS build.
@angelkato
@angelkato Рік тому
About espxxx usage. Instead espeasy, you can use tasmota Thatcher is suported by HA without need to edit yaml to configure it. Tasmota is more friendly and flexible than espeasy. Also HA detect and allocate function automatically. Ex if you select dht11 tasmota over HA create topic and signal temp, humidity, last boot ... have a look to see if it's more convenient for you. Nice video as usual 👌
@AndreasSpiess
@AndreasSpiess Рік тому
I agree that Tasmota is a good project. I thought I even mentioned it in the video.
@HandeeGaming
@HandeeGaming Рік тому
Hey Andreas, the automations are much more complex than you suggested in HA. There is indeed a trigger for an automation(the IF THIS part), but you can then have some quite complex loops happening. You should try exploring it a bit
@AndreasSpiess
@AndreasSpiess Рік тому
Maybe I will try them. When I tried the YAML version, the learning curve was too steep for me. Obviously they added an easier way.
@djashjones
@djashjones 10 місяців тому
I'm giving HA another try after 3 years. Currently using Hubitat. Got fed with updating HA and something always breaking. I'm hoping it's better now. I have also learning with other devices I have to update later and see if other people had any issues. QA for software releases has been dropping in the past few years. Pi's are great for testing but for production nothing beats a low power mini pc. My HA setup is on a cheap N100 pc with HAOS and backed up daily on my NAS. For testing I can always run a docker image on my NAS.
@AndreasSpiess
@AndreasSpiess 10 місяців тому
HA made a long way and is now the defacto standard supporting nearly everything...
@JamesMyatt1
@JamesMyatt1 Рік тому
For your setup , zigbee2mqtt is definitely better since it'll integrate with NodeRED directly over MQTT rather than also going via HA. If you already had everything (or almost everything) on your HA machine the ZHA might be better.
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for sharing! For the moment, I see it similarly.
@JamesMyatt1
@JamesMyatt1 Рік тому
​@@AndreasSpiess Also, I would (or rather do) run Zigbee2MQTT on the same machine as Mosquitto, etc, so that part of my smart home doesn't go down when the network does or I have to restart HA.
@AndreasSpiess
@AndreasSpiess Рік тому
@@JamesMyatt1 For the moment, I use Zigbee2MQTT, too. We will see in the future if I will change.
@Wijnsema
@Wijnsema Рік тому
Hello Andreas, njce to see a new video again! My question: what is the added value of HA if you already have IOT stack with Node red, MQTT, a database and Grafana? With these services you have top notch solutions for information exchange (MQTT), automations (Node red), logging (influx or Postgress) and visualisation! If you need remote control you can easily build a UI in Node red as well. Saves you all the trouble of installing and maintaining HA with all its shortcomings. My philosophy: KISS, keep it simple stupid. Well, as simple as possible that is...
@AndreasSpiess
@AndreasSpiess Рік тому
I like the Dashboards, kiosks, and the Smartphone interface. In addition, it offers many add-ons and integrations for particular problems (like a ready-made interface for my Huawei Inverter). We will see which I will use in the long run...
@Mooooov0815
@Mooooov0815 Рік тому
For anyone who is getting into homeassistant and is also struggling with Raspberry PI availability: search for used thin clients by Fujitsu, Lenovo or other big vendors. They are usually easier available through IT refurbishment companies and are cheaper than current raspberry Pi’s. I have one with 8GB Ram, a 32GB SSD and a quad core Intel Celeron CPU; the system idles around 5W. This system cost me 70€ as opposed to the cheapest RPi 2GB that is available right now for 129€
@AndreasSpiess
@AndreasSpiess Рік тому
Many others also suggested the same. So I decided to try it. Do you have a recommendation for HW for me?
@drbytes68
@drbytes68 Рік тому
I've been struggling with the same question.. zha or zigbee2mqtt. I run the latter for the moment but binding to devices/groups can be hit or miss and frustrating. I spent many hours on trying to get it to behave. I'm coming from deconz and was tired of the deconz software. In hindsight it was good enough. Nowadays I'm thinking of going back to a dedicated hub since I could place that in the mddle of the house/network. I have the z2m container on a 1u in the garage so it's not ideal to have the coordinator several meters and walls removed from the actual meat of the mesh.
@AndreasSpiess
@AndreasSpiess Рік тому
Indeed we always have to consider the propagation of these radio waves. If these signals are weak, the link is not reliable.
@robingerritsen862
@robingerritsen862 Рік тому
Hallo Andreas, Cooles Video mit guter Erklärung! I use the HP ProDesk 400 G4 Mini PC. This has low power consumption and is a good alternative to the Raspberry Pi. I have configured this with Proxmox so I can also virtualize other services such as an adblocker. Should anything break, everything can also be easily restored. For the Huawei converter, you can put a Solar-Log in between. This allows you to still read the Huawei data from Home Assistant.
@AndreasSpiess
@AndreasSpiess Рік тому
I currently installed an add-on that reads the data from the Huawei directly into HA. I just tested it and it looks ok. Now I have to decide which sensor values I want to store. And: Watch the next video ;-)
@sinisternerd6664
@sinisternerd6664 Рік тому
Raspberry PI's are great, but I think you'll find that you quickly outgrow them if you do a lot in HA, at least I did. There are some great tools to run ProxMox on an old laptop, small formfactor pc, or any old computer. There are of course several other ways to run HA on a full PC. But HA is a one line install in the ProxMox terminal. This will resolve things like slow compile times and provide a much more responsive system at the cost of power consumption. And ProxMox offers some benefits like Snapshotting before updates and full VM backups.
@AndreasSpiess
@AndreasSpiess Рік тому
Many other commenters also mentioned that they use a miniPC. So I decided to try it, too.
@166912
@166912 Рік тому
Hi Andreas, For energy visualization, let me suggest to check out the Tesla power card in HACS. Works great in my case and is nearly real-time.
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you for the tip!
@alexanderskorokhodov9453
@alexanderskorokhodov9453 Рік тому
Hello Andreas, Thanks for this video and shared experience. Let me advise the idea for a further HA development :) What about failover clustering setup for home automation using RPi as servers? It might be Proxmox-like virtual environment, running LXC (not Docker) containers with HomeAssistant installed, with hyper-converged (might be done with ZFS, for instance) or other suitable type of common storage. Not certain it can be done on RPis, but the idea looks challenging (at least for me), and might have its own pros in comparison with your design. WDYT?
@AndreasSpiess
@AndreasSpiess Рік тому
Because many others suggested to use a miniPC I decided to try it out. However, I would not go the cluster way. My home automation never failed because of a HW issue. And I invested in an UPS for the most important systems in my home. But I am open for suggestions on my planned setup. Low cost and low energy consumption are the most important things for a Raspberry replacement.
@chuxxsss
@chuxxsss Рік тому
Looks like the Nucc with be HA. I used those cards. Maybe monitor the power.
@AndreasSpiess
@AndreasSpiess Рік тому
I do not unterstand :-(
@atvarsgr
@atvarsgr Рік тому
I recently installed HA Supervised on MacMini M1 (16Gb/512Gb) via UTM/Debian/Docker. MacMini M1 regarding power consumption is very close to RPi4 (only around 6-8W) but incomparably more capable machine compared to RPi. My MacMini M1 also runs Selenium web scraping scripts (reads NordPool electricity hourly prices), stores them into MySQL database to be used in Home Assistant automations. I also plan integrate/to control my 6 security cameras as well by HA, to stream video to phone. In my opinion MacMini M1 is one of the best options for Home automations, very capable, small, universal (can run everything you might think of) and burns very few watts of energy.
@AndreasSpiess
@AndreasSpiess Рік тому
Seems to be an interesting solution! I am not in Macs, so I decided to buy a used thin client PC with a similar goal. I am curious on how it holds up against my two Pis.
@atvarsgr
@atvarsgr Рік тому
@@AndreasSpiess was considering Intel NUC with newest 12th gen processor, but at the same performance, M1 is still consuming 2x less energy. And for device running 24/7 it is an important factor.
@nerdwerx2292
@nerdwerx2292 Рік тому
Hello Mr S! I really love your beverage to wait time ( dwell time) scale and recommendations 🤔 10 mins = GRAB BEER! 🤔🤣🤣
@AndreasSpiess
@AndreasSpiess Рік тому
Precise definition! I was not able to define it as good ;-)
@nerdwerx2292
@nerdwerx2292 Рік тому
@@AndreasSpiess Ah Good sir, that is where you are wrong.I understand it perfectly!😁👍🏼
@joshweir3806
@joshweir3806 Рік тому
Over the last 5 years I’ve switched from pi3 to pi4 to intel NUC i3 to now having the minisforum b550 and intel nuc setup running proxmox - HA as VM, everything else running in LXC containers Like others have said the mini-pc’s when idling still very economical to run and far more power than we can get from a Pi - looking to redeploy the pi’s with rhapsody for remote satellites In regard to energy - With ginseng inverter I’ve got an AC output that shows me watts and the KWh total consumption today as separate sensors so I can see watts available
@AndreasSpiess
@AndreasSpiess Рік тому
Many others suggested to use some sort of miniPCs. So I decided to try it. Do you have any suggestions for me?
@rancidbeef582
@rancidbeef582 Рік тому
I only use Home Assistant for the GUI, accessible from the web or my phone. For the "brains" I use a custom Python program that uses an Message / Actor pattern to control everything. And most all devices have some sort of MQTT gateway someone has written that integrates well with my Python code.
@AndreasSpiess
@AndreasSpiess Рік тому
So your approach is somehow similar to mine. I also mainly use HA for display and interactions.
@PhG1961
@PhG1961 Рік тому
Interesting and usefull !
@AndreasSpiess
@AndreasSpiess Рік тому
Glad you think so!
@Mimamau
@Mimamau Рік тому
Currently running iobroker, but will look into HA.
@AndreasSpiess
@AndreasSpiess Рік тому
iobroker also seems to be a good product. Maybe less used these days (compared to HA).
@peli71
@peli71 Рік тому
My advice: use a reliable platform instead of raspberry. A NUC, like a Dell Optiplex for instance, in combination with Proxmox gives you a much more reliable platform and the option to install multiple virtual machines. And from an energy usage perspective: such a platform consumes less than several pi’s
@JohnMayfield-NS
@JohnMayfield-NS Рік тому
This is the way I went. Also lets me separate out things like mqtt, node-red, etc in their own lxc/container, making HA a little more light. Plenty of machine left over for running Pi-Hole and a few other things. Bonus is auto-back ups once a week so if anything goes wrong update wise I can roll back quickly - but a bad update hasn't been an issue for me for a while.
@AndreasSpiess
@AndreasSpiess Рік тому
Many others advocated for that solution. So I bought two used thin client PCs (Intel and AMD) for playing around, installed Proxmox and HA. Now I am stuck with Grafana container on the Intel platform ;-) It does not like the I386 manifest
@JohnMayfield-NS
@JohnMayfield-NS Рік тому
Interesting.. I've only used grafana inside HA but I've been thinking of moving it to it's own promox container... good to know about this issue!
@AndreasSpiess
@AndreasSpiess Рік тому
@@JohnMayfield-NS It seems to work now. I had to use a different debian version.
@JohnMayfield-NS
@JohnMayfield-NS Рік тому
I should have thought of that. I've run in to that with a few things (other programs). Recommends to use ubuntu, I put on a new ubuntu, nothing works. Put on older ubuntu, works for. (for example). Good to know!
@janisvaskevics93
@janisvaskevics93 Рік тому
Great video! I also struggled with HA Docker. Could not comprehend back then why would i need Docker for this. Just not my favoirite. I wanted to just run "sudo apt install homeassistant" on my x64 Intel Atom home server.
@AndreasSpiess
@AndreasSpiess Рік тому
How much power does your server consume? Maybe my fears are wrong.
@janisvaskevics93
@janisvaskevics93 Рік тому
@@AndreasSpiess it is a NAS machine with 9w Atom cpu. I also run many little things on it. I did not want to use Raspberry for that. Also, my HA install is just for fun and currently only controlling ventilation and some monitoring.
@nonsuch9301
@nonsuch9301 Рік тому
An interesting video for an experienced user with complex requirements. For those of you who have simpler requirements I would ask the simple question : "Do I actually need this ?" . Do you need to run HA in two flavours over two machines : No. Do I need NodeRed to create my automations : I would say No, HA's own automation GUI has become more capable and honestly most people only have simple requirements. If you know that is not true for you then fine try NodeRed , but only after knowing the built in tools are inadequate. Also , if you are starting out , you can make your life a LOT easier by choosing your products (switches, sensors etc ) because there alreday is a native addon/integration to support them. I don't know why HA channels are always showing people dismantling electronics and soldering stuff prior to flashing them - if you are into that then great but most people don't have the skills/interest/equipment and it just deters them from trying HA. In this specific case there is a HACS integration for Sonoff ( it has had its problems recently , but at least there is no need to get a soldering iron out ). I do absolutely agree with you about the awful change control situation with updates in HA , it is frankly a shambles and really needs sorting out.
@AndreasSpiess
@AndreasSpiess Рік тому
I agree that most people probably only need HA. However, this channel is not for "most people". Most of us are a little bit nerds ;-)
@the78mole
@the78mole Рік тому
The energy view in HA is correct. It is always showing the total energy for the current view, e.g. if you select the day, it shows the complete energy for the day (up to now or the wohle day in previous days). If you want the apparent power, you need to put it simply on your own dashbaord with numbers or graphs or use graphana for the graphical representation.
@AndreasSpiess
@AndreasSpiess Рік тому
I agree. However, as a user I am not too much interested in the overall energy produced up till now to decide if I want to start the washing machine. This is why all inverter apps I know show power in this chart and provide other charts for energy (with different aggregations like day, week, or month).
@the78mole
@the78mole Рік тому
@@AndreasSpiess I totally agree. Even if the display is correct, the power would more interesting, also to me, than the total energy. Therefore I used display modules with ESPhome at my front door and at my desk, to show me live power and other interesting values :-)
@JamesMyatt1
@JamesMyatt1 Рік тому
I think there's a frontend piece in HACS that provide the power view. The Energy dashboard is really for comparing different periods, rather than a live view.
@the78mole
@the78mole Рік тому
@@JamesMyatt1 You are right. The front-end module in HACS is called power flow card and looks exactly the same as the energy distribution card on the energy page. Thanks!
@JamesMyatt1
@JamesMyatt1 Рік тому
Finally on this topic, most utility meters only show total net energy consumption and only provide updates at low frequency (e.g. smart meters are half-hourly at most), so very few installations will have live power measurements. If you have a solar inverter or consumer access device (CAD) then maybe you get instantaneous electrical power measurements, but that's a minority of homes and doesn't help you with gas (or water). So, like I said, the energy dashboard is specifically for looking at long term consumption trends, which is applicable to everyone, and the power flow card (or any entity card) will show the live consumption rates on any dashboard, if you have them.
@catalinalb1722
@catalinalb1722 Рік тому
Hello Andreas, can you make a video about adding a remote controlled heating thermometer knob (Bluetooth or Zigbee depending on what's possible) and a gate opener? How can we access HA from outside the network?
@AndreasSpiess
@AndreasSpiess Рік тому
This topic is too specific for my channel :-( Maybe google knows?
@leithgrifoni1849
@leithgrifoni1849 Рік тому
Hello! Please keep us updated with the energy integration! I live in Tessin and am looking at getting a Huawei solar system, do you think it is good?
@AndreasSpiess
@AndreasSpiess Рік тому
We like it. Maybe you watch my videos on how we built our PV system.
@talesmaschio
@talesmaschio Рік тому
Hello Andreas! Thank you for another excellent video. Have you considered using a more powerful server with a virtualization tool like VMware to power all your project needs? It would make configurations much simpler. I’m sure you’re aware that such servers can be found used for very low prices. I myself use an old Lenovo TS-150 Xeon based server that is very very silent, and easily runs everything I need. The only downside is its size, much bigger than your two small computers.
@AndreasSpiess
@AndreasSpiess Рік тому
The bigger would not hurt me. But the power consumption would. Anyway, many other commenters mentioned similar solutions. So I decided to try this route to find out how many projects I can use with Intel or AMD architectures.
@thesimbon
@thesimbon Рік тому
Instead of 2 rpi4 I use a mini pc with j4125 and proxmox: 1vm hassos and another one with extra software. Nodered and zigbee2mqtt can be run directly in the addons. If you like pihole you could consider adguard addon that works the same
@AndreasSpiess
@AndreasSpiess Рік тому
Many others suggested your solution. So I decided to try it!
@thesimbon
@thesimbon Рік тому
@@AndreasSpiess from a power consumption perspective I got 0.05 kWh dayly increase from a rpi3, but I got more cpu power, 8gb of ram and 128gb ssd and I added another 500gb sata ssd I had around for extra storage if needed (since it fits inside the case). I also bought a 12v 100w UPS with LiFePO4 battery that powers mini computer and router for 3.5h, this way I removed all wall power supplies.
@AndreasSpiess
@AndreasSpiess Рік тому
@@thesimbon Thank you for the info! I ordered a Fujitsu and a Lenovo thin client PC... UPS is already here 🙂
@TheH3nn3
@TheH3nn3 Рік тому
I think one of the biggest problems for now is the availability of rp4. Its too expensive or impossble for potential new users (without knowledge of VMs) to try HA. And as always: Thank you for the video.
@AndreasSpiess
@AndreasSpiess Рік тому
I agree with the availability. With your comment and many others I decided to try an Intel or AMD miniserver…
@JohnMayfield-NS
@JohnMayfield-NS Рік тому
Good video, only part I disagree with is feature updates/updates/breaking changes. HA is evolving pretty fast now and most of the updates include very useful additions, which is usually followed by updates and fixes. Doing them every 6 months or so would mean putting in more features all at once, more potential problems all at once, and much more potential for a mess, imo. Breaking changes tend to me relatively minor, or notice of changes well in advance, or moving things from yaml to interface (which is done automatically for the most part). For example the formatting for mqtt changed but there was 6 months notice before it will be depreciated and no longer function. Fixing the format for my 30-something entries (thanks, weather station) took all of about 10 minutes. There's a certain amount of OCD for me in seeing an update and doing it right away, but there's certainly no requirement to actually do them if a breaking change is going to be an issue. With Proxmox automatically backing up my vm I have a bit of a yolo attitude to updating because I can just restore back, but I haven't had to yet (year+ of running HA this way)
@AndreasSpiess
@AndreasSpiess Рік тому
So you would be a typical candidate for the beta channel. And I would be one for the stable channel… On which architecture do you run Proxmox? Because of many comments I would like to try it on a AMD or X86 system
@nixellion
@nixellion Рік тому
Internal HA Automations are now capable of full IF - ELSE IF - ELSE logic, as well as CASE logic, with introduction of nodes like Choice and If-Else. And UI got less cumbersome to work with, now that they added collapsible things and better titles, etc. It is still easier to work with large logic trees in NodeRed, but HA native automations made a huge step forward and can be used for a lot more now. If previously "IF ELSE" logic was a complete blocker for a lot of things (to be fair, templates could be used to workaround that but it was far from intuitive) - now it's purely about which one is easier to understand and manage. As someone who works with different node editors a lot I also think that NodeRed's implementation is actually quite far from being comfortable, it is still very techy and I often keep scratching my head about how to do this or that in NodeRed, something that would've been easy and intuitive in most other visual programming and other node editors out there. Feels like there is an open niche for user-friendly newbie-friendly automation node editor. Big con of NodeRed is that it's UI is a pain to work with on mobile, it's practically unusable, unlike Hass native automations. I often find myself needing to make a quick adjustment to some automation when I'm away from PC or laptopt, and it's not hard to do with HA automations, but it's practically impossible to do with NodeRed.
@AndreasSpiess
@AndreasSpiess Рік тому
I agree with your judgment about the new features in HA and the mobile node-red. I do not program on mobile devices. I need at least 3 big screens for my work ;-) I would not consider my usage of node-red "beginners" and I think, the new HA functionality is already a good thing for beginners.
@nixellion
@nixellion Рік тому
@@AndreasSpiess I have 3 big screens, and I even have a secondary screen for my laptop :) And still, as I mentioned, I was not talking about 'programming' the automations or doing serious work. It's more about when you need to make a quick adjustment to something that you didn't foresee like RIGHT NOW and for whatever reason can't just go up to PC or laptop, or maybe you're not home and you need to tweak automation for someone who is home, wife, parents, etc. I was in a situation where my light automation was causing problems for my mom who was staying with our kid while we were away on vacation, and I had to go all the way back from the beach to hotel room because it was in NodeRed and I could not even simply turn it off temporarily. I mean node-red kind of can be sort of used in landscape mode but even then it's unbearable. So it's not so much about beginners vs non beginners, but about overall UI and UX.
@sledgeHammerRulez
@sledgeHammerRulez Рік тому
Ooh Andreas I agree with your vision on updates (not so stable any more) and setup very much! Great minds think alike :p? I had a supervised setup but HA complained for the latest update because portainer was installed (which is considered not save). I made a FB discussion in the HA group (see: Please do not turn into Apple ..) and got a lot of support (and also crap reactions). I will go to the core installation (hopefully it stays active) and link NR like you propose. I do have a problem with my Zigbee2MQTT on the other Pi: all works but the entities are not updated in HA. Any ideas?
@AndreasSpiess
@AndreasSpiess Рік тому
So far, Zigbee2MQTT works fine here. But I changed to a new dongle with more memory
@EvenTheDogAgrees
@EvenTheDogAgrees Рік тому
Better title than the first one. Less clickbatey. Better. :)
@AndreasSpiess
@AndreasSpiess Рік тому
:-)
@bbjunkie1023
@bbjunkie1023 Рік тому
The energy dashboard is really difficult to get working (I still cant get mine working!). The reason they use kWh is because it's measuring energy consumption the same way your utility meter does. Try the "Riemann sum integral" integration addon to convert your watt/kilowatt usage to suitable kwh units.
@AndreasSpiess
@AndreasSpiess Рік тому
I use kWh, too. But in the evening. During the day, for decision-making (can I start the washier), kW is a better thing for me.
@Tfmt100
@Tfmt100 11 днів тому
Hi! Your content is always the best! I'm struggling to find content about tasmota mqtt entitys without standard device class on HA (like MPU 6886 accelerometers/Gyros) and so, those entitys cant be shown on statistics with graphics. Could you give me some hint about how to solve it?
@AndreasSpiess
@AndreasSpiess 10 днів тому
This seems to be a very specific question. I do not know the answer (I use InfluxDB and Grafana for my statistics)
@paullacatus8975
@paullacatus8975 Рік тому
Nice and informative video as always. Trying to connect Home assistant to a node red instance running in a container from IoTStack as it is your setup also I had a surprise that the node for connecting Home assistant websockets ask for node red 3.0 and the version in IoTstack that is up to date, as far as I know, is only 2.2.2. Have you had this issue ?
@AndreasSpiess
@AndreasSpiess Рік тому
No. And I checked right now: I run Node-Red 2.2.2
@mauriziocolella8150
@mauriziocolella8150 Рік тому
Do you know SunSpec open protocol for interoperability between devices (modbus)? You can access many log parameters from your PV inverter to integrate it in HA.
@AndreasSpiess
@AndreasSpiess Рік тому
No, I do not know it. For the moment it seems that all manufacturers use their own protocol. Let's hope this will change in the future. Still, I have integrated my PV into HA.
@kbovis
@kbovis Рік тому
Andreas you are a mind reader. I have spent the last week struggling with HA in a container and slowly coming to the realisation that I needed the OS version.. but is it worth the cost and the agrovation of trying to integrate with my IOTStack. You've shown me that it is. Thank you.
@AndreasSpiess
@AndreasSpiess Рік тому
Many commenters recommended to use an old thin client PC and proxmox instead of 2 Pi4s. This is what I will try (to save my Pi4)...
@kbovis
@kbovis Рік тому
@@AndreasSpiess Yes, I'm looking at a refurbished Zotac Ci320 Quad Core Mini Desktop PC 8GB RAM 256GB SSD for £150, about the same price as a used Raspberry Pi4 on e-bay at the moment! I need to save my Pi's🙂
@AndreasSpiess
@AndreasSpiess Рік тому
@@kbovis I went the cheapo way and ordered a used Thin client PC for 40 dollars. I will see if it is strong enough for HA and the IOTstack
@user-jm8ho2hy8g
@user-jm8ho2hy8g Рік тому
I am running HA on my proxmox server and it is super easy to install HA as a vm. There are even scripts on github to do this. The nice thing is I can pass usb devices to the vm and add things like zigbee and zwave
@AndreasSpiess
@AndreasSpiess Рік тому
Many others also mentioned that it is a good thing to use a miniPC and proxmox. So I decided to try it. What kind of HW do you use?
@RomanBaeriswyl
@RomanBaeriswyl Рік тому
If your Huawei device supports ModbusTCP, you can very easily integrate it in Home Assistant without any other addons. Modbus and Modbuc/TCP are natively supported in HA. I just added my heatpump via ModBus/TCP to Home Assistant to show all sort of graphs and switch modes, adjust the temperature offset or switch to vacation mode entirely.
@AndreasSpiess
@AndreasSpiess Рік тому
Good to know. I still hope I find an integration which does also the mapping. But maybe I have to fall back to your proposal.
@MatthewN8OHU
@MatthewN8OHU Рік тому
You could use the Supervised version on Raspberry OS, which allows the use of add-ons, which is probably the way I will go with on my second Home Assistant installation which will be running Frigate, Deepstack, and DoubleTake for cameras. I'll probably use the Remote Home Assistant integration from HACS to manage the pair of servers.
@AndreasSpiess
@AndreasSpiess Рік тому
I know but I decided to go with their OS. As said, I fear they will mainly support their OS. Otherwise it would make no sense to have one for them.
@MatthewN8OHU
@MatthewN8OHU Рік тому
@@AndreasSpiess Their whole system is container-based, even on the OS, but the majority of new users are going to have the easiest time getting started if all they have to do is flash an image and point a web browser to a local IP address.
@Alan_UK
@Alan_UK Рік тому
Excellent Andreas. I've been using Domiticz because back in 2017 it seemed easier to install (Docker) and configure but with little development and a broken mqtt2zigbee I thought of moving to HA. Domiticz runs on a Pi 4 + SSD along with some other apps like a FTP server, InfluxDB, Grafana. Portainer, mqtt2zigbee. I was going to go the HA Docker route but your video seems to not recommend that. Do do you think I could run HA native on a Pi 2B or 3B using just SD card and linked to the Pi 4 running the other systems (with Docker / IOTStack)?
@AndreasSpiess
@AndreasSpiess Рік тому
I do not use Pi3 unless I have no more Pi4 or if power/heat is an issue. For sure I would not go lower than a Pi3. Just not enough memory for such applications. Others use dockerized HA and are happy with it. So maybe I just was unlucky…
@TheSmartGerman
@TheSmartGerman Рік тому
Hello Andreas, for your ESPHome compile time "problem". You can run ESPHome on a local PC to and update / compile it on this machine. I have to use this method for one project, because it can't compile the code for the ULP core of the ESP32 (only works on x86 compiler). I did a batch script to xcopy the esphome data to a temp drive, run comile & upload and delete... :P
@AndreasSpiess
@AndreasSpiess Рік тому
Thanks for the tip!
@TheSmartGerman
@TheSmartGerman Рік тому
@@AndreasSpiess I installed samba-share add-on to easy access the files.
@jyvben1520
@jyvben1520 Рік тому
Best update option is letting the user select which update item(s) to run ... but that might be too difficult as in "is the current installed HA able to run the upgrade", always updating all makes the "playing field" simple. the tester/developer (before distribution) has only to test against the latest base HA os.
@AndreasSpiess
@AndreasSpiess Рік тому
I agree that two releases (stable and beta) need more discipline for developers.
455 Matter and Thread: The New Home Automation World (Tutorial)
19:12
Andreas Spiess
Переглядів 79 тис.
I Bought a Recording Jammer. It’s Legal.
14:00
Linus Tech Tips
Переглядів 950 тис.
BRAWLER MUTATIONS WILL BREAK THE GAME! - Brawl Talk
09:34
Brawl Stars
Переглядів 25 млн
You’ve Never Seen A Race Like This 🚀
00:21
Red Bull
Переглядів 38 млн
15 Home Assistant Tips You MUST Do
14:28
Everything Smart Home
Переглядів 305 тис.
#406 Enocean: Energy Harvesting Switches and Sensors
14:58
Andreas Spiess
Переглядів 74 тис.
How does NB-IOT and CAT-M1 / LTE-M compare to LoRaWAN (Tutorial)?
21:58
Andreas Spiess
Переглядів 55 тис.
Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Переглядів 146 тис.
10 Reasons You Should Be Using Home Assistant
10:21
Everything Smart Home
Переглядів 82 тис.
Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Переглядів 189 тис.
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 709 тис.
Connecting Victron to Home Assistant using MQTT
17:38
Melon Monkey Garage
Переглядів 7 тис.
Understanding Abstraction is Very Helpful in Electronics and Computing
16:50
Зачем вы показываете ноутбук в аэропорту?✈️
0:29
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 752 тис.
Геймер с самым быстрым интернетом
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Переглядів 389 тис.
Зачем вы показываете ноутбук в аэропорту?✈️
0:29
NOTHING PHONE 2A - НЕОБЫЧЕН ВО ВСЕМ!
30:39
DimaViper
Переглядів 52 тис.