Envisalink - Binary sensor error

I’ve got an error in my log file that I’m trying to resolve but not sure why this doesn’t work. Can anyone provide feedback? The config was working on another rasberry pi that the SD card died on but I can’t seem to figure out what is wrong. Here is the relevant log file entries:

2019-05-04 04:50:48 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform envisalink
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/envisalink/binary_sensor.py", line 21, in async_setup_platform
    configured_zones = discovery_info['zones']
TypeError: 'NoneType' object is not subscriptable

Here is the relevant configuration.yaml entries:

envisalink:
  host: 192.168.0.90
  panel_type: DSC
  evl_version: 4
  user_name: !secret envuid
  password: !secret envpwd
  code: !secret envpin
  port: 4025
  keepalive_interval: 60
  zonedump_interval: 30
  panic_type: Police
  zones:
    01:
      name: 'z01 front door'
      type: 'opening'
    02:
      name: 'z02 garage door'
      type: 'opening'
    03:
      name: 'z03 back door'
      type: 'opening'
    04:
      name: 'z04 side door'
      type: 'opening'
  partitions:
    1:
      name: 'Home Alarm'

binary_sensor:
  - platform: ring
  - platform: envisalink

Appreciate any and all help/feedback!

Thanks

I use the same but I don’t need to add any binary_sensor: , the envisalink components adds the binary sensors.

try this

binary_sensor:
  - platform: ring
  # - platform: envisalink

I also don’t have the leading 0, 1 instead of 01 but not sure if that matters.

envisalink:
  host: 192.168.2.19
  panel_type: DSC
  user_name: !secret DSC_user_name
  password: !secret DSC_password
  code: !secret DSC_code
  port: 4025
  evl_version: 3
  zones:
    1:
      name: 'doorbell'
      type: 'opening'
    2:
      name: 'sump pump'
      type: 'moisture'
    3:
      name: 'followergarage'
      type: 'opening'
    4:
      name: 'smoke detectors'
      type: 'smoke'
1 Like

Thank you! I commented out the binary_sensor entry and also removed the leading 0. Both of these were on my previous HA install that died about a 6 weeks ago and was working. Anyhow, I see the entities after restarting and now just need to take control of the UI but looks to be working!

Cheer!