YET another take on an alarm system

You can’t have code start with zero (0), When i changed the starting to another number it working fine.

As long as you surround the code with hyphens it should work ie code: ‘0000’

1 Like

Ah, ok. Thanks!

Hey, I am the developer of the Android MQTT Alarm Control Panel. The HASS MQTT Alarm Control Component doesn’t accept a code at this time, there is no mechanism for passing the code to HASS over MQTT that would work. That means anyone with access to your MQTT service could disable the alarm without entering the alarm code.

I suggested to @gazoscalvertos that he add a feature to the HASS MQTT Alarm Control Panel to accept a code since he has this working in his custom component. Once the feature is in HASS, I can update the Android application to pass along the code.

However, you can secure your MQTT server with a username/password and use this in the settings of the Android Application if you are worried about security. I don’t expose my MQTT server or HASS to the outside world, so it all works from behind my router/firewall.

1 Like

From the MQTT Manual Control Panel component documentation :

code (Optional): If defined, specifies a code to enable or disable the alarm in the frontend. This code is not required for MQTT interactions.

We should make it so the HASS component either requires the code or makes the code optional for the MQTT interaction. Once that support is added to HASS, any MQTT client can now send the code.

The issue with changing that component is it would require a lot of change from having a quick look.

It inherits the alarm component from the manual alarm component with no option to inherit any others i.e. this one.

In the short term it will be easier if I just add an option to either valid the code over MQTT or allow MQTT to disable without the code.

Disable without the code over MQTT is the current behavior, so we should stick with status quo until the HASS MQTT alarm component has support for it.

Hi mate Happy belated new year to you.

I have upgraded to your latest release, with the Panic mode, I have set a different code and when tested all it does it disarm the alarm …

Also were does it pick up the weather as the temp is wrong…

Any ideas…

All the best to you mate,

The panic mode sets a new attribute (panic_mode) listed under alarm_control_panel to activated

panic_mode: activated

You can then define your own automations to do whatever action you want.

It picks the weather up from the dark sky plugin, do you have this setup?

New updates pushed to repo:

(19/01/18) NEW FEATURE - MQTT now allows you to disarm your alarm using your code. MQTT panels will need to support the format of the payload which is ‘DISARM CODE’ for example ‘DISARM 0000’. To override this so that MQTT can disarm the alarm without passing across the code then set override_code: True in the alarm.yaml. Status feedback to MQTT coming soon…

(19/01/18) NEW FEATURE - The panel now allows you to hide the sidebar when the alarm is activated preventing an intruder to simply go to configuration and shut down HA. A suitable locked down browser will also be required to prevent the intruder simply changing the URL. You could check out kiosk on android. To activate this feature simply enable hide_sidebar: True in the alarm.yaml NOTE!! Ensure you copy alarm_scripts.js into the appropriate folder ‘www/alarm’. This was a tricky feature to implement and future HA updates may break this. If anyone has a better idea on how to code this then be my guest.

(19/01/18) ADDITIONAL STATE - Added ‘motion_detected’ as a supported state

Hi mate

Yeah sorry i read the state incorrectly… see Panic Mode Activated. What would the activation line look like in the automation as its a filter attribute not a state ?

With regards to the Dark Sky Temp, I have it setup and the Sensor Value in HA is

sensor.dark_sky_temperature = 1.4

the value on the alarm panel is -2.0.

Any ideas ?

Its based on sensor.dark_sky_apparent_temperature which is meant to be ‘Feels like temp’

I may change it to sensor.dark_sky_temperature to be honest

I’ll upload an example automation for the panic alarm when I get a chance, busy weekend ahead.

1 Like

no worries mate no rush …

Thanks for the confirmation… also

Seeing as though you’re a good lad, something along the lines of this will sort an automation for the panic mode:

alias: '[ALARM] Panic Mode Activated'
trigger:
- platform: template
  value_template: '{{ states.alarm_control_panel.house.attributes.panic_mode == "ACTIVE" }}'
action:
- service: notify.telegram
  data:
    title: 'HELP!!!!!!'
    message: '[ALARM] PANIC MODE ACTIVATED'
3 Likes

Your a Star As Always Thanks Mate…

Maybe something I missed in the instructions but does the alarm re-arm its self automatically?

If my alarm is armed and I set of a motion sensor and trigger the alarm, if I do nothing I get a push notification to my phone a few minutes later to say the Alarm has gone back into home mode, if I walk past the sensor the alarm triggers again…Is this intentional? Its not a problem, I quite like it. Just wondering if thats by design?

Also my motion sensor doesn’t show as an open sensor before I arm the alarm…any idea why?

If you look in the automation file you will see.
This part in the alarm.yaml
alarm: automation.alarm_triggered
warning: automation.alarm_warning

That is how an alarm system should work. It stays armed until you disarm it. Further triggers will cause it to re-trigger the alarm actions (siren, notifications, etc.)

I am using this alarm panel for a month now and it works like a charm. Thank you for that!
I have some requests for you.

  1. When I enter my code the panel should show asterisks **** and not the numbers I have pressed. It is just how it should be in case you are entering the house with a guest and you dont want them to know what your code is.
  2. I dont really care what sensors are closed, so the “all sensors” section feels like useless. This space could have another use. In my case, I would like to have a camera feed (I have an outdoor camera outside the main door) and see what is going on outside my door at all times. <— Can you guide me on how to do that? I have allready deleted the all sensors section, so the space below “open sensors” is empty on my interface.
  3. I have edited the css file and I made the keyboard buttons square and bigger according to the screen size of my tablet. I also made a .png file and changed the “skin” of the buttons. It looks nice but I cant find how to make the numbers larger. If I am not mistaken the font is inherited from somewhere else, but man, this is how far I can go. I did all these by myself and I have no idea how I made it so far. So, the real request here, is to have the ability to edit the interface with an easiest way in the css or the html file. (So I guess I am asking you to clean it up a bit… I think)

Here is what your alarm panel looks like in my house.
Thank you very much for everything, it is awesome!

5 Likes

Hi,

just updated to the latest version and noticed that the alignment of the title is off. Everything is centered except for the title.

image

And the label is cut off in disarmed & perimeter mode:
image

Cheers
Jochen

1 Like