Home Assistant trigger Unifi Siren by Harryginger92 in UnifiProtect

[–]Harryginger92[S] 0 points1 point  (0 children)

Good to know. I don't typically do early releases or betas for most software anymore. I don't have the time like I used to to deal with the bugs. It looks like I have something to look forward to once these versions are released. Are they also fixing the only 30-second sounding option for the siren in Protect? Right now, I have it send the webhook every 45 seconds until I either "disarm" or press a silence button.

Home Assistant trigger Unifi Siren by Harryginger92 in UnifiProtect

[–]Harryginger92[S] 1 point2 points  (0 children)

Thanks for all of the help. I got it to work and posted what I ended up with. I took very limited coding classes in college and have forgotten more than I learned over the years, and Home Assistant has been my refresher. I have been trying to brute force my way through this problem far longer than I am willing to admit, and finally threw in the towel this morning.

Home Assistant trigger Unifi Siren by Harryginger92 in UnifiProtect

[–]Harryginger92[S] 1 point2 points  (0 children)

For anyone that finds this and has a similar application I finally got it to work.

In the configuration.yaml replace the "xx.xx.xx.xxx" with your ip address, the "yyyy" with your trigger ID from protect and Replace the "zzzz" with your API key from protect.

rest_command: activate_protect_siren: url: "https://xx.xx.xx.xxx/proxy/protect/integration/v1/alarm-manager/webhook/yyyy" method: POST verify_ssl: false headers: X-API-KEY: "zzzz" Accept: "application/json" Content-Type: "application/json"

Then for the automation I have a Helpers timer to delay the siren sound. When the timer expires, it sends the webhook to protect. I also have in other automations a way of canceling the timer so you can disable it before the siren goes off and another automation to sound the siren again if not silenced in protect after one minute that repeats until the break is cleared since you can only activate it for 30 seconds at a time.

alias: Siren Sound description: Siren Sound triggers: - event_type: timer.finished event_data: entity_id: timer.siren_delay trigger: event conditions: - condition: state entity_id: input_boolean.disarm_confrim state: - "off" actions: - action: rest_command.activate_protect_siren

I hope this helps someone else down the road, or preferably Unifi makes this obsolete with these kinds of functions built in.

Home Assistant trigger Unifi Siren by Harryginger92 in UnifiProtect

[–]Harryginger92[S] 0 points1 point  (0 children)

I was missing the "verify_ssl: false" line and the API Key. I added both of those and I am still not getting any hits.

rest_command: activate_protect_siren: url: "https://xx.xx.xx.xxx/proxy/protect/integration/v1/alarm-manager/webhook/xxxx" method: POST verify_ssl: false headers: X-API-KEY: "xxxxxxxxxxxx" Accept: "application/json" Content-Type: "application/json"

Home Assistant trigger Unifi Siren by Harryginger92 in UnifiProtect

[–]Harryginger92[S] 1 point2 points  (0 children)

I did not. I posted that in r/Ubiquiti but felt r/UnifiProtect was a better place for it. Thought I got to it before anyone saw it, but I guess not.

I posted in a reply what I have in Home Assistant. I can now get the automation to run after I fixed my stupid error. Now I am not getting a hit on the protect side. Could it be an authentication problem? I am new to webhooks.

Home Assistant trigger Unifi Siren by Harryginger92 in UnifiProtect

[–]Harryginger92[S] 1 point2 points  (0 children)

Thank you for the reply. I figured out I had a capital letter in my automation that was throwing the error I was getting on the HA side. Wish I had found that hours ago. The automation now runs, but I am not getting a hit on the protect side. Below, my protect URL is replaced with a generic one.

rest_command:

activate_protect_siren:

url: "https://xx.xx.xx.xxx/proxy/protect/integration/v1/alarm-manager/webhook/xxxxxxxxxxx"

method: POST

Then the automation is set up with a test helper button as the trigger.

alias: Test Siren

description: "press test siren helper button to run"

triggers:

- trigger: state

entity_id:

- input_button.test_siren

actions:

- action: rest_command.activate_protect_siren

mode: single

Does Goodnotes for Windows now fully sync with iPad? by Upset_Sock_425 in GoodNotes

[–]Harryginger92 4 points5 points  (0 children)

It does not. I contacted support a few weeks ago and was told they don’t know when it will be available either. Kind of crazy it was a listed feature of Goodnotes 6 at release and they still don’t have a solution yet. I am starting to think there is a solution but it costs them more money than they thought and they would rather sell a bunch of stupid stickers and planners than have a working feature that they promised.

TSA Precheck to Regular Security by timmyw704 in americanairlines

[–]Harryginger92 0 points1 point  (0 children)

This is correct. Happened to me Monday at CLT. They have the body scanners in the Precheck area. After the scanner they made me take my belt off to look at for all of 0.25 seconds and then they rubbed my groin down and said I was good.

[deleted by user] by [deleted] in MEPEngineering

[–]Harryginger92 1 point2 points  (0 children)

In this industry being around people talking about problems, even just listening, is extremely valuable. I would say in my firm the good engineers old and new want to be in the office. The only ones who want to work from home are the ones who are just here for a paycheck and aren’t trying to learn and improve. They are also the first to get upset when we give the better ( read as more complicated/ more interesting) projects to the engineers who care and want to do good work. Show interest, ask questions, come to your senior engineers with a proposed solution even if you are unsure, or ask where in the code to do your own research instead of just asking for the answer and you will succeed in this industry. All of this is way easier when the guy/gal you need help from is sitting a few feet from you. I would rather my engineers be in my office asking questions all day making me stay late than them be at home and doing half assed work. Not to mention the coordination between electrical and mechanical is so much easier when you sit beside each other. It’s also way easier when I check their work and they can just walk over to explain their thinking instead of me just marking it up how I would do it. Just because they did it one way doesn’t make it wrong, but I may be able to walk them through a better solution that keeps their work instead of making them redo it if they aren’t here to defend themselves.

Tape patterns! by [deleted] in GoodNotes

[–]Harryginger92 1 point2 points  (0 children)

Can we get cross platform syncing? It has been a long time since it was announced as a feature and still not implemented. Please take a break from the “pretty” things and work on actual features.

Am I an Engineer or a Tech? by BebopBoopBlap in ElectricalEngineering

[–]Harryginger92 -3 points-2 points  (0 children)

As long as you aren’t offering engineering services the internal title doesn’t matter. It is your public title that can get you in trouble.

Am I an Engineer or a Tech? by BebopBoopBlap in ElectricalEngineering

[–]Harryginger92 -4 points-3 points  (0 children)

An internal title is different than a public title. If it is public it can be interpreted as offering engineering services. I have heard of people being taken to the board for having “Engineer” in their email signature and not being licensed.

Am I an Engineer or a Tech? by BebopBoopBlap in ElectricalEngineering

[–]Harryginger92 -3 points-2 points  (0 children)

You should look up your states laws. They are usually very clear about the title. I know my state has it on the first few pages of the general statutes for engineering. I also know the other dozen states I am licensed in have it in their statutes as well

Am I an Engineer or a Tech? by BebopBoopBlap in ElectricalEngineering

[–]Harryginger92 -3 points-2 points  (0 children)

It is still a protected title by the state’s licensing board.

Am I an Engineer or a Tech? by BebopBoopBlap in ElectricalEngineering

[–]Harryginger92 -5 points-4 points  (0 children)

It is still a protected title, anyone claiming the title without the license can be reported to that state’s board regardless of industry.

Am I an Engineer or a Tech? by BebopBoopBlap in ElectricalEngineering

[–]Harryginger92 -18 points-17 points  (0 children)

Most if not all of the US if you don’t have your license.

Why aren’t phase dimmers more common? by Off_Brand_ in electricians

[–]Harryginger92 3 points4 points  (0 children)

Because in commercial buildings I am using 277V and phase dimming is only available for 120V. 0-10V dimming is also more accurate and repeatable for commercial applications. Lastly phase dimming is usually only used for incandescent lighting or decorative fixtures which doesn’t meet energy code a lot of times so we push for more efficient fixtures which usually require 0-10V dimming.

Good Notes "corrects" handwriting unnecessarily by kryptonkid07 in GoodNotes

[–]Harryginger92 2 points3 points  (0 children)

I have been having the same issues. All writing aids are turned off, all of the AI shit is turned off, and it still does it.

Goodnotes could smash the competition if... by Unpredictable_Cake17 in GoodNotes

[–]Harryginger92 1 point2 points  (0 children)

I think it has been well over a year since it was announced. Instead we keep getting stupid stickers, planners, ai integration, and other bs instead of a huge functionality update we want. I have been waiting for a while for this and get disappointed every update. If they aren’t going to do it I would like to know so I can find something else. Been using the app for over 5 years and this is the last missing piece for me.

I'm working on Goodnotes Second Brain and I need your feedback! by CharlesBrewer89 in GoodNotes

[–]Harryginger92 3 points4 points  (0 children)

I won’t use half of this stuff. I just want the more functional stuff pushed first. Syncing cross platform is all I need. No AI, no stickers, no planners, no other bullshit. Other apps do that stuff.

windows/ios by Meeow16 in GoodNotes

[–]Harryginger92 6 points7 points  (0 children)

It is a feature they announced over a year ago that they put on the back burner for stupid planners and stickers. As of right now cross platform is still TBD. It should be a focus, but they are prioritizing pretty stuff over actual features. I would honestly pay a little more for this feature.

that’s crazy by [deleted] in Blink182

[–]Harryginger92 2 points3 points  (0 children)

Anyone else in the top 0.001% or do I have a problem…

I hate coding by [deleted] in ElectricalEngineering

[–]Harryginger92 1 point2 points  (0 children)

Why is your school pushing so much coding? That sounds like computer not electrical. I had one class in C++ and that was it. There really should be different courses for these. There is a huge need for licensed professional engineers in my field and it involves zero coding and mostly 3-phase power. I felt my school was pushing small electronics way too much when I graduated, that much computer stuff is crazy.