This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
My house alarm starting with Xiaomi door sensors
Matsaki
Member
First I need to say that I am really not familiar with Homey and flows yet. We are 2 people in the family and both with an iPhone paired with the Homey. My project is to start making an alarm for the house and I started with 1 Xiaomi door sensor and this is how I want it to work if possible:
I attach what I tried so far but it doesn't work. The alarm is not triggered when we leave the house.
I don't mind to pay if somebody can help me to set it up via TeamViewer.
(I also have a Synology NAS but it's not paired with Homey if it changes anything or can be made through that?)
- When the last person (iPhone) is leaving the house I want the alarm to be triggered automatically with a notification "You alarm is now activated".
- If a door/window is open I wanted a notification saying "Oops x device is open" and then have the option "Do you want to leave it open YES/NO". This is not necessary but maybe I want to leave a window or back door open, but the rest armed. If it can't be done it's ok.
- Now if an sensor is activated I just get notifications and it's not all the time I can hear or see them. Is there a way to make a special sound on the phone if the alarm goes of?
I attach what I tried so far but it doesn't work. The alarm is not triggered when we leave the house.
I don't mind to pay if somebody can help me to set it up via TeamViewer.
(I also have a Synology NAS but it's not paired with Homey if it changes anything or can be made through that?)
Comments
To get better messages, specific sounds and a history I suggest using the Pushover app
Its a learning curve, every day you find out stuf got ideas and then try and error....en after sometime you got more and more well know with making flows ect. And then when someone comes over to your house, you be a proud person to tell them what you accomplished.
its a different feeling, when you have to tell them thats nice but someone else did it for you.
"Thanks. Anyway I could pay for your help to set it up? I have so much work and other family issues now so even if I want to learn (which I will in the future) I want the alarm setup a.s.a.p."
Your first flow is setup that the alarm will only be armed if you left the house and left a window open.
So remove the contactalarm card in the “and” column and the heimdall app should ask you if the survailance should be armed.
if last person left, then send a message “nobody is home”.
That way you know for sure homey detects when the last person has left.
Another strange thing is that I added a second Xiaomi door sensor and immediately even if it's not included in any flow or in Heimdall it gives is working exactly as the Bedroom Window sensor triggers alarm and sends same push notification?!? (The new sensor does not have the same name)
Ps. I am still looking for a pro that can do the setup 100% correctly. Is there any other place where Homey professionals sell their services? Ds.
You can disable a flow by rightclicking it in the floweditor and select disable.
Your second motion sensor is working the same as your first sensor because in your flow you use the global “a sensor” card without defining a zone. Any motion sensor you add will respond to your flow unless you add a “is exactly” condition card in the AND column. You can use either homeys own logic cards or the better logic app for this.
Drag the zone tag from the IF column on to the “is exactly” card and define the zone your sensor is in (i.e entrance, hallway etc).
https://www.athom.com/nl/support/KB000007/
As for your alarm setup, you really should read the heimdall thread (top to bottom) as I think it will make everything clear as to how you should use the app in flows.
Also the settings page of the heimdall app has a “how to use” section.
I think if you give yourself an hour, read the thread and maybe even watch some videos on the supportpage, the penny will drop and you’ll be up and running in no time.
Good luck!
change your first flow to resemble the screen grab and delete your third flow.
Now you only have to make a new flow like:
IF survaillance is armed, THEN send push notification “survaillance is armed”
And again, read the settingspage of the heimdall app on homeys settings page. It’s all there
I am thinking to delete Heimdall and Smart Precense to start all over again as it might all be in a mess now.
You could off course delete the heimdall app but I’m not seeing how you could accomplish what you are trying to achieve with smart presence. Smart presence has the same functionality as homey’s own presence detection, detect if you are home or not. That’s it.
Anyway good luck with setting things up.
And sorry if I sound like a broken record but, read the instruction page of the heimdall app. It tells you step by step what you need to get a working alarm setup.
But respect and thanks to you Moek trying to help.
I followed your image with description and this is what it looks like now.
I didn't have a chance to try it really yet as it's late here. But is this supposed to activate the alarm when the last iPhones leaves from home and will it disarm when the first phone comes back? I can see now when making a test that I get a notification that I "You have an window or door open" and I have to say Yes or No. So does that also mean I can chose to leave something opened as I wanted?
When restarting Homey also the other sensor showed up in Heimdall
I just think that you should start out basic and build on that.
That’s why I think you should first follow the basic flows on the instruction page of the heimdall app.
Also, for now, skip the open window part and just make sure it’s closed when you leave the house.
It will make understanding how flows work much easier.
Concerning your current flows.
I would first delete both cards in the AND colomn because that’s where things start to go wrong. You’re using the cards the wrong way. The way it is now is that 2 persons have to confirm that a window is open to let the flow be executed and arm the survailance.
If one of you don’t respond to the message the flow stops. If one says yes and the other one says no the flow stops. And if you both say no it also stops.
And an open window shouldn’t be a condition for arming survailance in the first place ?
What you want is that the flow asks you (or your wife) if you want to activate the survailance:
IF last person left
AND confirmation card send to your phone “do you want to activate survailance”
OR confirmation card to your wife’s phone “do you want to activate survailance”
THEN activate survailance.
You can expand the OR column by clicking at the bottom of the AND column.
The second flow is almost ok.
It should be:
IF alarm is activated
AND confirmation card send to your phone “do you want to cancel the alarm”
OR confirmation card send to your wife’s phone “do you want to cancel the alarm”
THEN deactivate alarm.
Note that alarm is not the same as survailance.
The alarm gets activated when survailance is armed and a sensor gets activated.
To have survailance set to disarmed when someone arrives home you would do as follows:
IF first person enters home
THEN disarm survailance.
Hope this helps and good luck with the family!
https://itunes.apple.com/nl/app/homey-by-athom/id1106492815?l=en&mt=8
But hey, at least something’s happening now right?
Aouch that was news to me? Anyway, I installed the official app. but the notifications keps coming.