← Back
Mischa Vandenburg February 19, 2024 1h 27m

🏠 Kubernetes Homelab - Deploying Home Assistant - Neovim

Read full transcript 54 segments
  1. live don't expect to be doing much live don't expect to be doing much talking today but I uh think I haven't talking today but I uh think I haven't talking today but I uh think I haven't been I haven't streamed for quite a been I haven't streamed for quite a been I haven't streamed for quite a while and I was about to install home while and I was about to install home while and I was about to install home assistant on my my kubernetes cluster assistant on my my kubernetes cluster assistant on my my kubernetes cluster and I fig figured I would just um stream and I fig figured I would just um stream and I fig figured I would just um stream the process I've been tinkering a lot the process I've been tinkering a lot the process I've been tinkering a lot with the home lab lately and it's really with the home lab lately and it's really with the home lab lately and it's really coming together and um starting to get coming together and um starting to get coming together and um starting to get really satisfied with really satisfied with really satisfied with it and one of the things that I had been it and one of the things that I had been it and one of the things that I had been thinking about for quite a while is the thinking about for quite a while is the thinking about for quite a while is the home assistant and today I actually home assistant and today I actually home assistant and today I actually installed my home wizard uh installed my home wizard uh installed my home wizard uh sockets uh you have this P1 Monitor and sockets uh you have this P1 Monitor and sockets uh you have this P1 Monitor and you have these energy meters like these you have these energy meters like these you have these energy meters like these I have a a few of those installed I did I have a a few of those installed I did I have a a few of those installed I did that today I've that today I've that today I've been um postponing to do that for quite been um postponing to do that for quite been um postponing to do that for quite a long time but finally I had some time a long time but finally I had some time a long time but finally I had some time today so I uh it's working on my app I today so I uh it's working on my app I today so I uh it's working on my app I can see the power usage in my on my can see the power usage in my on my can see the power usage in my on my mobile phone but I want to have it in my mobile phone but I want to have it in my mobile phone but I want to have it in my uh kubernetes cluster of and how I'm going to do it is I'm going and how I'm going to do it is I'm going to be installing home assistant home to be installing home assistant home to be installing home assistant home assistant and they supposedly have a assistant and they supposedly have a assistant and they supposedly have a Docker image for that Docker image for that Docker image for that already so I'm uh I'm wondering how it's already so I'm uh I'm wondering how it's already so I'm uh I'm wondering how it's how this is going to go I have no idea I how this is going to go I have no idea I how this is going to go I have no idea I uh I haven't tried this I I haven't

  2. uh I haven't tried this I I haven't uh I haven't tried this I I haven't tried in my staging cluster I'm just tried in my staging cluster I'm just tried in my staging cluster I'm just going going going to figure it out as I go along and we'll to figure it out as I go along and we'll to figure it out as I go along and we'll see what happens so I'm just going happens so I'm just going to turn on the screen keys coaster oh I'm seeing some errors here coaster oh I'm seeing some errors here in my streaming set in my streaming set in my streaming set settings we just try to fix that we just try to fix that first I'm streaming in 4k and in first I'm streaming in 4k and in first I'm streaming in 4k and in expecting it's expecting 2K expecting it's expecting 2K expecting it's expecting 2K apparently apparently apparently um how do I configure that even even I don't think I can like where can I I don't think I can like where can I I don't think I can like where can I configure configure configure my sorry this is just really messy I'm my sorry this is just really messy I'm my sorry this is just really messy I'm just um improvising as I go along but H just um improvising as I go along but H just um improvising as I go along but H how is the video looking is it okay am I how is the video looking is it okay am I how is the video looking is it okay am I coming through all

  3. know key know key Coster let's open that Coster let's open that Coster let's open that and start casting the and start casting the and start casting the keys start casting okay now you should be able to casting okay now you should be able to see my see my see my keys and I have a couple of cleaning up changes I have a couple of cleaning up changes here just commit that first I think I think I can use first I think I think I can use the homar as a starting point actually actually home assistant oh while I'm at it let me assistant oh while I'm at it let me deploy the name space deploy the name space deploy the name space first I have that in a separate

  4. repo repo name name name spaces I'm going to copy this home assistant that is now added so when home assistant that is now added so when I commit this this should deploy the new I commit this this should deploy the new I commit this this should deploy the new home assistant name deployment replace everything that's deployment replace everything that's called home r with home called home r with home called home r with home assistant

  5. tag 2024 4.2 that seems like a good tag 2024 4.2 that seems like a good version to 24.2 hey Conrad thank you very much for 24.2 hey Conrad thank you very much for that kind that kind that kind comment I'm glad that my content is comment I'm glad that my content is comment I'm glad that my content is providing some value to you so thank you providing some value to you so thank you providing some value to you so thank you very much shame you can't stick around very much shame you can't stick around very much shame you can't stick around but that's okay see you in the next but that's okay see you in the next but that's okay see you in the next one um my YouTube streaming software is one um my YouTube streaming software is one um my YouTube streaming software is saying that I should adjust the saying that I should adjust the saying that I should adjust the resolution uh but you seem to be able to resolution uh but you seem to be able to resolution uh but you seem to be able to view it already could someone please view it already could someone please view it already could someone please confirm that you can actually see my confirm that you can actually see my confirm that you can actually see my video and that it is working as you streaming is uh something very new to me streaming is uh something very new to me still it is uh something I haven't done still it is uh something I haven't done still it is uh something I haven't done much much much so forgive me for any mistakes I make or so forgive me for any mistakes I make or so forgive me for any mistakes I make or if the quality is not as if the quality is not as if the quality is not as expected um where was I I am configuring expected um where was I I am configuring expected um where was I I am configuring the container Port so which Port the container Port so which Port the container Port so which Port does uh the docker does uh the docker does uh the docker container expect all looking fine well

  6. container expect all looking fine well container expect all looking fine well thank you very much thank you very much thank you very much [Music] variables variables environment here we go environment environment here we go environment environment here we go environment variables all right see you later Conrad variables all right see you later Conrad variables all right see you later Conrad thank you for joining in hey in hey Daniel that's nice to see you ah Max you ah Max 720p that's something I'll have 720p that's something I'll have 720p that's something I'll have to fix but maybe I should not do that to fix but maybe I should not do that to fix but maybe I should not do that here on [Music] [Music] stream stream stream I'm I'm going to make a short attempt I I'm I'm going to make a short attempt I I'm I'm going to make a short attempt I promise I'll just try for a few promise I'll just try for a few promise I'll just try for a few minutes um because if you look here this is why um because if you look here this is why my the YouTube thing and here it's my the YouTube thing and here it's my the YouTube thing and here it's saying an error where the it's saying an error where the it's saying an error where the it's expecting 4 I'm sending 4K and it's expecting 4 I'm sending 4K and it's expecting 4 I'm sending 4K and it's expecting 2K but I have no idea where I expecting 2K but I have no idea where I expecting 2K but I have no idea where I can set this expected

  7. resolution no not exit the stream it resolution no not exit the stream it can't be that you can only stream in 2K can't be that you can only stream in 2K can't be that you can only stream in 2K right can't here 2K available there all right here 2K available there all right well I'm going to save that for another well I'm going to save that for another well I'm going to save that for another day and I'm just going to get going on the okay thank you very much that you the okay thank you very much that you can uh switch to 2K 4 can uh switch to 2K 4 can uh switch to 2K 4 140p I'm uh going to continue then all 140p I'm uh going to continue then all 140p I'm uh going to continue then all right so I found the environment right so I found the environment right so I found the environment variables variables variables here but it seems that it is expect in here but it seems that it is expect in here but it seems that it is expect in some sort of uh configuration. yaml isn't there home assistant like yaml isn't there home assistant like Docker compose or something home Docker compose or something home Docker compose or something home assistant Docker assistant Docker assistant Docker compose doer compos files um are best to use with kubernetes when um are best to use with kubernetes when you're going switch it to you're going switch it to you're going switch it to kubernetes yeah here we go darker kubernetes yeah here we go darker kubernetes yeah here we go darker compose all right should be accessible using Port

  8. right should be accessible using Port 8123 so that's the port it's expecting 8123 and which config which mounts does 8123 and which config which mounts does it expect it's expecting a slash config don't need the local time don't need to don't need the local time don't need to have the have the have the debus privilege true so it's expecting debus privilege true so it's expecting debus privilege true so it's expecting to run as route to run as route to run as route unfortunately unfortunately unfortunately um so we'll have to allow the privilege um so we'll have to allow the privilege um so we'll have to allow the privilege escalation and we have to do the run escalation and we have to do the run escalation and we have to do the run as um user one let's see where did I did as um user one let's see where did I did as um user one let's see where did I did that do that again is it in the no no um run as um run as um run as user here run as user here run as user here run as [Music] user run as user zero which is the root user run as user zero which is the root user and I hate it that I have to do user and I hate it that I have to do user and I hate it that I have to do this in containers but you usually with this in containers but you usually with this in containers but you usually with these open source uh kind of things they these open source uh kind of things they these open source uh kind of things they actually expect it to be uh run as root actually expect it to be uh run as root actually expect it to be uh run as root user user user unfortunately um maybe I can write my unfortunately um maybe I can write my unfortunately um maybe I can write my own uh image for this deployment one day own uh image for this deployment one day own uh image for this deployment one day for now I'll just do it like

  9. for now I'll just do it like for now I'll just do it like this I will need a slash this I will need a slash this I will need a slash config um which config um which config um which is let me just check this is let me just check this is let me just check this deployment this also is mounted um Mount um Mount path SL config so it should be path SL config so it should be path SL config so it should be here SLC config and then I'm going to here SLC config and then I'm going to here SLC config and then I'm going to create a create a create a new add the volume here and I'm going to new add the volume here and I'm going to new add the volume here and I'm going to create a new volume called assistant assistant config and I recently installed a Nas on config and I recently installed a Nas on config and I recently installed a Nas on my um home network so now I have a my um home network so now I have a my um home network so now I have a sonology Nas which means that I can use sonology Nas which means that I can use sonology Nas which means that I can use a sonology storage class which is a sonology storage class which is a sonology storage class which is amazing so let me show you I have have amazing so let me show you I have have amazing so let me show you I have have my LinkedIn my LinkedIn my LinkedIn production deployment here and I have a a actually is it in

  10. the here we go here's the transmission the here we go here's the transmission config icecy retain that's the storage config icecy retain that's the storage config icecy retain that's the storage class name what I want I think that's how I set it up spec want I think that's how I set it up spec storage class name access modes read by storage class name access modes read by storage class name access modes read by once let me just double check on that once let me just double check on that once let me just double check on that storage class name storage storage class name storage storage class name storage [Music] [Music] [Music] class I have the seny isy and isy class I have the seny isy and isy class I have the seny isy and isy retain home assistant is apparently retain home assistant is apparently retain home assistant is apparently going to be depending on going to be depending on going to be depending on a volume that where the configuration is a volume that where the configuration is a volume that where the configuration is stored probably won't be able to use the stored probably won't be able to use the stored probably won't be able to use the database so then I'm going to try to database so then I'm going to try to database so then I'm going to try to I'll just use the retain um storage I'll just use the retain um storage I'll just use the retain um storage class and the only difference between class and the only difference between class and the only difference between the two is that the the two is that the the two is that the retain persistent volume will be retain persistent volume will be retain persistent volume will be retained when I delete the persistent retained when I delete the persistent retained when I delete the persistent volume volume volume claim and this is actually pretty cool I claim and this is actually pretty cool I claim and this is actually pretty cool I have let me just show you storage have let me just show you storage have let me just show you storage class and here is the ice cuzy class and here is the ice cuzy class and here is the ice cuzy so storage class so storage class so storage class retain this is the storage class and retain this is the storage class and retain this is the storage class and this actually goes out to my sonology this actually goes out to my sonology this actually goes out to my sonology and it creates a persistent volume there

  11. and it creates a persistent volume there and it creates a persistent volume there of the of the type icecy and it it's of the of the type icecy and it it's of the of the type icecy and it it's amazing you can allow it to expand and amazing you can allow it to expand and amazing you can allow it to expand and you can resize it you can mount it into you can resize it you can mount it into you can resize it you can mount it into different containers but the great thing different containers but the great thing different containers but the great thing is like when is like when is like when I'm when I have my separate nodes I'm when I have my separate nodes I'm when I have my separate nodes here and if I drain one of these when I here and if I drain one of these when I here and if I drain one of these when I was using local path I couldn't exchange was using local path I couldn't exchange was using local path I couldn't exchange containers between the the nodes because containers between the the nodes because containers between the the nodes because because the no the storage will be bound because the no the storage will be bound because the no the storage will be bound to the node and now when the storage is to the node and now when the storage is to the node and now when the storage is provisioned on the sonology Nas I can provisioned on the sonology Nas I can provisioned on the sonology Nas I can just move the containers around and the just move the containers around and the just move the containers around and the controller will just detach the controller will just detach the controller will just detach the persistent volumes and attach them as persistent volumes and attach them as persistent volumes and attach them as needed it's really it works really well needed it's really it works really well needed it's really it works really well so that's how why I'm um using that so that's how why I'm um using that so that's how why I'm um using that particular storage class and the code particular storage class and the code particular storage class and the code for this is also in the repo if you want for this is also in the repo if you want for this is also in the repo if you want to take a look at to take a look at to take a look at that I CU you retain reite once the the that I CU you retain reite once the the that I CU you retain reite once the the only disadvantage is that you have to only disadvantage is that you have to only disadvantage is that you have to set at least 1 gigabytes so home set at least 1 gigabytes so home set at least 1 gigabytes so home assistant is never going to use 1 assistant is never going to use 1 assistant is never going to use 1 gigabytes but that's the minimum that gigabytes but that's the minimum that gigabytes but that's the minimum that the sonology storage provider will allow the sonology storage provider will allow the sonology storage provider will allow you to set so I'm bound to that unfortunately home assistant config at unfortunately home assistant config at SLC SLC SLC config we have the storage. yaml here we config we have the storage. yaml here we config we have the storage. yaml here we go and the networking I'm going to wait go and the networking I'm going to wait go and the networking I'm going to wait with for a bit I'll just port forward with for a bit I'll just port forward with for a bit I'll just port forward forward for now basically all I want now

  12. forward for now basically all I want now forward for now basically all I want now is just storage and networking or is just storage and networking or is just storage and networking or storage and storage and storage and deployment so let's deployment so let's deployment so let's see go over it one more time I have the see go over it one more time I have the see go over it one more time I have the deployment name the deployment name the deployment name the app I have the app I have the app I have the image it's allowed to escalate and run image it's allowed to escalate and run image it's allowed to escalate and run as as as rout we don't need the config map ref rout we don't need the config map ref rout we don't need the config map ref yet and we set it to this port so that's good the storage port so that's good the storage is home assistant config and let's just is home assistant config and let's just is home assistant config and let's just double check home-assistant dcon that's double check home-assistant dcon that's double check home-assistant dcon that's also configured also configured also configured correctly so this should be good to correctly so this should be good to correctly so this should be good to go so go so go so then uh I'm just going then uh I'm just going then uh I'm just going to quickly to quickly to quickly check ah here we go my customization of check ah here we go my customization of check ah here we go my customization of my deployment of the name space is not my deployment of the name space is not my deployment of the name space is not working let's see ah okay I have to quickly adjust a see ah okay I have to quickly adjust a secret that I have here and I don't want secret that I have here and I don't want secret that I have here and I don't want to send that to the stream obviously obviously um home assistant

  13. okay Switching okay Switching back whoa I have 12 back whoa I have 12 back whoa I have 12 viewers that's amazing hello viewers that's amazing hello viewers that's amazing hello everybody didn't expect that many didn't expect that many Spectators starting to feel a bit Spectators starting to feel a bit Spectators starting to feel a bit pressured here even um flux reconcile even um flux reconcile [Music] all right so that's now successfully all right so that's now successfully applied and then I can um I will go to the repo and I'm can um I will go to the repo and I'm just going to um shoot off the just going to um shoot off the just going to um shoot off the customization by hand first before I customization by hand first before I customization by hand first before I commit it to the repo because flux takes commit it to the repo because flux takes commit it to the repo because flux takes a while to deploy it and usually I have a while to deploy it and usually I have a while to deploy it and usually I have I make a few mistakes and I need to I make a few mistakes and I need to I make a few mistakes and I need to adjust a few adjust a few adjust a few things things things so yeah I have it in the yeah here so yeah I have it in the yeah here so yeah I have it in the yeah here already here we go I have it in my base directory you know what I'm just going directory you know what I'm just going to keep this screen just for Vim I to keep this screen just for Vim I to keep this screen just for Vim I forgot already to create

  14. forgot already to create forgot already to create a separate directory for my deployment a separate directory for my deployment a separate directory for my deployment here so I'm going to copy this one and here so I'm going to copy this one and here so I'm going to copy this one and paste it call it home paste it call it home paste it call it home assistant and in this directory I assistant and in this directory I assistant and in this directory I basically just have a customization that basically just have a customization that basically just have a customization that is pointing to base home is pointing to base home is pointing to base home assistant doesn't need any config Maps assistant doesn't need any config Maps assistant doesn't need any config Maps yet no yet no yet no Ingress just the customization that yaml uh yaml uh yep yep yep and so this customization yo in my and so this customization yo in my and so this customization yo in my production directory is going to go back production directory is going to go back production directory is going to go back to the base directory and take all of to the base directory and take all of to the base directory and take all of the files that are defined in this the files that are defined in this the files that are defined in this customization Yo which is the deployment customization Yo which is the deployment customization Yo which is the deployment and the storage yeah right if you well actually storage yeah right if you well actually I um you can see it when I type secrets I um you can see it when I type secrets I um you can see it when I type secrets that's right that's right that's right but sometimes when you enter a field the but sometimes when you enter a field the but sometimes when you enter a field the key Caster actually picks it up and it key Caster actually picks it up and it key Caster actually picks it up and it won't it won't show the keys when I'm uh won't it won't show the keys when I'm uh won't it won't show the keys when I'm uh punching in that's actually really punching in that's actually really punching in that's actually really really really really cool wait maybe can I even show that cool wait maybe can I even show that cool wait maybe can I even show that let's let's let's see um let's go to a private

  15. window and yeah here here is a password window and yeah here here is a password field so if my theory is correct field so if my theory is correct field so if my theory is correct yeah right look I'm in a password field yeah right look I'm in a password field yeah right look I'm in a password field and now it's not and now it's not and now it's not casting and now I'm in a different field casting and now I'm in a different field casting and now I'm in a different field and it's casting it's actually pretty and it's casting it's actually pretty and it's casting it's actually pretty cool it's pretty intelligent this cool it's pretty intelligent this cool it's pretty intelligent this thing and now go back to the password thing and now go back to the password thing and now go back to the password field and it won't so works really well field and it won't so works really well field and it won't so works really well it's called Uh key caster caster but it's very kind of you to make me but it's very kind of you to make me but it's very kind of you to make me aware of that because uh you never know aware of that because uh you never know aware of that because uh you never know sometimes you sometimes you sometimes you get distracted and I'm not I'm not used get distracted and I'm not I'm not used get distracted and I'm not I'm not used to live streaming at all so used to just to live streaming at all so used to just to live streaming at all so used to just working working working alone uh back to the home rep lab repo alone uh back to the home rep lab repo alone uh back to the home rep lab repo I'm going to go to apps production home I'm going to go to apps production home I'm going to go to apps production home assistant and let me just flux no okay assistant and let me just flux no okay assistant and let me just flux no okay customize build um what's it again uh let me check build um what's it again uh let me check my notes on my notes on my notes on that that that um command here now it just outputs if you

  16. command here now it just outputs if you run Cube C customize then will just run Cube C customize then will just run Cube C customize then will just output the the F the files as they're output the the F the files as they're output the the F the files as they're going to be rendered so now I know I'm going to be rendered so now I know I'm going to be rendered so now I know I'm in the right in the right in the right place and now I can place and now I can place and now I can [Music] [Music] [Music] do Cube CTL apply K Dot and I will do dry run equals server Dot and I will do dry run equals server so this means that it will apply it to so this means that it will apply it to so this means that it will apply it to the server without actually deploying the server without actually deploying the server without actually deploying the resources but just to check if I I the resources but just to check if I I the resources but just to check if I I did everything correctly so I'm getting a few warnings correctly so I'm getting a few warnings about the PO security which is expected about the PO security which is expected about the PO security which is expected because I have admission policies on my because I have admission policies on my because I have admission policies on my cluster they are def uh configured by cluster they are def uh configured by cluster they are def uh configured by default by Talos Linux um let me see persistent volum Linux um let me see persistent volum claim so here we go there is an error in claim so here we go there is an error in claim so here we go there is an error in my my my storage there we go the name was there we go the name was wrong and actually this customization wrong and actually this customization wrong and actually this customization file should have name space home space home assistant and this is exactly why I do assistant and this is exactly why I do assistant and this is exactly why I do it without flux for the first couple of it without flux for the first couple of it without flux for the first couple of runs just to try things out to see if runs just to try things out to see if runs just to try things out to see if all the the files are actually working

  17. all the the files are actually working all the the files are actually working correctly okay so that seems all right I'm just okay so that seems all right I'm just getting warnings about my security getting warnings about my security getting warnings about my security context and K get context and K get context and K get NS my home assistant namespace has also NS my home assistant namespace has also NS my home assistant namespace has also been been been deployed so let's just deployed so let's just deployed so let's just customize check if everything is being customize check if everything is being customize check if everything is being sent to the right sent to the right sent to the right namespace home assistant config namespace home assistant config namespace home assistant config namespace home assistant namespace home assistant namespace home assistant yeah looking good so now I'm ready to yeah looking good so now I'm ready to yeah looking good so now I'm ready to apply it apply without the dry run checking if I'm in the right cluster run checking if I'm in the right cluster that's also that's also that's also correct the other day I almost applied correct the other day I almost applied correct the other day I almost applied some home lab staff to a um work cluster I had a bit of a m moment where cluster I had a bit of a m moment where I I was almost sure that I was in a I I was almost sure that I was in a I I was almost sure that I was in a different different different cluster okay so now the files have been cluster okay so now the files have been cluster okay so now the files have been applied if I now go to K9s and if I go applied if I now go to K9s and if I go applied if I now go to K9s and if I go to to to namespace home namespace home namespace home assistant I can see that the Pod is uh assistant I can see that the Pod is uh assistant I can see that the Pod is uh being successful attached volume so the

  18. successful attached volume so the persistent volume claim has now been persistent volume claim has now been persistent volume claim has now been attached it's actually provisions on my attached it's actually provisions on my attached it's actually provisions on my sonology Nas and I just saw that the image is Nas and I just saw that the image is actually where did I see actually where did I see actually where did I see it home assistant docker megabytes where did I see that here megabytes where did I see that here compressed size 500 megabytes that's a compressed size 500 megabytes that's a compressed size 500 megabytes that's a that's a big container takes a while for that image container takes a while for that image to be pulled in supposedly so in the meantime I will supposedly so in the meantime I will just check how this looks just check how this looks just check how this looks in lens oh here we go it's running lens oh here we go it's running already all right well for Hope and already all right well for Hope and already all right well for Hope and Glory let's do a port Glory let's do a port Glory let's do a port forward yay we have home assistant forward yay we have home assistant forward yay we have home assistant running on my kubernetes running on my kubernetes running on my kubernetes cluster well that was uh cluster well that was uh cluster well that was uh easy create my smart home

  19. create my smart home so on boarding. HTML am I just going to so on boarding. HTML am I just going to so on boarding. HTML am I just going to do this from The Local Host yeah why not do this from The Local Host yeah why not do this from The Local Host yeah why not let's just let's just let's just start my name is start my name is start my name is Misha Misha Misha password see it's not it's not showing password see it's not it's not showing password see it's not it's not showing the the credentials so that's great okay I am going to just okay I am going to just quickly add that to my notes quickly add that to my notes quickly add that to my notes Here uh yeah uh yeah obsidian obsidian obsidian go or maybe I should go or maybe I should go or maybe I should just Y and now it will cast it so now I have Y and now it will cast it so now I have to be careful so stop now that it really matters because I'm now that it really matters because I'm not going to be opening this to the

  20. not going to be opening this to the not going to be opening this to the public my home public my home public my home location set the location of your home location set the location of your home location set the location of your home so you can display information such the so you can display information such the so you can display information such the local weather well it's if you look on local weather well it's if you look on local weather well it's if you look on straa you will know that I'm in straa you will know that I'm in straa you will know that I'm in permanent so that's not uh any secret permanent so that's not uh any secret permanent so that's not uh any secret information do I want to send analytics information do I want to send analytics information do I want to send analytics to home to home to home assistant assistant assistant me I'll skip that for now we found compatible devices already now we found compatible devices already all right that was wow I I was not expecting that it would wow I I was not expecting that it would go this quickly that's actually a lot faster quickly that's actually a lot faster than I thought than I thought than I thought because we have it running now that's because we have it running now that's because we have it running now that's great the thing is that I have uh great the thing is that I have uh great the thing is that I have uh deployed these home deployed these home deployed these home wizard things and suppos ly you're wizard things and suppos ly you're wizard things and suppos ly you're should be able to just add this as should be able to just add this as should be able to just add this as a um what's it called add-on or

  21. something let me check home something let me check home assistant assistant assistant um home wizard home wizard energy add wizard home wizard energy add integration to my home okay Enter The Home assistant okay Enter The Home assistant URL um well before I do that I'm URL um well before I do that I'm URL um well before I do that I'm actually going to just configure a uh actually going to just configure a uh actually going to just configure a uh local DNS here I'm using Cloud flare for local DNS here I'm using Cloud flare for local DNS here I'm using Cloud flare for this so I'm just going this so I'm just going this so I'm just going to open Cloud flare real to open Cloud flare real to open Cloud flare real quick and it shows like stuff that I quick and it shows like stuff that I quick and it shows like stuff that I don't want to show show it's really don't want to show show it's really don't want to show show it's really annoying but when you open the page it annoying but when you open the page it annoying but when you open the page it shows some stuff that you don't want to shows some stuff that you don't want to shows some stuff that you don't want to have have have public but now I go to my DNS public but now I go to my DNS public but now I go to my DNS configuration here and all of my home configuration here and all of my home configuration here and all of my home lab is uh it's done here in tunnels but lab is uh it's done here in tunnels but lab is uh it's done here in tunnels but it's also on private it's also on private it's also on private IPS so here I can create IPS so here I can create IPS so here I can create a DNS record a DNS record a DNS record for uh um I already have home as home R for uh um I already have home as home R for uh um I already have home as home R so how am I going to call my home so how am I going to call my home so how am I going to call my home assistant um domain domain ass for

  22. ass for ass for assistant yeah why not assistant yeah why not assistant yeah why not as and I will take the IP of the control plane of my production of the control plane of my production cluster okay save that and then we're going to okay save that and then we're going to add an add an add an Ingress Ingress Ingress here here here [Music] [Music] [Music] so here there is I'm just going to copy so here there is I'm just going to copy so here there is I'm just going to copy the Ingress from homar actually let me just put that in homar actually let me just put that in the base directory for the base directory for the base directory for now now now here Ingress yl yl home home home [Music] [Music] [Music] assistant the Ingress class is traffic assistant the Ingress class is traffic assistant the Ingress class is traffic traffic as. Mish venberg traffic as. Mish venberg traffic as. Mish venberg Donnet the port number is the ah I will also need to have a the ah I will also need to have a service for it I remember now so add a service for it I remember now so add a service for it I remember now so add a service to uh here networking.

  23. to uh here networking. yo home assistant the deployment has the assistant the deployment has the 8123 port in 8123 port in 8123 port in it so back to the it so back to the it so back to the service service service 8123 app is home assistance assistance and so we're exposing the Pod at Port Ingress is going to go to the home Ingress is going to go to the home assistant service to Port assistant service to Port assistant service to Port 8123 the host is going to be as. mishen 8123 the host is going to be as. mishen 8123 the host is going to be as. mishen berg.net berg.net berg.net and the name is going to going to be and the name is going to going to be and the name is going to going to be home [Music] [Music] assistant let's encryp production name assistant let's encryp production name assistant let's encryp production name home assistant yeah should be assistant yeah should be good then we'll add the networking. yaml good then we'll add the networking. yaml good then we'll add the networking. yaml and the Ingress yaml to my Ingress do yaml to my customization my Ingress do yaml to my customization file and when I then go

  24. file and when I then go file and when I then go back and server the manifests are actually server the manifests are actually working it would create a working it would create a working it would create a service service service and an Ingress so it should work so and an Ingress so it should work so and an Ingress so it should work so let's just apply it without let's just apply it without let's just apply it without it there we it there we it there we go the Ingress is now being go the Ingress is now being go the Ingress is now being deployed deployed deployed and it should also then and it should also then and it should also then start setting up start setting up start setting up a certificate for it because I have Ser a certificate for it because I have Ser a certificate for it because I have Ser manager already configured let me see manager already configured let me see manager already configured let me see Secrets no custom resources resources and SE manager certificate requests here and SE manager certificate requests here and SE manager certificate requests here we go here's the Certificate request already it's going to send that already it's going to send that out and where my Ingress is ready Network ingresses ready Network ingresses Ingress is already up so now if I go to as of Misha up so now if I go to as of Misha Vandenberg

  25. 8123 8123 8123 let's just double check the 8123 let's just double check the 8123 let's just double check the service what happens if I port forward service what happens if I port forward service what happens if I port forward to this so it's probably just the Ingress it's so it's probably just the Ingress it's not completely ready yet backend home- yet backend home- [Music] assistant and is the service also called assistant and is the service also called home Lush assistant that's that's really strange why is it giving a

  26. that's really strange why is it giving a bad request if it's already reaching the bad request if it's already reaching the bad request if it's already reaching the service well if I go to the IP of the thing of well if I go to the IP of the thing of my my my node oh then I have to expose it with a node oh then I have to expose it with a node oh then I have to expose it with a note note note Port that's really annoying Port that's really annoying Port that's really annoying why oh maybe it is due to the path settings oh maybe it is due to the path settings of the home assistant that's probably of the home assistant that's probably of the home assistant that's probably it so if I go to to yeah it's doing some stuff yeah it's doing some stuff yeah it's doing some stuff here with the authorize I don't want to deploy it as a authorize I don't want to deploy it as a low balancer so I low balancer so I low balancer so I think path

  27. type maybe the path has to be an type maybe the path has to be an implementation specific so let's try that apply it configure the that apply it configure the Ingress now the path is implementation specific now the path is implementation specific so let's try that ail all right well I'm going to save ail all right well I'm going to save that for a later that for a later that for a later day uh let's just go back day uh let's just go back day uh let's just go back to place where to place where to place where I'm port again okay again okay and this is now the local URL and this is now the local URL and this is now the local URL so so so it was asking it was asking it was asking here for the

  28. URL open URL open link do you want to set up home wizard link do you want to set up home wizard link do you want to set up home wizard energy yes I do the IP address of my home wizard do the IP address of my home wizard energy all right so then I'm going to go energy all right so then I'm going to go energy all right so then I'm going to go into my UniFi router here into my UniFi router here into my UniFi router here and I'll go into the vand that devices let's start with the P1 devices let's start with the P1 meter that's the IP address of my P1 meter that's the IP address of my P1 meter that's the IP address of my P1 meter here here so do that submit success P1 meter is in my success P1 meter is in my uh uh uh closet okay I have one device here oh wow look okay I have one device here oh wow look at well that was quick damn this home well that was quick damn this home assistant stuff is really settings home wizard

  29. settings home wizard energy let's add another energy let's add another energy let's add another one one one here is a an energy here is a an energy here is a an energy socket uh let me see which one it here here yeah so the the um that's that's annoying so I have a few of these annoying so I have a few of these annoying so I have a few of these sockets but I have no way of identifying sockets but I have no way of identifying sockets but I have no way of identifying the the the number here in my number here in my number here in my app oh that's really annoying let's okay well here we

  30. okay well here we go two devices energy s poet oh wait here here I should be able poet oh wait here here I should be able to see some more information here is the the MAC address information here is the the MAC address can I see the MAC address in can I see the MAC address in can I see the MAC address in my thing no it only has an an uid but it is working uid but it is working though that was a lot easier than I thought so can I yeah here I see this I thought so can I yeah here I see this I see the energy usage of my living room see the energy usage of my living room see the energy usage of my living room wow this is wow this is wow this is amazing this was a lot easier than I amazing this was a lot easier than I amazing this was a lot easier than I thought it would be huh look at all these nice all this be huh look at all these nice all this nice stuff that you can do great price so how much do I pay price so how much do I pay for a kilowatt hour now I have that set for a kilowatt hour now I have that set for a kilowatt hour now I have that set up in the app over up in the app over up in the app over here

  31. TS so the standard rate is TS so the standard rate is [Music] [Music] [Music] 0.3 basically unfortunately I don't have any basically unfortunately I don't have any solar panels or anything like that I solar panels or anything like that I solar panels or anything like that I would love it but I'm in an apartment uh would love it but I'm in an apartment uh would love it but I'm in an apartment uh and it's rented so I'm not able to do and it's rented so I'm not able to do and it's rented so I'm not able to do anything um with anything um with anything um with it show me the energy dashboard cool it show me the energy dashboard cool it show me the energy dashboard cool takes a few hours but here we go here's takes a few hours but here we go here's takes a few hours but here we go here's my my my energy energy consumption already done energy energy consumption already done energy energy consumption already done and it's all set up in my kubernetes and it's all set up in my kubernetes and it's all set up in my kubernetes cluster well that was a lot easier than cluster well that was a lot easier than cluster well that was a lot easier than I thought now I just have to figure out I thought now I just have to figure out I thought now I just have to figure out a way to a way to a way to actually identify these sockets but yeah actually identify these sockets but yeah actually identify these sockets but yeah that was really that was really that was really easy and home assistant has a ton of easy and home assistant has a ton of easy and home assistant has a ton of other dashboard Integrations it seems lists I wonder what other cool lists I wonder what other cool Integrations they might Integrations they might Integrations they might have do they have anything for straa have do they have anything for straa have do they have anything for straa that would be amazing straa straa straa

  32. no home wizard no home wizard straa now there's no straa integration I do have that in my grafana integration I do have that in my grafana though let's check that out grafana and I restarted the stuff today grafana and I restarted the stuff today so I have so I have so I have to do a quick adjustment but if I take the Strava data adjustment but if I take the Strava data source and I query the my run activities source and I query the my run activities source and I query the my run activities I now see that I've been right right save and distance ramper up up run save this is my custom dashboard here save this is my custom dashboard here but it also has this dashboard of the but it also has this dashboard of the but it also has this dashboard of the athlete overview it's really really amazing overview it's really really amazing stuff I have a video on this check it stuff I have a video on this check it stuff I have a video on this check it out if you are interested in this out if you are interested in this out if you are interested in this too here's the athlete dashboard so here too here's the athlete dashboard so here too here's the athlete dashboard so here you see all of my activities of the last you see all of my activities of the last you see all of my activities of the last month it's really amazing and it's month it's really amazing and it's month it's really amazing and it's directly in my kubernetes directly in my kubernetes directly in my kubernetes cluster cluster cluster it's really really cool stuff but it's really really cool stuff but it's really really cool stuff but there's no straa integration for home there's no straa integration for home there's no straa integration for home assistant

  33. unfortunately but yeah it works it was a unfortunately but yeah it works it was a lot easier than I thought we have uh lot easier than I thought we have uh lot easier than I thought we have uh home assistant deployed to my cluster home assistant deployed to my cluster home assistant deployed to my cluster now the great thing is I've been now the great thing is I've been now the great thing is I've been applying this through customization applying this through customization applying this through customization already so all I really need to do now already so all I really need to do now already so all I really need to do now is to just commit all of this to my by is to just commit all of this to my by is to just commit all of this to my by repo and then flux will take over the repo and then flux will take over the repo and then flux will take over the resources so feed deploy home resources so feed deploy home resources so feed deploy home assistant add that to the code and from assistant add that to the code and from assistant add that to the code and from now on the all of this is now being now on the all of this is now being now on the all of this is now being managed by managed by managed by flux I'm a little bit annoyed that my flux I'm a little bit annoyed that my flux I'm a little bit annoyed that my Ingress is not working it's giving me a 400 bad request working it's giving me a 400 bad request home assistant mhm this break and change may lead to a mhm this break and change may lead to a few divorces breakups few divorces breakups few divorces breakups uhoh you can't use Ingress the solution is to check home assistant

  34. the solution is to check home assistant log file for the internal Docker IP log file for the internal Docker IP log file for the internal Docker IP proxy address to use use no that can't be it MH I'll probably have to expose this it MH I'll probably have to expose this with a low balancer or appr proxy but that's okay balancer or appr proxy but that's okay from now for now I'm just happy with uh from now for now I'm just happy with uh from now for now I'm just happy with uh the solution that I have so yeah that's the solution that I have so yeah that's the solution that I have so yeah that's the the the goal achieved for this the the the goal achieved for this the the the goal achieved for this stream I'm super happy with stream I'm super happy with stream I'm super happy with this so I can just continue adding these this so I can just continue adding these this so I can just continue adding these um energy sockets that I have and build myself an energy have and build myself an energy dashboard I I was think I was expecting dashboard I I was think I was expecting dashboard I I was think I was expecting this to take a lot longer to deploy to this to take a lot longer to deploy to this to take a lot longer to deploy to um kubernetes but hey let's just check if flux has handled let's just check if flux has handled this well yep flux is handling this very this well yep flux is handling this very this well yep flux is handling this very well it is now all taken well it is now all taken well it is now all taken over and now I have to figure out a way over and now I have to figure out a way over and now I have to figure out a way how how how to get it to work with an

  35. home assistant will now block HP home assistant will now block HP requests when a misconfigure reverse requests when a misconfigure reverse requests when a misconfigure reverse proxy if you're using a refer Pro make proxy if you're using a refer Pro make proxy if you're using a refer Pro make sure you have configured X4 for and sure you have configured X4 for and sure you have configured X4 for and trusted proxies in your HTP integration enable parsing of the exported for enable parsing of the exported for header passing on the client's correct header passing on the client's correct header passing on the client's correct IP address in proxy setups IP address in proxy setups IP address in proxy setups okay we we uh make this uh make this uh make this adjustments Network external access disabled here we Network external access disabled here we go here we go so now we'll have to look go here we go so now we'll have to look go here we go so now we'll have to look into this configuration at yaml I into this configuration at yaml I into this configuration at yaml I suppose suppose suppose so home so home so home assistant configuration

  36. ation it is a configuration at ation it is a configuration at yam some parts you need to edit yam some parts you need to edit yam some parts you need to edit configuration. yo contains Integrations configuration. yo contains Integrations configuration. yo contains Integrations to be loaded with their okay so is that already in okay so is that already in my container then let's check that my container then let's check that my container then let's check that out K9s and we are going to go to the home and we are going to go to the home assistant assistant assistant namespace attached to the namespace attached to the namespace attached to the Shell ah here is the config wow it already has VI in the config wow it already has VI in the container oh this is container oh this is container oh this is great this is great I can just add it great this is great I can just add it great this is great I can just add it right here here uh all right so here we had all right so here we had this use x forwarded four this was helpful I didn't realize four this was helpful I didn't realize this was the actual IP range to use not all all right this will WID list all

  37. right this will WID list all right this will WID list all add-ons so let's add that add-ons so let's add that add-ons so let's add that then and we have the X forwarded then and we have the X forwarded then and we have the X forwarded 4 4 4 [Music] [Music] [Music] solution we solution we solution we add here we go this is the entire block okay here you need to use the internal okay here you need to use the internal Docker IP address for your proxy Docker IP address for your proxy Docker IP address for your proxy container but I'm not using a proxy container oh container oh here a request from a reverse proxy was here a request from a reverse proxy was here a request from a reverse proxy was receive from 10241 164 all right 164 all right so maybe I'll just add that

  38. uh let's uh let's see try try a few uh try it like this uh try it like this first because it seems that this is the first because it seems that this is the first because it seems that this is the address where it's coming from all from all right and now I wonder should is there a way and now I wonder should is there a way to restart it somehow or reload the to restart it somehow or reload the to restart it somehow or reload the configuration backups analytics backups analytics [Music] Hardware no Hardware no repairs oh ah we you're in the system menu oh ah we you're in the system menu option top right there's a button okay

  39. option top right there's a button okay option top right there's a button okay ah thank you very much uh ah thank you very much uh ah thank you very much uh Eva Eva Eva restart sure okay unable to find configuration sure okay unable to find configuration creating default one in SLC config creating default one in SLC config creating default one in SLC config okay least so are we back in least so are we back in Action unable to yep all yep all right home assistant is back up so right home assistant is back up so right home assistant is back up so now if I try my Ingress

  40. works that was the works that was the fix I love it when this kind of stuff fix I love it when this kind of stuff fix I love it when this kind of stuff happens so now I am able to go to as. happens so now I am able to go to as. happens so now I am able to go to as. Misha vanen berg.net and Misha vanen berg.net and Misha vanen berg.net and taada here is my home assistant so let's close all of assistant so let's close all of this stuff this stuff this stuff and and and definitely definitely make a note of this so here I this so here I will Z home is where is the here we is where is the here we go okay so then I will okay so then I will just home just home just home [Music] [Music] [Music] assistant Ingress configuration and configuration and then put this nicely in a code block yo and I'm going yo and I'm going to note that the IP address add of The to note that the IP address add of The to note that the IP address add of The Trusted proxy was retrieved from the pot Trusted proxy was retrieved from the pot Trusted proxy was retrieved from the pot [Music]

  41. loocks yeah like this one is not secure loocks yeah like this one is not secure at all uh thank you for the for the for at all uh thank you for the for the for at all uh thank you for the for the for the suggestion Ava this one is the suggestion Ava this one is the suggestion Ava this one is definitely not secure at all definitely not secure at all definitely not secure at all because in the docks I saw that the because in the docks I saw that the because in the docks I saw that the docker compose actually expects it to be docker compose actually expects it to be docker compose actually expects it to be run as a privileged image you have to run as a privileged image you have to run as a privileged image you have to set privilege is true so I'm running set privilege is true so I'm running set privilege is true so I'm running this as a root user uh here we go allow this as a root user uh here we go allow this as a root user uh here we go allow privilege escalation and run as user privilege escalation and run as user privilege escalation and run as user zero but the thing is that the the as. zero but the thing is that the the as. zero but the thing is that the the as. mishaan berg.com this resolves to an internal IP address this resolves to an internal IP address so this URL is not going to work in your so this URL is not going to work in your so this URL is not going to work in your browser you can you can try if you want browser you can you can try if you want browser you can you can try if you want but this but this but this um where's my cloud flare here this is um where's my cloud flare here this is um where's my cloud flare here this is an internal IP address 192168 100 so it an internal IP address 192168 100 so it an internal IP address 192168 100 so it it were I could have used a local DNS it were I could have used a local DNS it were I could have used a local DNS server for this but I don't have that server for this but I don't have that server for this but I don't have that configured yet so um I'm just using configured yet so um I'm just using configured yet so um I'm just using Cloud flare as my local DNS so you can't Cloud flare as my local DNS so you can't Cloud flare as my local DNS so you can't actually reach this um there are a few actually reach this um there are a few actually reach this um there are a few public URLs but those are secured pretty public URLs but those are secured pretty public URLs but those are secured pretty well but yeah you're definitely right well but yeah you're definitely right well but yeah you're definitely right you should not be exposing this in the you should not be exposing this in the you should not be exposing this in the state that it's in now but apparently state that it's in now but apparently state that it's in now but apparently home assistant wants this so log in

  42. so log in nice nice nice okay this is this went a lot smoother okay this is this went a lot smoother okay this is this went a lot smoother than I than I than I expected you know what I'm also just expected you know what I'm also just expected you know what I'm also just going to add this to my homar dashboard going to add this to my homar dashboard going to add this to my homar dashboard right appearance home appearance home assistant assistant assistant get a nice little icon oh I like this get a nice little icon oh I like this get a nice little icon oh I like this house one I like that one better home house one I like that one better home house one I like that one better home assistant and it will go go go save here is my home assistance and if save here is my home assistance and if save here is my home assistance and if I save this and click here I'm in home I save this and click here I'm in home I save this and click here I'm in home assistant assistant assistant yay nice I'm happy I got that to work thank you good people of work thank you good people of Reddit is this thread Reddit is this thread Reddit is this thread closed it's archive that's unfortunate I closed it's archive that's unfortunate I closed it's archive that's unfortunate I like to thank people when they like to thank people when they like to thank people when they um solve these kinds of problems for

  43. um solve these kinds of problems for um solve these kinds of problems for me but yeah looking pretty damn me but yeah looking pretty damn me but yeah looking pretty damn good now I can just add these sockets and off now I can just add these sockets and off offline I'm going to figure out a way offline I'm going to figure out a way offline I'm going to figure out a way how to actually determine which sockets how to actually determine which sockets how to actually determine which sockets is which I do know some of the energy is which I do know some of the energy is which I do know some of the energy consumption of some of these but I have consumption of some of these but I have consumption of some of these but I have four sockets now one of is is monitoring four sockets now one of is is monitoring four sockets now one of is is monitoring my production cluster one of them is my production cluster one of them is my production cluster one of them is doing my staging cluster one of them is doing my staging cluster one of them is doing my staging cluster one of them is um monitoring a heater that I have down um monitoring a heater that I have down um monitoring a heater that I have down here and the last one is monitoring my here and the last one is monitoring my here and the last one is monitoring my ThinkPad and screen that I have set up ThinkPad and screen that I have set up ThinkPad and screen that I have set up in my living room that are just always on but yeah home assistant in kubernetes on but yeah home assistant in kubernetes Easy Easy Easy Peasy and if you want to see the code Peasy and if you want to see the code Peasy and if you want to see the code for this just check out my oh my home lab code here this is my my oh my home lab code here this is my GitHub page and you will see the home GitHub page and you will see the home GitHub page and you will see the home lab lab lab here and if you go to apps you will see here and if you go to apps you will see here and if you go to apps you will see the commit already deploy home assistant the commit already deploy home assistant the commit already deploy home assistant but here is the the Manifest that I used but here is the the Manifest that I used but here is the the Manifest that I used for this today if you're interested in that I'm a bit annoyed that you that I'm a bit annoyed that you can't configure it with environment

  44. can't configure it with environment can't configure it with environment variables though but that's just how it is let's see how easy is it to add is let's see how easy is it to add another another another socket we go to Integrations yeah one wizard Integrations yeah one wizard energy add another this this one oh wait can I see it based on the IP one oh wait can I see it based on the IP one oh wait can I see it based on the IP addresses I know which ones I did addresses I know which ones I did addresses I know which ones I did first This Is 50 80 yeah that doesn't make sense because 80 yeah that doesn't make sense because all of these were added I added this one first actually so added I added this one first actually so there's no sense in the the IP there's no sense in the the IP there's no sense in the the IP addressing of addressing of addressing of this that's unfortunate so I'll probably this that's unfortunate so I'll probably this that's unfortunate so I'll probably have to turn them off to determine which have to turn them off to determine which have to turn them off to determine which ones I'm uh actually adding here that's ones I'm uh actually adding here that's ones I'm uh actually adding here that's really unfortunate oh yeah what are you going unfortunate oh yeah what are you going to do there's only the MAC address that I

  45. do there's only the MAC address that I can see here all just add another one energy socket all just add another one energy socket add go to my unify all of these are add go to my unify all of these are add go to my unify all of these are placed in their placed in their placed in their own VLAN by the own VLAN by the own VLAN by the way sockets I can see the use though so sockets I can see the use though so maybe if I create a device that uses a maybe if I create a device that uses a maybe if I create a device that uses a lot of energy I can determine which one lot of energy I can determine which one lot of energy I can determine which one is uh cranking it is uh cranking it is uh cranking it up that's actually not a bad up that's actually not a bad up that's actually not a bad idea I might have to resort to that idea I might have to resort to that idea I might have to resort to that actually uh let's add the remaining ones setting setting devices

  46. devices devices add add add now we're going to do this submit submit oh I don't know just added in the oh I don't know just added in the oh I don't know just added in the kitchen and the last one kitchen and the last one kitchen and the last one is so I know that one of them is not so I know that one of them is not consuming consuming consuming any yeah this is the bedroom that's here any yeah this is the bedroom that's here any yeah this is the bedroom that's here and I have that hooked up to a heating and I have that hooked up to a heating and I have that hooked up to a heating device or uh what's it called it's a p device or uh what's it called it's a p device or uh what's it called it's a p panel oven panel oven panel oven here so if I turn that here so if I turn that here so if I turn that on then I should see yeah on then I should see yeah on then I should see yeah boom 1 th000 Watts okay well here is my way to uh Watts okay well here is my way to uh determine which one is that's that's determine which one is that's that's determine which one is that's that's fast look how quick that is if I just turn it on you can probably is if I just turn it on you can probably hear me turning the switch boom there it is few seconds switch boom there it is few seconds delay

  47. delay delay and now I'll turn it and now I'll turn it and now I'll turn it off cool so the one that's called off cool so the one that's called off cool so the one that's called bedroom that is bedroom that is bedroom that is [Music] [Music] [Music] then um wait how can I see which one this um wait how can I see which one this is this this one is in the where is the room configuration for the where is the room configuration for this scripts oh cool you can add scripts this scripts oh cool you can add scripts this scripts oh cool you can add scripts so here I can so here I can so here I can actually start turning on and off actually start turning on and off actually start turning on and off devices devices devices um oh here in living room there we go um oh here in living room there we go um oh here in living room there we go that's in living room room that one has that one has that one has [Music] [Music] [Music] no no no room in room in room in kitchen and this one is in bedroom all right so this one will rename right so this one will rename to energy to energy to energy socket uh how do I manage the

  48. how do I manage the rooms bedroom is that in settings bedroom is that in settings too or areas that should be it oh here too or areas that should be it oh here too or areas that should be it oh here bedroom okay so I'm going to create an bedroom okay so I'm going to create an bedroom okay so I'm going to create an area which is my office like a desk or a yeah here's a office like a desk or a yeah here's a desk add so this is my office and then this the office and then this the device will be going to the office there device will be going to the office there device will be going to the office there we go now I'm figuring it out right how do you block websites to be right how do you block websites to be accessible from the internet accessible from the internet accessible from the internet um that's an interesting um that's an interesting um that's an interesting question question question so in my so in my so in my case what I when you when you do a DNS case what I when you when you do a DNS case what I when you when you do a DNS uh when you put an URL in the browser so uh when you put an URL in the browser so uh when you put an URL in the browser so in this case ask. mishen berg.net then in this case ask. mishen berg.net then in this case ask. mishen berg.net then you are first querying a DNS server and

  49. you are first querying a DNS server and you are first querying a DNS server and the DNS server is going to return IP the DNS server is going to return IP the DNS server is going to return IP address address address so if I do NS lookup as. Misha Vandenberg if I do NS lookup as. Misha Vandenberg Donnet you will see that you get back Donnet you will see that you get back Donnet you will see that you get back this IP this IP this IP address because that's the IP address address because that's the IP address address because that's the IP address that I configured here in Cloud flare in that I configured here in Cloud flare in that I configured here in Cloud flare in my DNS records here so that that works my DNS records here so that that works my DNS records here so that that works uh as uh as uh as intended however this IP address is a intended however this IP address is a intended however this IP address is a private IP address so you can you can private IP address so you can you can private IP address so you can you can enter this into your browser at home and enter this into your browser at home and enter this into your browser at home and then you will be routed to this IP then you will be routed to this IP then you will be routed to this IP address which is an internal so if you address which is an internal so if you address which is an internal so if you have a device on this IP address you have a device on this IP address you have a device on this IP address you might be routed to might be routed to might be routed to something but most likely you won't and something but most likely you won't and something but most likely you won't and then it doesn't route anywhere you get then it doesn't route anywhere you get then it doesn't route anywhere you get the IP back but it doesn't mean anything the IP back but it doesn't mean anything the IP back but it doesn't mean anything it's only because I have an Ingress it's only because I have an Ingress it's only because I have an Ingress resource in kubernetes listening for resource in kubernetes listening for resource in kubernetes listening for that that that URL on that IP that it actually is URL on that IP that it actually is URL on that IP that it actually is routing so hopefully that answers your routing so hopefully that answers your routing so hopefully that answers your your question and if not so just let me your question and if not so just let me your question and if not so just let me know I'll try to explain it um all right so we have the um all right so we have the office then I

  50. have one two three four more sockets have one two three four more sockets okay devices this one devices this one has no has no has no room but now at least I know which one room but now at least I know which one room but now at least I know which one is which so actually what I'm going to is which so actually what I'm going to is which so actually what I'm going to do is I'm just going to hook up this do is I'm just going to hook up this do is I'm just going to hook up this oven uh to to the sockets and I'll just oven uh to to the sockets and I'll just oven uh to to the sockets and I'll just um determine which one is which so I'll um determine which one is which so I'll um determine which one is which so I'll be right back this is an amazingly low Tech back this is an amazingly low Tech solution so I have it hooked up to so I have it hooked up to my production cluster now yeah and there my production cluster now yeah and there my production cluster now yeah and there we go so the living room one is and lastly this one is the staging so

  51. and lastly this one is the staging so production production production staging and kitchen is living room all right so going to the socket room all right so going to the socket that's in production and we're going to add a new production and we're going to add a new area which is the area which is the area which is the pantry cuz that's where my home lab pantry cuz that's where my home lab pantry cuz that's where my home lab is so production update the one without a name was update the one without a name was staging staging it's in my staging it's in my pantry finally finally this one is actually the

  52. this one is actually the this one is actually the ThinkPad plus ThinkPad plus ThinkPad plus screen and it is actually in my living screen and it is actually in my living screen and it is actually in my living room see I can see that my production cluster see I can see that my production cluster is using less power than my staging is using less power than my staging is using less power than my staging cluster interestingly oh wow this is awesome interestingly oh wow this is awesome look at look at look at that I mean I could see this in my my that I mean I could see this in my my that I mean I could see this in my my app that I have on my on my phone with app that I have on my on my phone with app that I have on my on my phone with the home home wizard but now I can just the home home wizard but now I can just the home home wizard but now I can just see it from the see it from the see it from the browser this is really two and my ThinkPad and Screen are two and my ThinkPad and Screen are using 32 kilow wow this is really kilow wow this is really nice going to do some fun stuff with nice going to do some fun stuff with nice going to do some fun stuff with this energ this energ this energ dashboard

  53. yeah here we yeah here we go so can I set go so can I set go so can I set the I'm not really happy with the Tariff the I'm not really happy with the Tariff the I'm not really happy with the Tariff settings here can I configure that settings here can I configure that settings here can I configure that more energy use a static price but why can't because use a static price but why can't because my contract has high and low my contract has high and low my contract has high and low tariff so I should be able to set two tariff so I should be able to set two tariff so I should be able to set two prices right use an entity tracking the prices right use an entity tracking the prices right use an entity tracking the local local local costs oh that's interesting interesting would my P1 meter have the price in uh P1 meter energy import tariff one uh P1 meter energy import tariff one tariff two model P1 meter two model P1 meter tariff well I'll just use the static price for

  54. well I'll just use the static price for now which was 0.37 or something like now which was 0.37 or something like now which was 0.37 or something like that and um I'll configure that later that and um I'll configure that later that and um I'll configure that later but yeah I'm happy with my setup here but yeah I'm happy with my setup here but yeah I'm happy with my setup here I'm going to be exploring home assistant I'm going to be exploring home assistant I'm going to be exploring home assistant a little bit more and um I think I'm a little bit more and um I think I'm a little bit more and um I think I'm going to close off the stream for today going to close off the stream for today going to close off the stream for today thank you very much for joining thank you very much for joining thank you very much for joining everybody and uh yeah I was surprised to everybody and uh yeah I was surprised to everybody and uh yeah I was surprised to see so many of you nice to connect with see so many of you nice to connect with see so many of you nice to connect with you I hope you uh hope this was useful you I hope you uh hope this was useful you I hope you uh hope this was useful for you and if you have any questions for you and if you have any questions for you and if you have any questions just let me know in the chat or in the just let me know in the chat or in the just let me know in the chat or in the comments on my videos and uh I'll get comments on my videos and uh I'll get comments on my videos and uh I'll get back to you as soon as I can so thank back to you as soon as I can so thank back to you as soon as I can so thank you very much for watching and uh see you very much for watching and uh see you very much for watching and uh see you in the next one have a good day

Summary

The main theme is installing Home Assistant on a Kubernetes cluster. Key subjects include home automation, Kubernetes, and energy monitoring via P1 monitors and energy meters. The takeaway is that the streamer is improvising the installation process, facing some technical hurdles, and learning as they go.

View original episode ↗