Hi all,
First; Sorry for my English, i'm Dutch and didn't pay attention at school
Second; Played 1 week with Domoticz and love it! Have some experience with Indigo Domo and Vera, but Domoticz wins!!
My question;
I've made a 'WeZijnThuis' (WeAreHome) virtual switch which checks if my wife's iPhone OR my iPhone (iOS app Pilot) is at home > DO SET 'WeZijnThuis' switch ON. If we aren't home, the switch is OFF. But... What if a 'guest' (babysitter, family, other guests) is at our home (we aren't, to be clear ) and turns the lights ON; i don't want to run a script that turning the light OFF (because 'WeZijnThuis' switch = OFF), which is fine on a other day.
Hardware:
Synology
KAKU motion sensor (hallway)
Philips HUE (almost everywhere)
Some other KAKU unimportant devices
Guest access > presence
Moderator: leecollings
-
- Posts: 247
- Joined: Sunday 29 November 2015 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9639
- Location: Spain
- Contact:
Re: Guest access > presence
You could make a switch ('Guest' for example) and include a check for that in your script.
If ('WeZijnThuis' == 'Off' AND 'Guest' == 'OFF) THEN
If ('WeZijnThuis' == 'Off' AND 'Guest' == 'OFF) THEN
- Plaagje
- Posts: 42
- Joined: Thursday 30 April 2015 10:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Latest
- Location: Netherlands
- Contact:
Re: Guest access > presence
it totally depends on what you want the guest to have in your home, i mean, if your baby sitter is at your home but you and your wife are not, should the baby sitter have the same "priviliges" äs you have? should the lights go on if the baby sitter arrives at your home?
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Guest access > presence
I created an override switch which I toggle on my tablet interface. Had the same issue.... Babysitter calling me on my company's Christmas party telling me she couldn't turn on the lights ( my scripts turn them off when switched on by hand while they shouldn't be on
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
- cyberclwn
- Posts: 103
- Joined: Thursday 20 August 2015 22:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Guest access > presence
I "solved" this issue with a KaKu key-chain remote (the AKCT-510). The house-sitter (in my case) has this device, and when he enters my house he is ment to press the "1" button on it, and when he leaves press the "0".
This will set the "wearehome" switch to on, of off.
(actually i made it a bit more complex...
If my phone is found a lua script adds 1 to a variable called "presence" if my girlfriend's phone is found, the lua script will do the same. So if we are both home the variable will be "2". When the found isn't found anymore, the script substracts 1. And if the button is pressed on the key-chain it will also add or substract 1 from the variable.
This way i don't have to reconfigure the script if a phone is changed or more family-members arrive.
So the lights are turned on if it get's dark AND the variable > 1, and vice versa
I also included that if the remote is on >12 hours , it will turn it off. So if the person has forgotten to press 0 when he leaves, it wont mess up my counting of people present
This will set the "wearehome" switch to on, of off.
(actually i made it a bit more complex...
If my phone is found a lua script adds 1 to a variable called "presence" if my girlfriend's phone is found, the lua script will do the same. So if we are both home the variable will be "2". When the found isn't found anymore, the script substracts 1. And if the button is pressed on the key-chain it will also add or substract 1 from the variable.
This way i don't have to reconfigure the script if a phone is changed or more family-members arrive.
So the lights are turned on if it get's dark AND the variable > 1, and vice versa
I also included that if the remote is on >12 hours , it will turn it off. So if the person has forgotten to press 0 when he leaves, it wont mess up my counting of people present
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Who is online
Users browsing this forum: No registered users and 0 guests