YET another take on an alarm system

Do I get it right that you have your custom element inside the alarm panel?
And what do you mean by “switched my setup”? Can you switch it back to see if there is any difference?
I thought it is almost impossible to get a live camera feed in HA.
What camera are you using by the way?

I’m using a very cheap but reliable Wansview K2 running through iSpy open source camera software. It’s $25-30 USD on Amazon. I pull it into HA with a generic mjpeg platform. What I mean by switching my setup is that I added encryption (https) with duckdns and lets encrypt. My camera feed is not encrypted (http). The iframe worked before encryption. It showed a live feed and worked really well.

According to the HA docs for the panel iframe component, I can’t show an non-encrypted website in the iframe while using encription. I’m assuming this applies to this scenario as well. I did revert the changes and removed the encryption and my live feed comes back.

This migfht be worth a try. Open HA, click on the camera to get the full view, right click the video and select “inspect element” (that’s what it’s called in firefox, no idea for other browsers) copy the highlighted element’s Outer HTML, something like this:

<img class="camera-image style-scope more-info-camera" src="/api/camera_proxy_stream/camera.front?token=[my_token_removed]" alt="Front">

Paste that into your config.

Hi Everyone,

Couple extra screens to share below.

Working on floorplan integration, the idea is open/tripped sensors auto show floorplan and if configured correctly lights up those tripped sensors. The image below is still very much a work in progress but the basics are there and you should get the idea.

The second image is native camera integration into the panel (btw I wish those were my actual cameras :-)). Just specify a list of camera entities in the alarm.yaml and hey presto.

7 Likes

Hope you update to github soon. This is really nice and useful.

Hi

I’ve decided to try this alarm panel as it seems way more advanced than the basic one, however I’m running into a problem that I haven’t seen while browsing / searching the thread…

At first I was getting an error about the custom component not being found, so as a couple people suggested I rebooted my server. From that moment, the HA service doesn’t seem to start properly anymore - the page won’t load, and I also have the Mycroft AI on another machine accessing HA through the API, it tells me it can’t find the HA server…
I have to remove / rename the custom_components folder in order for HA to work again.

Any ideas? HA’s log is of no help, and I couldn’t identify anything in the system log either…

Thanks.

PS: of course I have the Javascript instruction in my config file, however it it doesn’t seem to be the problem as the server can’t be reached at all.

It sounds as though either a file is in the wrong directory or you have a yaml error somewhere. What does the HA log say?

To get this running add the files from this repo into your home assistant configuration directory, the directories need to match

alarm.yaml
panel_custom.yaml *(See Note Below)
panels/alarm.html
custom_components/alarm_control_panel/bwalarm.py
www/lib/countdown360.js
www/lib/jquery-3.2.1.min.js
www/alarm/alarm.css
NOTE: If you already have a panel_custom.yaml for say floorplan then just copy and paste the code from this repo file into your own panel_custom.yaml to prevent floorplan from being overritten.

Then add the following to your configuration.yaml file:

alarm_control_panel: !include alarm.yaml
panel_custom: !include panel_custom.yaml
NOTE: If you experience issues with the page not displaying then add the following:
#CONFIGURATION.YAML
frontend:
  javascript_version: latest

Let me know how you get on

This fantastic UI has made me think the basic idea of the keypad needs to go in HA right out of the box…

https://github.com/home-assistant/home-assistant-polymer/pull/1134

3 Likes

Having had another breaking this week, I’m going to implement this Alarm. Have already got the windows/door sensors. I’m looking for a siren, which will make a hole lot noise, and hopefully scare buglers. What have you integrated?

I ended up making my own siren for integration into HA.

2 Likes

I have placed these zwave sirens around the house.

They a very loud and support multiple tones so that I have different sounds triggering on different automations.

For example:

  • The trigger automation sets off the 'Police Siren’
  • There is a door automation which sets off a ‘Chime’ when one of the doors opens when the alarm is disarmed
  • There is another automation which plays a ‘Chirp’ when one of the doors is open longer than 60 seconds. This repeats every 60 seconds until the door is closed.

I don’t have an outdoor one configured yet. I do have a chubb 433mhz rolling code wireless one mounted which I can’t integrate as is, at some point I want to install a zwave/zigbee switch inside to replace the 433mhz element

Thanks
I have set up at D-Link z510. I seems to be working, but I don’t know how to trigger the Siren. I’ve these in the States:
zwave.dlink_corporation_dchz510_siren
sensor.dlink_corporation_dchz510_siren_burglar
sensor.dlink_corporation_dchz510_siren_sourcenodeid
sensor.alarm_type
sensor.alarm_level

Should I have a Switch for the Siren?

Yes you should have a switch. I have one of those two and if I recall correctly I had a hassle adding it to the zwave network. Sometimes it randomly drops off the network too.

Was it difficult to get the floorplan header bar removed?

I am trying to add HA scripts into the custom-elements.html but I cant figure it out. Can you guide me on how to do it? Basically I want to have a button that will trigger a script I made.

Took a little trial and error, it can’t easily be added to the custom-element.html without a lot of additional code.

I have built the new panel to integrate directly with FP, all you need to do is specify the binary_sensor it relates to in the settings page.

The new panel is probably 70% of the way there so hoping to have something to share soon

3 Likes

I found a “bug” in the persistence/MQTT integration when using the mobile app (I’m using the Android app).
If I arm/disarm the alarm from the app then I change it’s status from the web interface and restart the HomeAssistant, the state gets overwrite by the home/alarm/set MQTT topic. It looks like that the home/alarm/set topic is set to retain so when the HomeAssistant get restarted, the alarm panel subscribe to that and overwrite the state.
A simple fix (I guess) would be to update the mobile app so that the home/alarm/set topic is not retained and only the state gets retained.

This may have been picked up before so I apologise. I’ve just installed Hass-Custom-Alarm and all working great, working with well with the default settings.

A coupe of things not working as expected however. I can’t seem to get the clock to display even though I have it set to true in alarm.yaml.

Also is there a way of changing the delay to disable the siren once its been triggered? there seems to be about a 5 second delay between disarming the alarm to when the siren stops.

Many thanks

Ade

I know the answer to your first question because I asked the same: define sensor.time in HA.

2 Likes

I’m not sure I follow. So if you say set the alarm to ‘home mode’ in the android app (is this the one mentioned in previous posts?) then from the web interface disarm the alarm and restart HA, HA starts up and sets the alarm back to ‘Home Mode’ is this correct?