Page 1 of 1

[Patch] Home Simulation

Posted: Sat Jan 01, 2011 9:57 pm
by hhg
Here over the Xmas holiday I've added a simple kind of home simulation to my DomotiGa installation so the house look "inhabited" despite we were away.

It's very simple: I just "replay" last weeks device value changes. So to use it, you need all changes to be logged in DomotiGa, either by having everything controlled by the system, or use 2-way devices, that report local initiated status changes back to DomotiGa.

The overall functionality is controlled by a new global variable: Simulation. Value: On or Off. That way, it can be controlled by Events (e.g. enabled/disabled by a switch at the front door), and current status taking into account when evaluating PIR events etc.

When the functionality is enabled, every minute it looks for changes that happened a week ago, an "replay" those. Requirements: Devices must be switchable and/or dimmable, log to DB must be on (otherwise, no "history" to replay) and member of a group called "Simulation" - You don't want the coffee maker to start when your out of town...

I hope others find it useful.

Happy new year

hhg

Re: [Patch] Home Simulation

Posted: Sun Jan 02, 2011 11:55 am
by RDNZL
Simple way to do this, nice work.

Will include it.