Konnected Alarm Panel - connect a wired alarm system to HA new in 0.70

sorry to be a pain mate but still cant get this to work.

also, i can connect to my Konnected UI by going to: http://192.168.0.xx:11xx/

on my port forwards, ive got the following:
external 80 - internal 80: myhassioIP
external 443 - internal 81xx : myhassio IP

im able to connect to my hassio via HTTPS only. so maybe that is the issue?

works:
-https://xxx.duckdns.org
-https://192.168.0.1x:81xx/
-https://hassio.local:81xx/

doesnt work:
-http://192.168.0.1x
-https://192.168.0.1x
-http://hassio.local
-https://hassio.local

my http in config.yaml are

http:
  base_url: !secret DuckDNSURL
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  ip_ban_enabled: true
  login_attempts_threshold: 4
  ssl_profile: intermediate #https://community.home-assistant.io/t/new-install-virtualbox-ssl-broken-out-of-the-box/112922/2

Is there anything in the logs that might give a clue?

Wow, I’ve just this weekend replaced that exact same panel! :smiley:

Plan to get an AC to DC transformer so I no longer need to power Konnected from the aux and I can remove that board entirely and then fit it all into the original box

I use hass.io and expose it using nabucasa. My entire config is here if it helps you:

konnected:
  access_token: 
  devices:
    - id: 
      switches:
        - zone: out
          name: 'Beeper'
          momentary: 150
          pause: 80
          repeat: 3
        - zone: out
          name: 'Warning'
          momentary: 65
          pause: 55
          repeat: -1
      binary_sensors:
        - zone: 1
          type: motion
          name: 'Hall Motion'
        - zone: 2
          type: motion
          name: 'Living Room Motion'
        - zone: 3
          type: motion
          name: 'Dining Room Motion'
        - zone: 4
          type: motion
          name: 'Landing Motion'
    - id: 
      switches:
        - zone: out
          name: 'Siren'
      binary_sensors:
        - zone: 1
          type: door
          name: 'Front Door'
        - zone: 2
          type: door
          name: 'Back Door'
        - zone: 6
          type: motion
          name: 'Garage Motion'
1 Like

Wow! This is super helpful! Thanks so much

I’m pretty sure my issue is to do with my setup and https/duckdns

However it would seem you have a different setup in this case

Will use your alarm as an example when I can get the damn thing to talk to HA

1 Like

Did you manage to get it working?

its something with my network/duckdns thats causing the issue i think but still cant figure it out.
ive got a rpi4, so thinking about building a clean install on that (not sure how atm) and using Nabu Casa rather then duckdns - will then start with this to get it working, before adding in all my other stuff :slight_smile:

Have you tried setting the api_host in konnected to your internal ip?

api_host: http://192.168.0.xx:8123

Yep! Tried all combinations
With port/without port
With https / without https

Are you getting errors in your logs?

hey,
ive moved over to my rpi4 now, with manual setup on hassbian.
i dont use duckdns or anything yet, only Nabu Casa

config:

konnected:
  access_token: !secret konnectedtoken
  api_host: http://192.168.0.xx:8123
  devices:
    - id: !secret konnectedmac
      binary_sensors:
        - zone: 1
          type: door
          name: 'Konnected NewTest Zone 1'
        - zone: 2
          type: door
          name: 'Konnected NewTest Zone 2'
        - zone: 3
          type: door
          name: 'Konnected NewTest Zone 3'
        - zone: 4
          type: door
          name: 'Konnected NewTest Zone 4'
        - zone: 5
          type: door
          name: 'Konnected NewTest Zone 5'
        - zone: 6
          type: door
          name: 'Konnected NewTest Zone 6'

logs:

2019-07-02 22:04:54 INFO (MainThread) [homeassistant.setup] Setting up konnected
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.components.konnected] Set up binary_sensor Konnected NewTest Zone 1 (initial state: None)
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.components.konnected] Set up binary_sensor Konnected NewTest Zone 2 (initial state: None)
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.components.konnected] Set up binary_sensor Konnected NewTest Zone 3 (initial state: None)
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.components.konnected] Set up binary_sensor Konnected NewTest Zone 4 (initial state: None)
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.components.konnected] Set up binary_sensor Konnected NewTest Zone 5 (initial state: None)
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.components.konnected] Set up binary_sensor Konnected NewTest Zone 6 (initial state: None)
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.components.konnected] Storing data in hass.data[konnected][devices][bcddc23103d0]: {‘binary_sensors’: {1: {‘type’: ‘door’, ‘name’: ‘Konnected NewTest Zone 1’, ‘inverse’: False, ‘state’: None}, 2: {‘type’: ‘door’, ‘name’: ‘Konnected NewTest Zone 2’, ‘inverse’: False, ‘state’: None}, 5: {‘type’: ‘door’, ‘name’: ‘Konnected NewTest Zone 3’, ‘inverse’: False, ‘state’: None}, 6: {‘type’: ‘door’, ‘name’: ‘Konnected NewTest Zone 4’, ‘inverse’: False, ‘state’: None}, 7: {‘type’: ‘door’, ‘name’: ‘Konnected NewTest Zone 5’, ‘inverse’: False, ‘state’: None}, 9: {‘type’: ‘door’, ‘name’: ‘Konnected NewTest Zone 6’, ‘inverse’: False, ‘state’: None}}, ‘sensors’: , ‘switches’: , ‘blink’: True, ‘discovery’: True}
2019-07-02 22:04:54 INFO (MainThread) [homeassistant.setup] Setup of domain konnected took 0.0 seconds.
2019-07-02 22:04:54 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=konnected>

2019-07-02 22:04:55 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.binary_sensor, platform=konnected, discovered=device_id=bcddc23103d0>
2019-07-02 22:04:55 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.sensor, platform=konnected, discovered=device_id=bcddc23103d0>

2019-07-02 22:04:55 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.konnected
2019-07-02 22:04:55 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.konnected
2019-07-02 22:04:55 INFO (SyncWorker_18) [homeassistant.loader] Loaded notify from homeassistant.components.notify
2019-07-02 22:04:55 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.switch, platform=konnected, discovered=device_id=bcddc23103d0>

2019-07-02 22:05:00 DEBUG (SyncWorker_17) [homeassistant.util.json] JSON file not found: /srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/konnected/.translations/switch.en.json

2019-07-02 22:05:14 INFO (MainThread) [homeassistant.components.discovery] Found new service: konnected {‘host’: ‘192.168.0.xxx’, ‘port’: xxx, ‘ssdp_description’: ‘http://192.168.0.xx:xxx/Device.xml’, ‘name’: ‘Konnected’, ‘model_name’: ‘Konnected’, ‘model_number’: ‘2.2.7’, ‘serial’: ‘xxx’, ‘manufacturer’: ‘konnected.io’, ‘udn’: ‘uuid:8f655392-a778-4fee-97b9-48259183103d0’, ‘upnp_device_type’: ‘urn:schemas-konnected-io:device:Security:1’}

im now getting this actually

Tue Jul 02 2019 22:18:28 GMT+0100 (British Summer Time)
Error handling request
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_protocol.py”, line 418, in start
resp = await task
File “/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_app.py”, line 458, in _handle
resp = await handler(request)
File “/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py”, line 33, in real_ip_middleware
return await handler(request)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/ban.py”, line 67, in ban_middleware
return await handler(request)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/auth.py”, line 216, in auth_middleware
return await handler(request)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/view.py”, line 115, in handle
result = await result
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/konnected/init.py”, line 451, in put
if not hmac.compare_digest(‘Bearer {}’.format(self.auth_token), auth):
TypeError: comparing strings with non-ASCII characters is not supported

Do you have discovery enabled in your configuration.yaml file?

discovery:

1 Like

yep

# Discover some devices automatically
discovery:
  ignore:
    - plex_mediaserver

Are you running the latest firmware on the konnected device?

Software

2.2.7

Firmware

2.2.7

Have you tried running without the api_host in your konnected config?
There is something in the logs about non ascii codes, do you have some special characters in your token?

1 Like

BL00DY HELL!! thats the one!!
thank you so much - ive spent HOURS playing with this.

so basically my access_token had a ‘£’ in it - was just hitting random keys, never knew this was an issue.

THANKS A LOT!!!

Brilliant! I was at a loss if it was anything else

Delighted it is working for you now

Me too!! Was really annoying

Maybe a note should be added that it should be numeric/alpha characters only!?