Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple configiration of parameters in Homesecurity #540

Open
Santai65 opened this issue Mar 22, 2024 · 20 comments
Open

Simple configiration of parameters in Homesecurity #540

Santai65 opened this issue Mar 22, 2024 · 20 comments
Assignees
Labels
question Further information is requested stale Hello?

Comments

@Santai65
Copy link

Plugin version

8.1.1

Plugin configuration

Default down load configuration

Homebridge version

1.7.0

What's your question?

Hi Miguel

I am an absolute novice (who is very eager to learn!) making slow but steady progress with my alarm system using your plug in (Rp4 + Homebridge + Homesecurity)
Are you able please to share some sample configs (via the GUI) that will execute on the following automation examples as shown
on your GitHub site

Trigger Actions
Motion is Detected Turn on Trip Night
Door is Opened Turn on Trip Away

I have been struggling to understand the basic concepts of Modes, Switches etc in the Home security plug in. I have read through all the documents available. However I am sure that with an example of the configs to execute on each of the above I will be able to improve my understanding of how things work and then do my own automation.

Many thanks for your help and patience

Duncan

@Santai65 Santai65 added the question Further information is requested label Mar 22, 2024
@MiguelRipoll23
Copy link
Owner

Hey,

No problem, you have to create the automations using the Home app installed by default in iOS.

This is a screen recording where I create an automation that when my motion sensor detects motion, it turns on the "Trip Away" switch.

trim.81413A3F-C388-4234-9A9F-1E20CA8A631B.MOV

If my security system is set to the Away mode, then it will trip the security system and trigger it.

Trip switches are for tripping the security system. Mode switches are for bypassing HomeKit limitations in order to for example set the security system mode to away when leaving.

Feel free to ask more questions

@Santai65
Copy link
Author

Hi Miguel,

Thank you so much for your patience and time. I tried what you suggested on my system and it works !!!. Now that I have this simple "hoe to do" information that you shared with me, I will continue to build my system.

Thanks once again.

I hope that it is ok if I come back to you with any more questions :)

@MiguelRipoll23
Copy link
Owner

Totally fine, you can use this issue to keep posting questions I will answer as soon as possible.
Thanks!

@Santai65
Copy link
Author

Santai65 commented Mar 24, 2024 via email

@Santai65
Copy link
Author

Hey Miguel,

Sorry to bother you again!

I have configured on/off button to arm my security system now with a delay of 30 seconds - works fine. Instead of getting the standard "arming security system " message. Instead of this message, I would like to add a .wav file of my own that plays via a connected speaker for the 30 seconds' delay. Could you please provide me with some guidance as to how I achieve this?

Many thanks for your patience.

Duncan

@MiguelRipoll23
Copy link
Owner

MiguelRipoll23 commented Mar 29, 2024

Hey @Santai65,

If you want to use your own sounds, first you gotta convert them to the MP3 format. Unfortunately I implemented the custom audio a long time ago and I hardcoded the audio format.

  1. Create a directory wherever you want:
    /home/user/my-sounds-directory

  2. Create a directory called en-US inside the directory:
    /home/user/my-sounds-directory/en-US

  3. Put your sounds in that directory and rename them accordingly (target for aming, current for armed)
    /home/user/my-sounds-directory/en-US/target-home.mp3
    /home/user/my-sounds-directory/en-US/target-away.mp3
    /home/user/my-sounds-directory/en-US/target-night.mp3

  4. Configure the plugin
    Inside the plugin settings expand the audio section.
    Enable the Play sounds (local-only, ffmpeg required) option
    Set the Custom Audio Path option to /home/user/my-sounds-directory for example

  5. Restart the plugin to apply the configuration changes

That should do the trick to get the custom audio working.

@Santai65
Copy link
Author

Santai65 commented Mar 30, 2024 via email

@Santai65
Copy link
Author

Santai65 commented Mar 30, 2024 via email

@MiguelRipoll23
Copy link
Owner

You're almost there, no worries.

You must rename the AlarmOn.mp3 file to target-home.mp3, the moment you do this without any additional actions you should listen to the sound when arming the Home mode. If you want the sound to play when the Home mode is already armed you should name your file current-home.mp3.

Now let's say you want to play the sound when arming the Home, Away and Night modes, you should then duplicate your sound file 3 times and name them like this: target-home.mp3, target-away.mp3 and target-night.mp3.

That will do it 💯

@Santai65
Copy link
Author

Santai65 commented Mar 31, 2024 via email

@MiguelRipoll23
Copy link
Owner

That's great to hear, glad to help.

BTW, are you from Australia by any chance?

@Santai65
Copy link
Author

Santai65 commented Mar 31, 2024 via email

@MiguelRipoll23
Copy link
Owner

I just wanted con confirm it was actually you 🙂

Thanks for supporting. Will issue a refund for the second donation as I am glad to help and don't mind helping at all. If life gets busier I probably would be able to answer in a few days top.

Feel free to ask all the questions you want in here, for real. This was my hobby project and I'm happy that it's useful for others.

Thanks again!

@Santai65
Copy link
Author

Santai65 commented Mar 31, 2024 via email

@Santai65
Copy link
Author

Santai65 commented Apr 11, 2024 via email

@MiguelRipoll23
Copy link
Owner

Hey @Santai65,

Sure, could you attach the image again in a new comment? Looks like GitHub failed to upload it in your previous comment.

@Santai65
Copy link
Author

Hey Miguel,

Thanks for getting back to me. Have attached the image
Viper228

Cheers

Duncan

@MiguelRipoll23
Copy link
Owner

MiguelRipoll23 commented Apr 12, 2024

I've been studying your diagram, nice work by the way.

Here's some instructions based on what I've interpreted from your attached image.

Main Door Open

Create an automation in the Home app using the event "when a sensor detects something", choose your contact sensor for the main door and the action would be to turn on the trip switch (either the global one called "Trip" or one containing a mode). This automation will play the alarm triggered when opening the door after the delay if not disarmed.

Back Door Open / Family Door Open

You want to trigger the security system immediately with no delay, right? I've thought some long ago to add a "panic switch" that does this, however the idea was discarded to avoid turning it on accidentally either using the UI or Siri. My recommendation would be to keep the delay even for sensitive zones for avoiding false alarms triggered physically or virtually but a new optional switch that implements the idea could be added if you really need it.

To sound the siren and flash some lights connected to a smart plug when the security system has been triggered, you would have to create an automation inside the Home app using the event "when an accessory is controlled", choose the security system, pick "when the security system is triggered" and finally turn on the smart plug as your action.

Note: I see that you want to flash the lights and make the siren sound only if the security system has been triggered by opening any door except the main one however this kind of condition is quite a complex one. Converting the automation to a shortcut to check if the main door is closed to turn on the smart plug could maybe work this out.

Alarm switch off

Create an automation using the event "when an sensor detects something", pick the triggered reset sensor and turn off the smart plug as an action (note: enable the triggered reset sensor in the plugin settings)

Turn off siren only

You want to stop the siren if the security system has been triggered for more than 10 minutes and switch to armed state, keeping the flashing lights on.

The way I'd do this to keep it simple would be to create an automation using the event "when an accessory is controlled", choose the security system, pick when is armed and turn off the siren smart plug as an action. This would always try to turn off the siren switch when is armed but there's no impact however. You may need to enable the advanced option "reset using off mode" if the automation is not working correctly while being in triggered state. Oh, reverting to the armed mode happens automatically if you set the "reset delay minutes" to 10.

Just to confirm, the flashing lights and siren are two different smart plugs?

@Santai65
Copy link
Author

Santai65 commented Apr 13, 2024 via email

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Hello? label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale Hello?
Projects
Status: No status
Development

No branches or pull requests

2 participants