My smart home learns my routines without cloud AI—here’s how it works


Our daily routines are rarely fixed. The way we interact with our smart homes changes from day to day. Using Home Assistant, my smart home has learned my routines without the aid of AI or cloud services.

What Presence Simulation does

Learning your habits from your usage history

Light switches on a wall with a plant and window in the background. Credit: Bertel King / How-To Geek

Presence Simulation is a custom component for Home Assistant. It pulls data from Home Assistant’s history database over a set number of days, which must be shorter than the period retained by Recorder. The default retention period is 10 days.

Presence Simulation supports entities including lights, covers, and media players, as well as any other entities that can be set to on or off. If you can turn an entity on with homeassistant.turn_on or turn it off with homeassistant.turn_off, then you should be able to use that entity with Presence Simulation.

You can install Presence Simulation by searching for it in HACS and selecting the appropriate result when it comes up. Once installed, you can configure it by choosing the entities you want to use with Presence Simulation and the delta value, which is how many days back it will pull data from. There are also optional settings, such as whether to restore entities to their previous states after simulation and a brightness level to use for supported entities.

Home Assistant Green

Dimensions (exterior)

4.41″L x 4.41″W x 1.26″H

Weight

12 Ounces

Home Assistant Green is a pre-built hub directly from the Home Assistant team. It’s a plug-and-play solution that comes with everything you need to set up Home Assistant in your home without needing to install the software yourself. 


Presence Simulation can recreate your behavior when you’re away

Your house acts like someone is at home

The purpose of Presence Simulation is not hard to guess, given the name. It’s intended as a way to make it look like someone is living in your home when you’re away. By running Presence Simulation when you’re on vacation, for example, you can make your lights turn on and off or your blinds open and close so that it appears as if your home is being lived in.

The beauty of Presence Simulation is that, because it uses the real data from your smart home, you’re not in a situation where your lights all turn on at exactly the same time every night, and all turn off at the same time. That kind of rigid schedule makes it more obvious that you’re using automation, but with Presence Simulation, your smart home will act in a much more organic way, since it’s simply repeating exactly how you used it.


Raspberry Pi computer on a wooden surface with cables connected.


These Are the 7 Best Ways to Run Home Assistant

Find the best hardware for your smart home hub.

Why Presence Simulation is different from other options

You don’t need to create anything

IKEA Tradfri smart bulb in a kitchen overhead light. Credit: Tim Brookes / How-To Geek

You don’t need to use Presence Simulation to make your lights turn on and off when you’re away from home. You can create your own automations that will control various devices in your smart home when you’re away to make it look like you’re still home.

What makes Presence Simulation different is that you don’t need to manually program when your lights will turn on and when they’ll turn off again. With a large number of entities in your smart home, it can be a thankless task setting up an automation to control them all in a realistic manner.

With Presence Simulation, all you need to do is use your smart home as you normally do. The custom integration will then repeat the actions you took in your smart home a set number of days ago, as determined by your delta value. If you use a delta value of 7, for example, your lights will turn on at the same time as you turned them on last week, your blinds will close at the same time as last week, and so on.

This means you can add a large number of entities to Presence Simulation, all of which can change state at different times, which would take a long time to set up manually. It means you can create a highly convincing recreation of someone interacting with your smart home without having to spend hours setting it up.

All your data stays local

No AI and no cloud services required

Home Assistant Green on an entertainment stand. Credit: Bertel King / How-To Geek 

One of the best parts of using Presence Simulation is that since it uses the history from your Home Assistant server, everything happens entirely locally. No data needs to leave your home, and nothing ends up on third-party servers.

There’s also no AI involved at any stage. While you could use AI to simulate presence in your home, Presence Simulation doesn’t use AI at all, and the results can feel more realistic because they’re based on your real-life interactions.

Hooking Home Assistant up to an AI service can produce some impressive results, but sharing information about your smart home with third-party services isn’t entirely compatible with the privacy-focused principles of Home Assistant. Presence Simulation gives you great results without having to sacrifice privacy.


The best integrations are often the simplest

Presence Simulation is based on a straightforward idea: a convincing way to simulate your presence at home is to replay your real interactions. While the idea is simple, the results can be really impressive.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


I consider myself part of many fandoms. Some are from my childhood, others from college, and now, as a young adult, but they all mean something to me on some level. One of those just happens to be Star Wars.

For years, I have adored the Star Wars franchise, mainly because I grew up on those movies. But I must admit, the best Star Wars film isn’t one of the classics from the 1970s and 1980s. No, it’s actually a rather new one—and it’s time you gave it the praise it deserves.

Rogue One is the best Star Wars movie by far

It simply can’t be beaten

Jyn Erso in Rogue One: A Star Wars Story speaking to someone. Credit: Lucasfilm

So hear me out.

What are my credentials to say this? Really, none except for the fact that I grew up watching the entire franchise, as I’m sure most people reading this article did. I am a fan whose brother was obsessed with Luke Skywalker and Han Solo and whose father would meticulously quote Yoda as if he were real. I was raised on Star Wars, both the Star Wars movies and TV shows.

So I must admit that I’ve watched the first movies a few times, the prequel films many times, and, of course, the sequel movies. And they’re all great. Trust me. They are. But to me, Rogue One, otherwise known as Rogue One: A Star Wars Story, is the best film in the series.


Star Wars logo.


8 Classic Star Wars Games Every Fan Should Play At Least Once

Enjoy these games, you will.

You can’t really surpass some of the iconic moments that have cemented themselves into movie history from the originals, such as the legendary reveal of Darth Vader being Luke’s father, Han and Leia’s love exchange, and, of course, the epic lightsaber fights that happen in both the original films and the prequels.

But I think what makes Rogue One the best Star Wars film is that it’s the perfect movie set in the Star Wars universe, with a plot that matters without trying to be anything else. It doesn’t aim to become bigger than it originally was—a story about a group of rebels who begin the entire story of A New Hope thanks to what they did.

The characters make it so much more enthralling

My favorite ones come from here!

I think what really stands out in Rogue One is the memorable characters. One was so memorable and beloved that Disney created a critically acclaimed TV show about the character. That’s how you know they were good.

But they weren’t just well-written characters with complex backstories and interesting comedic bits. They were likable. I feel like a lot of Star Wars characters fall into an unlikable trap.

There are plenty of characters who are likable and memorable, but I’m not entirely sure their stories are as fleshed out, so we see their flaws much more easily. I honestly think a big reason fans didn’t like Rey as much was that her story didn’t feel as well-told. They tried to make her bigger than she needed to be—her original story, of just being a random girl with the Force who had no connection to anything else, felt a lot more original than her being a granddaughter of Palpatine.

That’s what makes Jyn Erso (played by Felicity Jones), the main protagonist of Rogue One, so good. Yes, she is the daughter of an Imperial scientist, but she doesn’t have any powers, secret abilities, or anything like that. She’s a rebel who aims to help and is very human and flawed but does her best. Those traits are carried out throughout every character we meet in Rogue One, including Cassian Andor (Diego Luna).​​​​​​​

The action and special effects are top-tier

The BEST blaster fights

A ship explodes from bombs in Rogue One: A Star Wars Story. Credit: Lucasfilm

I know for a fact that the sequel films fell into a bad rhythm with their action. It didn’t feel as well-choreographed or as well-executed as the special effects in previous films. But with Rogue One? It never feels like that.

I honestly believe it’s because the movie is more grounded in war than in epic space battles and moving things with the force all the time. It’s about a group of humans and droids who are trying to work together to bring an end to the Empire. Most of them don’t really have powers, and that leads to some really well-done sequences that feel real in ways where even we could relate to them.

Of course, there’s that epic final scene of Darth Vader basically destroying and killing everyone with his skills and the force, but that doesn’t feel pushed into the story. That feels authentically woven into the storyline and done in a way that shows his power and how it connects to the overall story. That’s an effective way to use that kind of power.

War-focused action with a little hint of those special effects made this so much better.

The original films are still great, but just not my favorite

Jyn and Cassian have my heart

I’m not saying I don’t love the original Star Wars movies because that is not the case. I love the originals and the sequels with a heavy passion. There’s a reason why most Star Wars board and card games are centered around those characters—we love them because we grew up with them.

From a theatrical perspective, with its compelling story, well-developed characters, and impressive effects, Rogue One stands out as the supreme leader of the series. I genuinely cannot find a fault in this film within the grand timeline of the Star Wars universe, and honestly, I wish we got more of movies like this.

Grounded Star Wars feels so much more relatable, and I think that’s a big reason why Rogue One is successful. As much as we love the powers and the Force and epic lightsaber fights, we would all most likely be like Jyn or Cassian, rebels trying to fight for the greater good. And I think that’s beautiful.

Either way, we’ll still be getting plenty of new Star Wars content soon, including a Darth Maul show, apparently. Maybe something new will surpass Rogue One. But for now, I doubt it. And if you haven’t seen Rogue One, you should check it out on Disney+.

Subscription with ads

Yes, the Disney Basic plan

Simultaneous streams

Up to 4




Source link