r/HomeKit • • 5d 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.

346 Upvotes

50 comments sorted by

38

u/NTK-421 5d ago

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

6

u/nikfam 4d 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 5d 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 4d ago edited 3d ago

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

1

u/FoferJ 4d ago

Excellent, great info, much appreciated!

1

u/Gadobot3000 4d ago

Solid work. Very clever. Thanks for sharing!

75

u/nathan12581 5d ago

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

16

u/DaleYeah788 5d ago

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

37

u/nathan12581 5d 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

2

u/nikfam 4d 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 4d 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 5d ago

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

-5

u/nathan12581 5d ago

You ok?

2

u/Odd_Blackberry_5377 3d 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 3d 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 5d ago

Wow very clever!

1

u/nikfam 3d ago

NEW UPDATED TOOL - more lightweight and faster!

5

u/petemayhem 5d 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/chente08 5d ago

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

2

u/nikfam 4d ago edited 4d 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 4d 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 3d ago

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

2

u/Antique-Ad-4609 3d 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 5d ago

Very nice idea!!

3

u/Antique-Ad-4609 5d ago

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

2

u/Creative-Captain9278 5d ago

Yes please share the details!

2

u/leopard-licker 4d ago

Dude that’s so clever - love that

2

u/smartydoctor 4d ago

Brilliant 👍

2

u/ssaisusheel 4d ago

Crazy😂

2

u/the_quantumbyte 4d 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/yamiawakeat4am 2d ago

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

1

u/cryptodutch 5d ago

Lovely custom wallpaper.

1

u/vulcanbluesteel 5d ago

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

1

u/OzCroc 5d 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 5d ago

This is really awesome. 

1

u/my_hot_wife_is_hot 5d ago

Wow! This is genius!

1

u/Rodion7 5d ago

Looks amazing !

1

u/ellenich 5d ago

Very cool idea.

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

1

u/kimmelm 5d ago

This is crazy inventive. I love this.

1

u/Infamous-Ad625 5d ago

This is smart!!

1

u/nonecknoel 5d ago

Nice hack!!!

1

u/benjamingolub 5d ago

Brilliant!

1

u/DAZBCN 4d ago

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

1

u/Vegetable-Accident28 4d ago

Legit a great Idea.

1

u/cheezedip 3d ago

This is brilliant!

-1

u/iTaher 5d 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 4d 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 5d 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 3d 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