YET another take on an alarm system


#1386

I’ve also been trying to get the final exit button I’ve mentioned above working - this is a button near my front door which essentially cuts short the exit time, the easiest way I can think to make this work is to immediately arm the alarm in away mode when it is pressed, but I only want that to happen when the alarm is in the “pending” state (for obvious reasons)

What I have so far is this:

alias: 'Final Exit Button'
initial_state: 'off'
trigger:
  platform: event
  event_type: deconz_event
  event_data:
    id: smart_switch
    event: 1002

condition:
    - condition: state
      entity_id: alarm_control_panel.house
      state: 'pending'

action:
- service: alarm_control_panel.alarm_arm_away
  data:
    entity_id: alarm_control_panel.house
    code: 'override'

I found the ‘override’ reference while reading through the code, it doesn’t seem to work, the alarm still continues on the countdown, so I’m guessing something would need to be implemented there to check for a new state?


#1387

This is such an awesome component! Thanks!

Once in a while i have this wrongly formatted layout see screen! Anyone knows what to do about it? browser doesnt matter have it on my pc and RPI


#1388

For those seeing messed up layouts of their Alarm home screen as seen in @eh50’s screen shot above… this happens some times on first load. Simply restart Home Assistant and it should correct itself. Alternatively, click the slider looking buttons at the bottom to begin configuration of your Alarm settings. If problems persist, clear caches and do a CTRL+F5 page refresh.

Now, can anyone explain or find a fix for the jscolor uncaught exception error that has been reported numerously in this thread?


#1389

Yes please… I’m too busy/lazy to troubleshoot this too.


#1390

Here is a quick and dirty fix for the jscolor.js file:

Replace the two function:
onDocumentMouseDown and onDocumentTouchStart

onDocumentMouseDown : function (e) {

	if (!e) { e = window.event; }
	var path = (typeof(e.path) == 'object') ? e.path[0] : null;
	if(path == null){
		return null;
	}
	var hasKey = "_jscLinkedInstance" in path;
	var target = e.explicitOriginalTarget || path;
	if(hasKey == false){
		return null;
	}
	if (target._jscLinkedInstance) {
		if (target._jscLinkedInstance.showOnClick) {
			target._jscLinkedInstance.show();
		}
	} else if (target._jscControlName) {
		jsc.onControlPointerStart(e, target, target._jscControlName, 'mouse');
	} else {
		// Mouse is outside the picker controls -> hide the color picker!
		if (jsc.picker && jsc.picker.owner) {
			jsc.picker.owner.hide();
		}
	}
},


onDocumentTouchStart : function (e) {
	if (!e) { e = window.event; }
	var path = (typeof(e.path) == 'object') ? e.path[0] : null;
	if(path == null){
		return null;
	}
	var hasKey = "_jscLinkedInstance" in path;
	var target = e.explicitOriginalTarget || path;
	if(hasKey == false){
		return null;
	}
	if (target._jscLinkedInstance) {
		if (target._jscLinkedInstance.showOnClick) {

			target._jscLinkedInstance.show();
		}
	} else if (target._jscControlName) {
		jsc.onControlPointerStart(e, target, target._jscControlName, 'touch');
	} else {
		if (jsc.picker && jsc.picker.owner) {
			jsc.picker.owner.hide();
		}
	}
},

#1391

Thanks, but there should be an underlying problem? This is a WAF dealbreaker and for me aswell coming home to a messed up alarm panel.


#1392

my alarm stopped working with the new version 0.84.6 someone with the same problem


#1393

It stopped working for me a minute ago after a restart, however it worked after updating until now…


#1394

version 0.83.2 is ok, version 0.84.6 does not work for me, does not set the alarm


#1395

I’ve only been arming and disarming the alarm via automations and it has been working fine on 0.84.6.

Just checked, it works from the panel too.

I can’t test triggering it because it’s 2am and the neighbours would not appreciate it.


#1396

Thank you, solved.


#1397

For other who may have the same problem, what did you do?


#1398

I’m still on 0.84.2. Just noticed that my “Night Mode” automation hasn’t been arming the alarm when I call “alarm_control_panel.alarm_arm_home”

Strangely, the “alarm_control_panel.alarm_arm_away” for “Away Mode” triggers just fine.

BUT, even more strangely, if I call either service directly in the HA UI, neither one will trigger… I’m really not sure what is going on…


#1399

I was using the old alarm, which until version 0.83.2, worked, I made the new version it was all ok


#1400

@eric10k93 are you using the override option to arm instantly?

alarm_arm_instant:
  sequence:
    service: alarm_control_panel.alarm_arm_home
    entity_id: alarm_control_panel.house
    data:
      code: 'override'

#1401

Ok i can see that when calling https://hassip:8123/alarm directly makes the white borders show up and destroying the layout

I dont want to expose my entire hass on the alarm panel (kids), just /alarm (trusted network, saving login creds for some reason doesnt work)

So also it would be a good idea to have an option to hide the hass menu all together (Not only when armed), right?


#1402

How can I add this component

alarm_control_panel:
  - platform: arlo

if i already use the alarm_control_panel: !include alarm.yaml
for my bwalarm?

It just keeps saying I got duplicate key when I add the above to my config.


#1403

I am not. How come?


#1404

remove this from alarm.yaml:

alarm_control_panel:

And just leave it in configuration.yaml like so:

alarm_control_panel: !include alarm.yaml

Only have this in your alarm.yaml:

- platform: arlo

Edit: aah now i read it a second time, your trying to add 2 alarms?


#1405

Hey mate,

Well kinda yeah. I’m currently using this alarm which works great. The problem is that I now want to add my Arlo Surveillance solution, but unfortunately I can’t figure it out :frowning:.

I want to be able to arm and disarm my Arlo devices, but as it is right now I can only see the information about the cameras and whether they recording anything or not.

Maybe it’s not doable if I already use this Alarm from the post here?