Another thing, just found errors from bwalarm.py in the HA logs. I triggered 2 motion sensors in the house, but both are not relevant for the alarm in home mode.
The logs are not really indicating what the error is:
Hi first post here.
Evertyhing looks great and i have the system up and running, but I have the same issue with the codes, that only the Panic code will deactivate the alarm. I have tried without quotes with single quotes ( â ) and with doublet quotes ( " ).
I have looked at the install fines and they seem to be same date as the ones I find here, are there any fix for this problem yet?
Thank you for the answer in advance and the great work you have put into this project.
Panic mode is used to unlock the alarm but send an SOS notification to a predefined recipient. If Iâm not mistaken, itâs described inside alarm.yaml
Thanks for the support, however itâs still the same. I have now tried with the code in the !secrets file and directly in the alarm file as you described - no difference.
The panic code works but the normal alarm code does not.
What can I do in order to debug what is going on with the code or what code that the alarm âpicks upâ from the ini files?
Small bug/behavior:
I also just notiched something strange. If I try to arm the alarm from the Home screen of HA instead from the alarm panel, I need to type a code in order to arm the alarm, but that can be any code and the Arm fields will âun-greyâ and I can activate the alarm.
Did you use MQTT alarm or normal alarm? This is in my alarm.yaml , I didnât use mqtt although it can be use with mqtt. The rest under what I have pasted is the name of my sensor and binary sensors
platform: bwalarm
name: HOUSE
code: !secret alarm_code
panic_code: !secret panic_code
pending_time: 25
trigger_time: 600
alarm: automation.alarm_triggered
warning: automation.alarm_warning
##[OPTIONAL SETTINGS]
clock: True #[Optional] - False by default. True enables a clock in the center of the status bar
perimeter_mode: True #[Optional] - False by default. True enables perimeter mode, this could be known as 'Day Mode' i.e. only arm the doors whilst there is someone using all floors
weather: True #[Optional] - False by Default. Allows a weather summary to be displayed on the status bar. Dark Sky weather component must be enabled with the name sensor.dark_sky_summary
#settings: True #[NOT YET IMPLEMENTED, OPTIONAL] True/False. Enables a settings mode which allows you to define certain settings in the UI without the need to restart HA after certain config changes. This will be used for fluid settings such as enabling/disabling the screensaver mode once implmented. NOTE for this to work you will need to create a directory within your HA config directory named 'alarm_settings' this is where the settings file will be managed. Also ensure you have the appropriate permissions/ownership for the HA user to create/amend the file.
#hide_sidebar: True #[OPTIONAL] - False by default. This is a security feature when enabled hides the HA sidebar when the alarm is armed. The sidebar re-appears when the alarm is disarmed.
#hide_all_sensors: True #[NOT YET IMPLEMENTED, Optional] - False by default. Setting this to True hides the 'All Sensors' box which displays every sensor when in disarmed mode.
##[PASSCODE RELATED]
passcode_attempts: 3
passcode_attempts_timeout: 30
##[MQTT RELATED]
#mqtt: True #[OPTIONAL] - False by default. Settings this to True will enable MQTT Mode. Uncomment options below to use See the README for guidance.
#state_topic: smarthome/alarm #[OPTIONAL] The MQTT topic HA will publish state updates to.
#command_topic: smarthome/alarm/set #[OPTIONAL] The MQTT topic HA will subscribe to, to receive commands from a remote device to change the alarm state.
#aassqos: 0 #[OPTIONAL] The maximum QoS level for subscribing and publishing to MQTT messages. Default is 0.
#payload_disarm: "DISARM" #[OPTIONAL] The payload to disarm this Alarm Panel. Default is âDISARMâ.
#payload_arm_home: "ARM_HOME" #[OPTIONAL] The payload to set armed-home mode on this Alarm Panel. Default is âARM_HOMEâ.
#payload_arm_away: "ARM_AWAY" #[OPTIONAL] The payload to set armed-away mode on this Alarm Panel. Default is âARM_AWAYâ.
#payload_arm_night: "ARM_NIGHT" #[OPTIONAL] The payload to set armed-night mode on this Alarm Panel. Default is âARM_NIGHTâ.
Having set clock: True in alarm.yaml gets the following error in log file (the panel doesnât load): (MainThread) [frontend.js.latest.201801300] http://192.168.x.x:8123/frontend/panels/alarm-551d7xx.html:235:19 Uncaught TypeError: Cannot read property 'attributes' of undefined
The line generating the error in alarm.html is if (this.alarm.attributes.clock) { however I do have the time_date sensor setup in HA.