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'