akasma74 / Hass-Custom-Alarm

It is a fork of "Yet another take on a home assistant custom alarm" that will exist until its author is back to our Earth
78 stars 29 forks source link

Error setting up bwalarm, Overwriting panel alarm #105

Open sparkydave1981 opened 4 years ago

sparkydave1981 commented 4 years ago

The component:

Your setup:

Describe the bug Error in log as per below, component still seems to function ok.

To Reproduce Error occurs in log after each HA restart.

Expected behavior No error

Your bwalarm.yaml

platform: bwalarm
name: House
code: 'REDACTED'
panic_code: 'REDACTED'
alarm: automation.alarm_triggered
warning: automation.alarm_warning
mqtt:
  enable_mqtt: true
  payload_arm_home: armed_home
  command_topic: paradoxdCTL/hassio/Arm
  pending_on_warning: false
  qos: 0
  payload_disarm: disarmed
  override_code: true
  state_topic: paradoxdCTL/in
  payload_arm_night: armed_home
  payload_arm_away: armed_away
enable_night_mode: false

enable_persistence: true
passcode_attempts: '3'
passcode_attempts_timeout: '60'
admin_password: REDACTED
panel:
  cameras: []
states:
  armed_away:
    immediate:
    - binary_sensor.gym_multisensor_sensor
    - binary_sensor.motion_sensor_158d0001ad43db
    - binary_sensor.ensuite_multisensor_motion
    - binary_sensor.lounge_multisensor_sensor
    - binary_sensor.kitchen_multi_sensor_sensor
    - binary_sensor.paradox_z14_main_shed_pir
    - binary_sensor.paradox_z1_panel_siren_tampers
    - binary_sensor.paradox_z16_repeater_tamper
    - binary_sensor.paradox_z5_living_pir
    - binary_sensor.paradox_z15_garden_shed_pir
    - binary_sensor.paradox_alarm_triggered
    delayed:
    - binary_sensor.passage_multi_sensor_sensor
    - binary_sensor.paradox_z4_lounge_pir
    override:
    - binary_sensor.passage_multi_sensor_sensor
    pending_time: 30
    warning_time: 60
    trigger_time: 600
  armed_home:
    immediate:
    - binary_sensor.gym_multisensor_sensor
    - binary_sensor.paradox_z14_main_shed_pir
    - binary_sensor.paradox_z15_garden_shed_pir
    - binary_sensor.paradox_z16_repeater_tamper
    - binary_sensor.paradox_z1_panel_siren_tampers
    - binary_sensor.paradox_alarm_triggered
    delayed:
    - binary_sensor.paradox_z6_alfresco_pir
    override: []
    pending_time: 15
    warning_time: 15
    trigger_time: 600

Home Assistant log

2020-06-15 11:42:10 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up bwalarm platform for alarm_control_panel Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/config/custom_components/bwalarm/alarm_control_panel.py", line 401, in async_setup_platform config={"alarmid": "alarm_control_panel.house"}, File "/usr/src/homeassistant/homeassistant/components/panel_custom/init.py", line 140, in async_register_panel require_admin=require_admin, File "/usr/src/homeassistant/homeassistant/components/frontend/init.py", line 190, in async_register_built_in_panel raise ValueError(f"Overwriting panel {panel.frontend_url_path}") ValueError: Overwriting panel alarm

Screenshots

Additional context