1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Scratch Build – In Progress Where do i even start? My home automation journey...

Discussion in 'Project Logs' started by Mojo, 12 Oct 2026.

  1. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Intro
    Frankly, this all started with @BazzUK. I blame him. Entirely.

    After some ill health at Christmas, I decided I needed a new project. I put the feelers out and ended up buying a server from him, with the rather innocent intention of having somewhere to store my growing collection of films, music and TV shows. The plan was simple: get some storage, install Plex and have everything available in one place.
    Obviously, it didn't stay that simple.

    I was introduced to the world of Unraid, then Docker, and started discovering all the other things I could run on a home server. One thing led to another, and what started as a way of hoarding media has turned into a bit of a home lab obsession. And if that wasn't enough, I discovered the wonderful world of UniFi.

    Oh dear lordy!
    So, here we are. I'm now running an HP server stack alongside three Dell OptiPlex Micro machines, all tucked away in 3D-printed racks around the house. There are currently two racks: one up in the loft and another out in the garage. Yes, it needs some more rack nuts. Giggidy!
    [​IMG]
    [​IMG]

    The HP stack
    The HP server is the main workhorse. It runs Plex, handles Time Machine backups for my MacBook Pro and provides the bulk of my storage.

    Storage and services
    • 40TB total storage, including 10TB dedicated to parity.
    • 3 x 1TB SSDs.
    • Plex, Time Machine and general home storage.
    The current media collection
    • 2,164 films.
    • 13 documentaries.
    • 423 TV shows, totalling 16,064 episodes. Seriously, where did they all come from?
    • 25,689 music tracks.
    At this point, finding something to watch is probably becoming a bigger challenge than actually storing it. I've somehow managed to build a library large enough to lose an entire evening just deciding what to put on.

    The Dell Micros
    Then there are the three Dell Micros. They're small, relatively unobtrusive and ideal for running separate services without having everything piled onto one machine. I've given each one its own job:
    • Remote: Intel Core i5, 16GB RAM, 512GB SSD. Runs Unraid and handles downloads and Docker containers.
    • Home Assistant: Intel Core i3, 8GB RAM, 256GB SSD. The brains behind the home automation.
    • Network: Intel Core i3, 8GB RAM, 500GB SSD. Handles network services, including Pi-hole for DNS and network-wide ad blocking.
    I put a surprising amount of thought into naming them. Remote handles remote things, Network handles network things, and Home Assistant does Home Assistant things. Clearly, naming servers isn't where my creative talents lie.
    The idea is to keep things reasonably separated so I can tinker with one service without necessarily breaking everything else in the house. Whether that works out in practice remains to be seen!

    The UniFi rabbit hole
    And then there's UniFi. Anyone who's gone down this particular rabbit hole will know how it works. You start with one access point, decide you quite fancy a managed switch, and before you know it you're looking at equipment you absolutely did not need when you started.
    Somehow, I've ended up here.

    The network setup
    • Dream Machine Pro SE: 4TB storage, runs the network and stores the camera footage.
    • 48-port PoE Pro Max switch: The main switch.
    • 24-port PoE switch: Located in the garage rack.
    • Several 8-port PoE switches: Dotted around the house, mostly wherever I've inevitably run out of ports.
    • Around 8 x U6 access points: I've genuinely lost count. There really shouldn't be a Wi-Fi dead spot anywhere in this house anymore.
    • 6 x G6 Turret cameras: Positioned around the outside, recording at 2K.
    • G4 Instant: In the living room. Small, tidy and useful for more than just security, as it can also provide Home Assistant with motion information.
    • 3 x UPS units: Keeping everything running through a power cut, including the fibre equipment coming into the house. If the power goes, the Wi-Fi stays up. Priorities.
    It's probably more networking equipment than a normal house needs, but at least I've got plenty of room to play around with it.
    And that's really the point of this project. I've spent the last year collecting hardware, getting services running and generally seeing what I can do with it all. Now I want to start making better use of it, particularly when it comes to Home Assistant and tying everything together.

    More on that shortly...
     
    Last edited: 12 Oct 2026
    pete*, wyx087 and BazzUK like this.
  2. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Where Home Assistant comes in

    So, why am I doing all this? What's the motivation behind it?

    I've been spending a fair bit of time playing around with Home Assistant lately, getting it set up around the house and seeing what I can do with it.

    The idea is pretty simple. I want to make everyday life a little easier, cut down on the amount of faffing around with my phone, and get a bit more use out of all the tech I've accumulated over the years.
    Lighting is an obvious one. I'd like to see what's on and control it without having to unlock my phone, open an app and go hunting through menus every time I want to turn a light off. The garage doors are another big part of it. We've recently had electric openers fitted, replacing the old clunky up-and-over doors that, more often than not, seemed determined to come off their runners. The new ones are brilliant, but they've introduced a different problem. It's surprisingly easy to accidentally press a button on the remote and open a garage door without realising. You can then quite happily go about your day, completely oblivious to the fact that the garage has been sitting open for hours. Not ideal.
    I'd like Home Assistant to keep an eye on the doors and, where it's safe to do so, close one that's been left open once the garage is clear. I've already got UniFi cameras around the place, so I'm hoping to make use of those for motion detection and work out a reliable way of automating it.

    I've also accumulated a fair amount of UniFi kit over the last year, including the mentioned cameras and networking gear. It would be nice to bring more of that together in one place, with easy access to camera feeds and useful network stats, rather than having to jump between different apps and interfaces.

    Ultimately, I want all these bits of technology to work together and actually make themselves useful. There's not much point collecting all this kit if I'm still having to do everything manually.
    And if I can get most of it working from a single dashboard, without having to reach for my phone every five minutes, even better.
     
    Last edited: 12 Oct 2026
    pete* and BazzUK like this.
  3. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Part 1: Tying it all together
    Right now, nearly everything goes through my phone. Want a light on? Unlock phone, open app, find the right room, find the right light. Want to check whether the garage door's shut? Same again. It's fine occasionally, but it gets old very quickly.

    What I really wanted was a single screen on the coffee table that just shows me what's going on.

    Why not a tablet?
    A tablet was the obvious answer, but I wasn't keen on another glowing screen in the living room. They're bright, they always need charging, and a tablet propped on a stand isn't exactly subtle.
    E-ink made a lot more sense. Barely any power, easy to read in daylight, and it doesn't look like a tiny telly in the middle of the room. The catch is that dedicated e-ink displays aren't cheap, particularly when all I really need is a screen that can show a webpage.
    Then I remembered seeing people repurpose old Kindles.
    A quick search on eBay turned up a broken Kindle 10 for next to nothing. Listed as dead, spares or repair. That was half the appeal, really. I don't mind taking things apart, and if I could get it working, I'd have a cheap display to play with. If not, I'd be down the price of a takeaway.

    The plan
    • Time, weather and commute info at a glance.
    • Light controls for the living room and beyond.
    • Garage door status and control, with a bit of protection against accidental taps.
    • Pages for the cameras, the Unraid servers and Plex.
    • Using the G4 Instant's motion detection to wake the screen when someone walks in.
    I'm not expecting miracles from an old Kindle, but if it works, it'll give me a proper little control panel without adding another tablet to the house.
    First job: getting it working.

    Part 2: Bringing it back from the dead
    The Kindle arrived exactly as advertised. Completely dead.
    Once I'd opened it up, the problems were fairly obvious. The battery was totally flat and wouldn't take a charge, and the USB socket was unreliable.
    The battery had discharged far enough that the charging circuit wouldn't accept it. I managed to bring the voltage up using another lithium cell, after which it started charging normally again.

    Quick safety note: don't mess about with lithium batteries unless you know what you're doing. A deeply discharged or damaged cell can be dangerous. If there's any doubt about its condition, replacing it is the safer option. i am a bodger.. i'm not proud.

    Next up was the USB socket. Out came the soldering iron, I reworked the joints, put it all back together and crossed my fingers.
    It powered up. Result.
    [​IMG]
    [​IMG]
    It also needed a bloody good clean. I've no idea what that mark on the back is, and I think I'm happier not knowing.
    [​IMG]
    Here it is charging before I'd fixed the socket. Not exactly elegant, but it did the job for testing.
    [​IMG]
    One handy thing about the Kindle 10 is that it's the 2019 basic model with a front light. That ties in nicely with the plan: I'd like the light to dim when nobody's around and wake up when the G4 Instant spots someone walking into the room.
    That's a job for the Home Assistant side of things, though. For now, I was just pleased to have a working Kindle.
     
    pete* and BazzUK like this.
  4. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Jailbreaking the Kindle

    The Kindle was running firmware 5.18.1.1.1, so after a bit of research I settled on Sanctuary from the KindleModding community.

    Before getting started, I followed the recommended preparation to stop the Kindle downloading a firmware update and checked that its browser was compatible. The actual jailbreak runs through the Kindle's own browser, which saves having to mess around with a PC and USB tools for that part.

    Once the compatibility check passed, I opened the Sanctuary page, followed the prompts and waited for the confirmation. Thankfully, it all went through without any drama.

    Afterwards, I installed KUAL (Kindle Unified Application Launcher), which gives me a way to launch additional tools and applications on the device.

    That's the Kindle jailbroken and ready for the next stage. Now I can start working on getting Home Assistant displayed properly and making the Kindle behave more like a dedicated dashboard than an e-reader.

    If you want to try this yourself, the full instructions and firmware compatibility information are available in the KindleModding Sanctuary guide. Make sure you check your exact model and firmware before starting.

    Quite unnerving when you end up with a blank screen - but had to believe in the process.

    [​IMG]

    And it didn't take long but installing KOreader allowed for SSH access.

    [​IMG]
     
    pete* and BazzUK like this.
  5. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Finding HA-IPaper

    While looking for a way to get Home Assistant onto the Kindle, I stumbled across HA-IPaper.

    It's a project designed specifically for e-readers, including Kindles and Kobos. The idea is to display a Home Assistant dashboard through the device's built-in browser, with the ability to interact with your smart home rather than just displaying a static image.
    The project caught my eye because it seemed to do pretty much what I was after. Rather than reinventing the wheel, I thought I'd give it a go and see how well it worked on my Kindle.

    The original project
    Here's an example from the project's creator, showing HA-IPaper running on an e-reader. This was the sort of thing I was hoping to achieve, although I'd be tailoring mine to suit my own setup.

    [​IMG]

    You can find the full project on GitHub, along with the original discussion on the Home Assistant Community forum.
    I got HA-IPaper installed and connected to Home Assistant. The first result wasn't quite what I'd expected, though.

    My first attempt

    [​IMG]

    It was a bit rough around the edges, and I quickly realised that my HTML skills had become somewhat rusty over the years. Getting something running was one thing; making it look good was another.
    Still, the important part was that I had a working dashboard displaying on the Kindle. That was a decent starting point, and I could see the potential.
    Rather than settle for the default layout, I decided to start tinkering. I wanted to make better use of the screen, display the information I actually cared about, and make the whole thing feel like a proper dashboard rather than a website I'd knocked together during my lunch break.

    Enter Claude

    This is where things got interesting.
    I've been using AI tools in various forms lately, mostly ChatGPT. As someone who can barely string a sentence together on a good day, having something help tidy up my spelling and grammar is useful. It also helps me get the ideas out of my head and into something that makes sense to other people.
    I'd heard Claude mentioned quite a bit in the tech industry, but hadn't really spent any time using it myself. So I thought I'd give it a go.

    Could it help me turn my slightly scruffy HTML into something that actually looked decent on a Kindle's tiny e-ink screen?

    Time to find out.
     
    BazzUK likes this.
  6. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Deciding what to put on the dashboard
    I suppose every project has to start somewhere, and before getting carried away with the design, I needed to work out what I actually wanted the thing to do.
    First up was lighting. Being able to see what's on and switch lights on or off without having to dig out my phone seemed like an obvious starting point.
    Next was the weather. It's all well and good looking out of the window, but knowing whether it's going to rain later is quite handy. Do I need a coat, or am I going to regret taking one with me?
    Then there's my commute. I don't have the shortest journey to work, and traffic can change pretty dramatically with very little warning. Having the current journey time sitting there on the dashboard would be genuinely useful, rather than having to open Google Maps every morning.

    The garage doors and living room blinds were also on the list, although I knew those would take a bit more work to get right.

    Getting the data into Home Assistant
    Most of this was already sorted. Home Assistant is good at finding stuff on the network by itself, and when it doesn't, there's usually an integration for it.

    Weather comes from the Met.no integration. Current conditions, a forecast, and the important bit: whether I'm going to get soaked.
    For the commute, I set up the Google Maps travel time integration between home and work. It needs an API key, which was a bit of a faff to set up, but once it's in, Home Assistant keeps the journey time updated as the traffic changes.
    The lights were easy. Home Assistant could already see them, so there was nothing to do. The garage doors and blinds could wait. I wanted the basics working before I started on the complicated stuff.

    The first attempt
    I gave all of this to Claude and asked for a dashboard that would work on the Kindle's screen. Honestly, the first go wasn't bad. It wasn't going to win any design awards, but it worked.

    [​IMG]

    The lights switched on and off. The weather worked, mostly. The commute showed up and gave me a rough idea of how long the drive would take.
    Frustratingly, there was that bloody URL bar at the top of the screen. Whatever I tried, it wouldn't go away. On a screen this small, it's eating space I want for other things, so that's one for the list. No garage doors or blinds yet either. Those went firmly in the "future me can deal with that" pile. Still, not a bad start. It worked; the Kindle was doing something useful again, and now I had something to make look better. I was kind of proud as punch at this point... not going to lie!
     
    pete* and BazzUK like this.
  7. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    And this just snowballed...
    you can almost see the evolution process as more and more ideas came about...


    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
    pete* and BazzUK like this.
  8. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    The garage doors
    This is the bit I'd been looking forward to, and also the bit that made me stop and think.
    The doors are switched with a Sonoff relay. It's literally 13 quid and acts as a dry contact relay. Wiring isn't really my thing, but it was actually a piece of cake to fit!
    Getting Home Assistant to open and close them was easy. The problem is that nothing tells Home Assistant whether a door is actually open or shut. I could have fitted reed switches, but that meant more wiring, more sensors and more batteries.
    I already had a camera pointing at the garage doors from the inside, though. So why not just look?
    When the dashboard needs to know, Home Assistant grabs a snapshot from the camera and sends it to an AI model (OpenAI, through the AI Task integration). It looks at the picture and replies OPEN or CLOSED. After I press the button, it waits a bit and checks again, so I know the door actually did what it was told.
    No extra wiring, no extra sensors, and so far it's been spot on. The irony of using one AI to build the dashboard and another to look at my garage isn't lost on me.

    Hang on a minute...
    Then it dawned on me. I've just put a button that opens my garage on a screen sitting on the coffee table.
    Think about it. Someone breaks in, has a nose around the living room, and finds a little screen with a big "open garage" button on it. Lovely. Now they can open the garage from the inside, load up the car and drive off with whatever's in there. I'd have basically built them a loading bay.
    And that's before you count kids, visitors, or me sitting on it by accident.
    So, back to the drawing board.

    Version 1: Just a button
    The first version was exactly that. Tap it, door opens. Simple, and completely daft in hindsight.
    [​IMG]

    Version 2: "Which side?"
    Next, I added a step to pick which garage door I wanted to open. Handy, and it cuts down on accidental taps, but it doesn't stop anyone who actually wants a door open.
    [​IMG]

    Version 3: PIN protection
    So I went back to Claude and we added a PIN keypad. Tap the garage door and up pops a number pad. No PIN, no garage.
    [​IMG]
    It's a bit more faff for me, but it means the screen is no longer a free pass to the garage. Somebody nicking stuff isn't going to sit there guessing codes on a Kindle while the cameras record them.

    [​IMG]

    Is it bulletproof?
    No, and I'm not pretending it is. If someone's already in the house, I've got bigger problems than the dashboard. And anyone who's on my network and knows what they're doing has other ways in. This is about stopping the screen itself being the weak spot, not turning it into Fort Knox.
    A few more ideas I'm considering:
    • A notification to my phone whenever a garage door opens.
    • Locking the keypad out for a while after a few wrong guesses.
    • Auto-closing a door if it's been left open and the garage is clear.
    • Not allowing the garage to open from the dashboard at all when the alarm's set or we're away.
    Not bad for a Kindle that was in the bin a few weeks ago.

    Notice the progression as I've gone along, and it now looks like a very polished example, which I'm really happy with....

    [​IMG]
     
    pete* and BazzUK like this.
  9. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Never happy
    But like all things, as geeks and nerds, we're never happy, are we? There had to be more. More integration, more smart stuff, more fancy pants.

    Teaching it to think for itself
    The camera was already telling me whether the door was open or shut, so I asked Claude if it could do something a bit cleverer with it.
    The idea was to have Home Assistant look at the camera feed and work out what's actually going on:
    • Is the door open or closed?
    • If it's open, has anyone actually gone in?
    • Nobody's gone in? It was probably opened by mistake. Give it 10 minutes, then shut it.
    • Someone's been in and out? They've probably just forgotten to close it. Give it 20 minutes, then shut it.
    I was fully expecting this to be one of those "sounds great, doesn't work" ideas.
    It worked. First time. I was pleasantly surprised.

    Then it got silly
    Next question: could it turn the result of that check into a proper entity in Home Assistant, so other things could use it?
    It could.
    Then the obvious follow-up: could the garage door on the dashboard show what's actually happening? Open when it's open, closed when it's closed, and moving when it's moving?
    Yes. Yes, it can.
    Holy ****.
    So now, rather than a button that just says "Garage", I've got a little garage door on the Kindle that opens and closes along with the real one. All from a camera I already had, a 13-quid relay and an AI looking at the picture.

    [​IMG]

    [​IMG]

    [​IMG]

    Alert pills
    Next, I added little alert "pills" that light up when something might need my attention, like a garage door opening or motion being picked up. If nothing's going on, they stay quiet. If something is, I can see it from across the room.

    [​IMG]

    Letting Claude off the lead
    By now it was getting complicated. Then I made the mistake (or maybe not) of telling Claude to take ownership and do whatever was needed to make the project work.
    It ran with it, and honestly, it blew my mind.
    • A proper menu for getting around the different pages.
    • Alert pills for the important areas of the house.
    • More feedback from the house, including a speed test so I can keep an eye on my download speeds.
    • The Kindle reporting on itself. Because it's jailbroken, the Kindle can now send its own battery level back to Home Assistant, which then shows it on the dashboard. The Kindle is literally reporting on itself.
    • No Banner/Web address, and boom just like that, Claude wrote an app to go onto the kindle which mimics a book (a book on a kindle doesn't have a header) and then loaded the website behind it.
    [​IMG]
    Spotify
    I also wanted Spotify control on there. When something's playing, the music controls overlay the server info, so it saves space and looks pretty cool too. When nothing's playing, the server stats come back.
    It updates in real time while music's playing; it's very responsive, and it doesn't hammer the network.

    [​IMG]
     
    Last edited: 12 Oct 2026
    pete*, wyx087 and BazzUK like this.
  10. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    Taking the Kindle dashboard a bit further

    With the basic dashboard up and running, it was time to start looking at some of the things I wanted it to do beyond switching lights on and checking the weather.

    The more I played around with it, the more I realised that having a touchscreen on the wall or coffee table is all well and good, but there are a few things worth thinking about. Security, power consumption, and what happens when I'm not actually using the thing.

    So, naturally, I started tinkering again.

    Keeping the garage locked when I'm out

    Remember the garage door controls I mentioned earlier? Well, this is where things got a little more interesting.
    One thing that did bother me was having a garage door keypad sitting on a Kindle that anyone could potentially pick up and use. Having a PIN is one thing, but it doesn't necessarily help much if someone gets access to the dashboard in the first place.
    Then it occurred to me: if I'm not at home, there's no real reason for the dashboard to allow the garage doors to be opened.

    My iPhone is usually with me when I leave the house, so I decided to make use of the UniFi integration in Home Assistant to check whether my phone was connected to the home Wi-Fi.
    The idea was simple. If my phone is away, lock down the garage controls. If it comes back onto the network, restore them.
    I added a pair of virtual iron gates over the garage tile, complete with a padlock and the message "Locked while Matt is out". While the gates are displayed, the garage tile can't be tapped, so the keypad can't be opened from the dashboard.

    [​IMG]
    When my phone reconnects to the Wi-Fi, the gates disappear after around 30 seconds and the controls become available again.
    There were a couple of things to figure out along the way:
    • UniFi doesn't necessarily expose device tracking in Home Assistant by default, so I had to enable the relevant device tracker for my phone.
    • UniFi has a delay of around five minutes before marking a device as away, which helps prevent a brief Wi-Fi dropout from immediately triggering the lockout.
    • iPhones can occasionally disconnect from Wi-Fi while sleeping, so relying on Wi-Fi alone isn't completely foolproof.

    Making the Kindle a bit less power-hungry

    The next thing I wanted to tackle was refreshing the screen.
    In the earlier version, the page reloaded every 30 seconds. That meant the Kindle was repeatedly refreshing the entire dashboard, complete with the familiar e-ink flash, even when absolutely nothing had changed.

    Not exactly elegant.
    I've since changed things so that the page checks for updates in the background and only redraws when something displayed on screen has actually changed. That might be a light switching on, a garage door changing state, the weather updating or the currently playing song changing.
    There's still a full refresh every 30 minutes as a fallback, just in case something gets out of sync.
    I also managed to reduce the little status-check request from around 45 KB to less than 1 KB. It's a small detail, but there's no point constantly throwing unnecessary data around when the dashboard only needs to check whether anything has changed.

    The other change was to the front light.
    The Kindle now fades its light off after two minutes without a touch, and it can wake back up when the screen is tapped, movement is detected in the living room by the UniFi G4 Instant camera, or an alert needs to be displayed.
    If my phone isn't at home, the light stays off altogether. There's not much point illuminating a dashboard in an empty house.


    A Goodnight screen

    This was another little idea that seemed worth trying.
    Rather than leave the Kindle displaying the normal dashboard all night, I wanted it to show something more useful before bed and overnight. So I put together a Goodnight screen that runs between midnight and 7am.
    It gives me a quick overview of the things I'd probably want to check before turning in:
    • **Lights:** confirms that everything is off, or highlights any lights still on.
    • **Garage:** confirms that the doors are closed, or warns me if one has been left open.
    • **Tomorrow's weather:** shows the forecast high and low.
    • **Commute:** displays the estimated journey time to work.
    • **Battery and status:** shows the Kindle's battery level and when the normal dashboard will return.
    [​IMG]
    The nice thing about e-ink is that it can hold an image without needing power to keep displaying it. With the front light switched off, the Kindle can sit there showing the last screen without constantly lighting up the room.
    The Goodnight screen also only redraws when something changes. So if the garage is closed and all the lights are off, it can sit quietly doing its thing. If something changes in the middle of the night, such as a garage door opening, the screen can update to show the new status.
    At 7am, it automatically switches back to the normal dashboard.

    A small lesson in debugging
    Of course, not everything went quite to plan.
    On the first night, I woke up to find that the front light had switched itself back on at around 3am. It turned out that the dashboard had closed, and the script responsible for managing the light had brought it back to full brightness.
    Not ideal when you're trying to save power, particularly at three in the morning.
    I've since adjusted things so that the dashboard automatically reopens if it closes unexpectedly, the light stays off overnight, and proper logging is in place so I can see what happened if it misbehaves again.
    It's one of those things you don't necessarily think about when you're designing a dashboard, but once you start leaving it running unattended, all the little edge cases start to appear.

    What's next?

    The next thing I'd like to look at is making the "am I home?" check more reliable. Using the UniFi connection status works reasonably well, but it isn't perfect. I'm considering switching to presence detection through the Home Assistant Companion app on my iPhone, which could give me a more dependable indication of whether I'm actually home.

    There's still plenty to tweak, but the Kindle is gradually turning into something more useful than an old e-reader gathering dust. And that's really the point of this project: taking a bit of kit that would otherwise be heading for the drawer and making it do something genuinely
     
    pete*, wyx087 and BazzUK like this.
  11. BazzUK

    BazzUK Are we there yet?

    Joined:
    6 May 2024
    Posts:
    226
    Likes Received:
    217
    I had absolutely nothing to do with any of this......................
    But good lad, keep it up :)

    Also may I introduce you to the world of local AI to monitor/control your entire setup? (if you have enough money that is?)
    My system is taking shape, being built around a 18-core Xeon with 256GB memory, and either 1 or 2 RTX 6000 Ampere 48GB GPU's (work loaned them to me, so why not)
    Primary work load will be to monitor, fix or advise the following, Unifi, HA, servers, storage, media etc.
     
  12. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    nope.. stop.. don't do it!
     
  13. BazzUK

    BazzUK Are we there yet?

    Joined:
    6 May 2024
    Posts:
    226
    Likes Received:
    217
    LOL too late, already named and partially built
     
  14. Cheapskate

    Cheapskate Insane? or just stupid?

    Joined:
    13 May 2007
    Posts:
    12,758
    Likes Received:
    2,288
    Well, I got half way through that and ran out of allotted morning browse time. :lol:
     
    pete*, Mojo and BazzUK like this.
  15. wyx087

    wyx087 Multimodder

    Joined:
    15 Aug 2007
    Posts:
    12,409
    Likes Received:
    884
    3 is perfect for a proxmox cluster with high availability.

    I have 1 mITX main machine and a N100 box, plus NAS running a docker container to tie-break any votes. The mITX usually runs HA but if I need to do anything to that, simply migrate HA to the N100 box, zero downtime.

    Speaking of AI and for Home Assistant automations, may I suggest:
    GitHub - magnusoverli/opencode · GitHub
    They have free cloud models you can use whilst you wait for Bazz's RTX 6000 machine to arrive ;)
     
  16. BazzUK

    BazzUK Are we there yet?

    Joined:
    6 May 2024
    Posts:
    226
    Likes Received:
    217
    opencode is great and very flexible, allows you to do virtually anything within HA
    I would suggest though, if you don't know what it is going to do once you ask it something, to only use it as a debug tools, it can guide you through fixing things when needed
    (remember, backups are there for a reason, even opencode makes mistakes (and does apologise when it does)
     
    wyx087 likes this.
  17. wyx087

    wyx087 Multimodder

    Joined:
    15 Aug 2007
    Posts:
    12,409
    Likes Received:
    884
    Oh yes. Totally agree. Best to code a few automations yourself first to understand the fundamentals. Using agent.local.md I also limited it to packages folder and keeping control of old automations myself.

    I have vibe coded whole house climate control using opencode, combining multi-split AC units (it's basically heat pump) with combi boiler into a single climate entity for whole house. Now, I just ask why it's not doing something I thought and it gives good explanation, then use it to tweak from there if needed.

    Worth setting up git version management in the config folder so you can easily roll back vibe codes and also easily see what was changed in VScode (or anything that works with git diff).

    Backup are a must, HA now have auto back up feature built-in. Make sure you set it to also save into your NAS. If all else fails, you can simply nuke HA and restore from an old back up. HA backup are surprisingly robust and portable.
     
    BazzUK likes this.
  18. MLyons

    MLyons 70% Dev, 30% Doge. DevDoge. Software Dev @ Corsair Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    3 Mar 2017
    Posts:
    4,327
    Likes Received:
    3,083
    Now let me introduce you to the world of zigbee.
    Need to know if a door is open? contact sensor
    Need to know if a garage door is open? contact sensor
    Need to turn on the lights? No you don't, motion sensors.
    Started plex and forgot to turn off the lights? HA catches the play start and slowly dims the lights.
    Need to get up to go to the toilet? Pause and the lights turn on at 50% brightness.

    I've tried to explain this to people and they think I'm an absolute madman... until they stay over.
    Waking up in the middle of the night to go to the toilet and the motion sensors turning on the lights but only dimly as it's dark is amazing. Stumble home from the pub and the lights turn on as you open the door.

    Also the Unifi doorbell is really nice.
     
    pete*, Arboreal, wyx087 and 1 other person like this.
  19. Mojo

    Mojo Multimodder

    Joined:
    18 Nov 2011
    Posts:
    4,958
    Likes Received:
    1,327
    I feel a i have a very expensive few months coming on....
     
  20. BazzUK

    BazzUK Are we there yet?

    Joined:
    6 May 2024
    Posts:
    226
    Likes Received:
    217
    Suppose that'll be my fault as well?

    :clap:
     
    MLyons likes this.

Share This Page