Page 1 of 1

Home Assistant and Envisalink 3

Posted: Sat Nov 18, 2017 5:06 am
by Konstigt
Hello

Trying to get my Envisalink 3 to work together with Home Assistant

It seems it cannot connect. Firmware Version: 01.12.180, is this the latest and greatest? (does it automatically update?)

Start of config:

Code: Select all

envisalink:
  host: 10.x.x.x
  panel_type: DSC
  user_name: xxxx
  password: xxxx
  code: 'xxxx'
  port: 4025
  evl_version: 3
~/.homeassistant/home-assistant.log:

Code: Select all

Nov 18 09:35:14 mistik hass[30049]: INFO:homeassistant.setup:Setting up envisalink
Nov 18 09:35:14 mistik hass[30049]: INFO:homeassistant.components.envisalink:Start envisalink.
Nov 18 09:35:14 mistik hass[30049]: INFO:root:Connecting to envisalink on host: 10.x.x.x, port: 4025
Nov 18 09:35:14 mistik hass[30049]: INFO:pyenvisalink.envisalink_base_client:Latching onto an existing event loop.
Nov 18 09:35:14 mistik hass[30049]: INFO:pyenvisalink.envisalink_base_client:Started to connect to Envisalink... at 10.x.x.x:4025
Nov 18 09:35:14 mistik hass[30049]: ERROR:homeassistant.core:Error doing job: Task exception was never retrieved
Nov 18 09:35:14 mistik hass[30049]: Traceback (most recent call last):
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
Nov 18 09:35:14 mistik hass[30049]:     result = coro.throw(exc)
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/base_events.py", line 695, in create_connection
Nov 18 09:35:14 mistik hass[30049]:     raise exceptions[0]
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/base_events.py", line 682, in create_connection
Nov 18 09:35:14 mistik hass[30049]:     yield from self.sock_connect(sock, address)
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 402, in sock_connect
Nov 18 09:35:14 mistik hass[30049]:     return (yield from fut)
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
Nov 18 09:35:14 mistik hass[30049]:     yield self  # This tells Task to wait for completion.
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
Nov 18 09:35:14 mistik hass[30049]:     future.result()
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
Nov 18 09:35:14 mistik hass[30049]:     raise self._exception
Nov 18 09:35:14 mistik hass[30049]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 432, in _sock_connect_cb
Nov 18 09:35:14 mistik hass[30049]:     raise OSError(err, 'Connect call failed %s' % (address,))
Nov 18 09:35:14 mistik hass[30049]: ConnectionResetError: [Errno 104] Connect call failed ('10.x.x.x', 4025)
The Home Assistant server can reach the EnvisaLink:

Code: Select all

$ nmap -sT -p 4025 10.x.x.x

Starting Nmap 7.01 ( https://nmap.org ) at 2017-11-18 10:04 CET
Nmap scan report for 10.x.x.x
Host is up (0.0010s latency).
PORT     STATE SERVICE
4025/tcp open  partimage

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds

Re: Home Assistant and Envisalink 3

Posted: Sat Nov 18, 2017 6:48 am
by Konstigt
Found confirmation of what I suspected, that the Envisalink 3 updates itself.

http://forum.eyez-on.com/FORUM/viewtopi ... =639#p2567

So I think my firmware IS latest and greatest. I'll continue the troubleshooting at Home Assistant forums.

Re: Home Assistant and Envisalink 3

Posted: Sat Nov 18, 2017 7:09 am
by Konstigt
Found the problem on a old bug report. EnvisaLink only allows one active connection to it's API. I already had DscServer connected.

https://github.com/home-assistant/home- ... ssues/8163

Re: Home Assistant and Envisalink 3

Posted: Sat Nov 18, 2017 11:01 am
by mikep
I imagine you've already sorted it, but the DscServer does support multiple connections so you can point HA to the DscServer and run as many clients as you'd like.