r/HomeKit • • 6d ago

Discussion HomeKit ideas (using Home Assistant)

UPDATE: no more Puppet. Built a lightweight integration, Card Camera, and it's up to 40× faster 🎉

Apple Home can't show custom dashboards, but it can show cameras. So with Claude's help I turned two Home Assistant views into live camera feeds in Apple Home.

Heating overview: every room with temperature, target, humidity and how far each radiator valve is open. Rooms that are heating show in orange.

Flight radar: the nearest aircraft overhead, with its route, airline, aircraft type and photo, plus altitude, speed, heading and distance on a live map.

What changed: the first version used the Puppet add-on, which keeps a hidden browser running just to screenshot dashboards, one page at a time. A fresh snapshot took about half a second. Card Camera draws each picture directly, with no browser and no add-on, and only when a value changes. The Home app now gets its picture in 10–30 ms instead of ~500 ms. That makes it ideal for multiple feeds: every card is its own camera, and they don't slow each other down.

On my Synology DS220+ a sensor card takes about 40–50 ms to draw and averages well under 1% of one CPU core. My heating feed runs at about 0.05%. - Up to 40× faster snapshots than the Puppet setup - Lightweight enough to run many feeds side by side, even on a NAS - Works on iPhone, iPad, Mac, Apple TV and the new HomeView - One package per feed sets up the camera and its HomeKit accessory - Every camera has a Load sensor and a Benchmark button, so you can see exactly how heavy each card is -

Ready-to-use four-sensor example in the README. Feed it to an AI with your entity names and describe the card you want .

Install via HACS (custom repository): https://github.com/nikf86/card_camera

Feedback and card ideas/screenshots of your creations welcome!

*For the wallpaper, I took a picture of the apartment from Google Maps live view and asked Gemini to merge it into an iOS/iPad wallpaper.

345 Upvotes

51 comments sorted by

38

u/NTK-421 6d ago

As someone who uses HA and front ends onto home app. This looks awesome mate. Details would be appreciated

6

u/nikfam 6d ago

If you have a homekit tv you can also use this integration as well for HA / Homekit: https://github.com/nikf86/homekit-tv-remote

5

u/FoferJ 6d ago

Wow, what a brilliant idea. Nicely done!

What kind of hardware specs are needed for the rendering of the dashboard pages to rtsp (?) video that Home Assistant serves as cameras? Can this be done on a Rasberry Pi 4b+? I have a Mac mini too, but macOS doesn't allow docker access to hardware transcoding.

3

u/nikfam 6d ago edited 5d ago

There is now an integration which is ~40x faster with less impact. Have a look at the updated post!

1

u/FoferJ 6d ago

Excellent, great info, much appreciated!

1

u/Gadobot3000 5d ago

Solid work. Very clever. Thanks for sharing!

75

u/nathan12581 6d ago

Normally I see ‘Claude’ and just don’t bother with the post but this is actually kinda genius

16

u/DaleYeah788 6d ago

So you haven’t used Claude? It’s quite remarkable what you can achieve.

37

u/nathan12581 6d ago

I’m well aware of Claude lol. Just sick of constantly seeing ‘I built this’ bs posts on this app asking for $6/mo for AI slop ‘they’ built with Claude in an hour with 20 billion security issues not knowing a single clue on how the app works themselves

3

u/nikfam 6d ago

I agree and disagree with this.. I think because AI allows you to really personalize your HA without sacrificing much time, it makes integrations and blueprints kind of obsolete. The same applies to what I presented here. It's so much easier to showcase the idea and then people use it to create their own instances using Claude than giving the code. Of course there is no need to beta test your own integration if someone has already built something similar.. but the looks, the functionality, the performance and security are now on you to improve. Just my thoughts..

2

u/FatMacchio 6d ago

You’re only limited by your imagination now tbh. I do think integrations and blueprints etc are still useful though, because many times other [smarter] people’s imaginations are better…or they have iterated to a point where it is generally recognized as the go-to. Even if you don’t use them, they’re great starting points…”but I wish it was like this and did that” etc. But having outside-of-the-box thinkers empowered with AI can be great to move the community forward too, but it also leads to a lot of slop crowding public discourse too, but the community is a great filter and will usually deal with the slop in their own way.

This is actually a really cool idea…I love it! I’m curious what your background is with tech/smart home stuff? Are you a long time home assistant power user, or are you a relative newcomer and are leveraging AI to brainstorm and execute?

0

u/DaleYeah788 6d ago

So just build it yourself and make sure it’s secure. Why subscribe to anyone’s app anymore.

-5

u/nathan12581 6d ago

You ok?

2

u/Odd_Blackberry_5377 5d ago

This is such a clever idea! Thank you for sharing your implementation and taking the time to put together a guide.

Your post inspired me to create a virtual camera for my Home Assistant energy monitoring dashboard. I can now see my live household power consumption, daily electricity usage, estimated costs, current TOU rates, and top five energy consumers directly within Apple Home and even on my Apple TV!

Absolutely love how it turned out. It’s amazing what we can achieve with a little creativity around HomeKit’s limitations.

Really appreciate you sharing this with the community! 🙌

2

u/nikfam 4d ago

Looks very nice! Just for info, if you advertise it as a doorbell instead of camera you get an extra trigger for automatic popups of the feed on apple TV. For example, if consumption rate is steep.. I will at some point provide more tips at the readme file of the integration

7

u/AppleAutoGenerated 6d ago

Wow very clever!

6

u/petemayhem 6d ago

I’d love to see how this works. For a long time I’ve been trying to get my WeatherStar 4000+ page to show up as a camera to expose through HA and this looks promising

1

u/nikfam 5d ago

NEW UPDATED TOOL - more lightweight and faster!

1

u/chente08 6d ago

That’s genius, been trying to get something like that for a while. You think will work on homeview too?

2

u/nikfam 6d ago edited 6d ago

Unfortunately I do not own one.. but theoretically as camera feed is a built in feature of apple homekit it should work perfectly fine. By the way someone mentioned that video feed is cropped into a square in homeview, but this can be easily resolved by adjusting the dimensions of the feed in Puppet. It works nicely also on my apple tv. The camera feed notification can also be utilized for this. To be honest, now I am tempted to purchase one to try out how multiple feeds would look since now I use a rooted echo show 8 with custom html dashboard and HA companion app..

1

u/Antique-Ad-4609 5d ago

This was my first thought too... and although I Puppet failed to install yesterday, I plan to borrow from OP's work and see if I can get this working this week.

1

u/nikfam 5d ago

Check the new integration I posted - It's far more lightweight and easier to install

2

u/Antique-Ad-4609 5d ago

Just did, and got exactly what I wanted up and running in like 5 minutes.  Thanks for having the idea and packaging it up nicely!!!

For anyone else interested, I used it to create a single calendar view that can be set as a home screen on the HomeView that is NOT a widget, it uses the whole screen. The default widget implementation of calendar on the modular face is a joke so until there’s a full screen calendar home face this approach works perfectly.

3

u/Disastrous_Passion36 6d ago

Very nice idea!!

3

u/Antique-Ad-4609 6d ago

This is really smart… and a good way to overcome limitations of the gen 1 HomeView widgets also!

3

u/yamiawakeat4am 4d ago

Very clever and resource efficient. Here’s mine using your HACS integration.

2

u/Creative-Captain9278 6d ago

Yes please share the details!

2

u/leopard-licker 6d ago

Dude that’s so clever - love that

2

u/the_quantumbyte 6d ago

This is crazy. That’s literally a shower thought I had yesterday to try to work around the HomeView limitations: make a dashboard with just one large camera and stream my photos to it to make it the photo dashboard, unless there’s motion on one of the cameras, which would bring it up. Sale if there’s a package or another event.

2

u/smartydoctor 6d ago

Brilliant 👍

2

u/ssaisusheel 6d ago

Crazy😂

2

u/my_hot_wife_is_hot 14h ago

This is genius. Pure genius. And it shows the benefit of AI. As a software developer, I get lots of ideas I just don’t have enough time to act on. AI gives people the ability to do so.

1

u/cryptodutch 6d ago

Lovely custom wallpaper.

1

u/vulcanbluesteel 6d ago

I’d love the details on this please as I’m trying to do something very similar. Good work!

1

u/OzCroc 6d ago

Looks good, I am using Casora Studio on HA and it is very similar to Apple Home and love the UI and usage. I am modifying Casora using Claude to make sure it suits my needs. Something to explore if you are keen :)

1

u/jasinx 6d ago

This is really awesome. 

1

u/my_hot_wife_is_hot 6d ago

Wow! This is genius!

1

u/Rodion7 6d ago

Looks amazing !

1

u/ellenich 6d ago

Very cool idea.

I’ve also seen a few apps that pipe UI into the iOS PiP overlay.

1

u/kimmelm 6d ago

This is crazy inventive. I love this.

1

u/Infamous-Ad625 6d ago

This is smart!!

1

u/nonecknoel 6d ago

Nice hack!!!

1

u/benjamingolub 6d ago

Brilliant!

1

u/DAZBCN 6d ago

I just wish Apple would allow native support for these things. The entire Apple home app seems half baked.

1

u/Vegetable-Accident28 5d ago

Legit a great Idea.

1

u/cheezedip 5d ago

This is brilliant!

-1

u/iTaher 6d ago

I'd rather build a custom homekit app with claude to show me these Dashboards vs be bothered with converting a view into a camera. This way these sensors can still be automated.

3

u/nikfam 6d ago

I agree, and I did try that route. But Apple Home is rock solid and needs zero maintenance. For an "at a glance" dashboard, which is all I wanted, it's perfect. And because it's built into the Apple ecosystem, it just shows up on every Apple device without any setup per device.

1

u/Antique-Ad-4609 6d ago

They’re all real sensors in HA, if that’s where you do your automations then you still can and you’d see real time status in HomeKit… the devices just won’t be physically actionable from the Home app.

If I’m understanding it all correctly.

1

u/TwaBoWidgetLite 5d ago

If you are looking for a possibility to control device or see actual status at Lockscreen or Homescreen. And accept to use Widgets. Then try TwaBo Widget. Lite voor read only and Pro for control also