YET another take on an alarm system

I can’t get it to work as expected. I used installation via HACS, created folder as instructed. I get the UI and can select the different pages. The problem is that configuration changes are not stored and the alarm can not be armed.

Error log:

Sun Jul 07 2019 07:35:00 GMT+0200 (Midden-Europese zomertijd)
'<' not supported between instances of 'str' and 'int'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
    connection.context(msg))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call
    self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1170, in _execute_service
    handler.func(service_call)
  File "/config/custom_components/bwalarm/alarm_control_panel.py", line 401, in alarm_yaml_save
    alarm.settings_save(service.data.get(CONF_CONFIGURATION), service.data.get(CONF_VALUE))
  File "/config/custom_components/bwalarm/alarm_control_panel.py", line 805, in settings_save
    self._config[key] = self._yaml_content[key] = value
  File "/usr/local/lib/python3.7/site-packages/ruamel/yaml/compat.py", line 275, in __setitem__
    return self.__setsingleitem__(index, value)
  File "/usr/local/lib/python3.7/site-packages/ruamel/yaml/comments.py", line 392, in __setsingleitem__
    if idx < len(self):
TypeError: '<' not supported between instances of 'str' and 'int'

And this:


'armed_away'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
    connection.context(msg))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call
    self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1170, in _execute_service
    handler.func(service_call)
  File "/config/custom_components/bwalarm/alarm_control_panel.py", line 421, in alarm_arm_away_from_panel
    alarm.alarm_arm_away_from_panel(service.data.get(ATTR_CODE))
  File "/config/custom_components/bwalarm/alarm_control_panel.py", line 1169, in alarm_arm_away_from_panel
    return self.alarm_arm(Events.ArmAway, code, True)
  File "/config/custom_components/bwalarm/alarm_control_panel.py", line 1144, in alarm_arm
    self.process_event(event, arm_immediately)
  File "/config/custom_components/bwalarm/alarm_control_panel.py", line 1260, in process_event
    if (datetime.timedelta(seconds=int(self._states[STATE_ALARM_ARMED_AWAY][CONF_PENDING_TIME])) and override_pending_time == False):
KeyError: 'armed_away'

mate, please read this.
and if you have an issue, please open it on GitHub (but make sure you include more relevant information when you do so).

Same issue as you, already created an issue on github page for them

I need some help to install the alarm…
I have found two resource:



what version i need to install? i need to use the file from both version?
i have put the file but i receive this error: Platform not found: alarm_control_panel.bwalarm
i’m on 0.97.1, Hassio
Thanks a lot for all your help!! :smiley:

The second one. It is being actively maintained.

I get the same error, hoping for a solution. :+1:

I have solved the problem by downloading the zip in this link: https://github.com/akasma74/Hass-Custom-Alarm/releases/tag/v1.10.1
after that use the instruction above:
copy the folder with sftp here

  custom_components/bwalarm/  The alarm system code, resources and documentation there
  resources                  This folder stores your alarm configuration and some user data (i.e badges)

I can’t use the Xiaomi Vibration sensor, someone have used the alarm panel with this sensor?
They are sensor not binary, the action are Vibration or Tilt not ON or OFF.
Regards
Stefano
P.S. If are not implemented please implement this AK74 :smiley:

Best to ask here for support:

You could always make binary template sensors from your sensor.

Doesn’t work for me! Someone who has tips or solution? Has hass.io 0.95.4 now and its work but not on 0.97

As already pointed out, this version currently has no support.
If you want to use a working version, you need to install this fork and use Github if you have any issues with it.

Works for me too.

Is this how the “new UI” is supposed to look?

yes. also, please read this post

Good day! I need help. When my alarm has been armed and tried to trigger the alarm but the alarm status remains as “Home” see attached screenshot in red box.

Very much appreciate if someone could advise what need to be done in order to see the correct status when alarm has been triggered.

image

This custom alarm component has not been maintained for quite some time. See this replacement:

Great Alarm Panel:

Can you help? (Anyone!)

I have two Sirens and want them to sound via and Automation, what am I doing wrong, please?

Can anyone help, I have 2 sirens and want to set them off if the alarm is triggered, I thought this should be simple but I cannot get it to work:

#Sound alarm if Control Panel Armed and Triggered

#Sound alarm if Control Panel Armed and Triggered
- id: '1575579854434'
  alias: Turn on Sirens if Alarm Triggered
  description: ''
  trigger:
  - platform: state
    entity_id: alarm_control_panel.house
    from: 'armed_away' # I would also like to include any armed condition, like parimeter
    to: 'triggered'
  condition: []
  action:
    service: light.turn_on
    entity_id: 
    - switch.hall_indoor_alarm_416
    - binary_sensor.whole_house_outdoor_siren_547 `

I am a bit of a newby so go easy on me :slight_smile:

See comments in code below

#Sound alarm if Control Panel Armed and Triggered
- id: '1575579854434'
  alias: Turn on Sirens if Alarm Triggered
  trigger:
  - platform: state
    entity_id: alarm_control_panel.house
    to: 'triggered' # = any state to triggered
  action:
    service: switch.turn_on # you had the wrong service here (light not switch)
    entity_id: 
    - switch.hall_indoor_alarm_416
  #  - binary_sensor.whole_house_outdoor_siren_547  ## You can't turn on binary sensors

PS: that codewall was way too much to post. All you needed was your automation and the one or two sentence explanation.

1 Like

Thank you for your help, :slight_smile:

Have you seen this error:

This is blocking all sensors being set to armed, though I can set manually:
but when I use the Alarm Panel to arm or parimeter I get:
“Not passing an entity ID to a service to target all entities is deprecated. Update your call to alarm_control_panel.alarm_arm_night to be instead: entity_id: all”

Somewhere you have called a service and not specified an entity_id. This will cause you even more trouble after the next update.

1 Like