kukulich / home-assistant-jablotron100

Home Assistant custom component for JABLOTRON 100+ alarm system
MIT License
67 stars 24 forks source link

Installation details #1

Closed fxxer closed 3 years ago

fxxer commented 3 years ago

What are the other parameters for setting up this integration? Password and what is the slider?

Shamshala commented 3 years ago

Number of peripherals without base. If you ever tried F-Link, use the same number as the last sensor in your list.

fxxer commented 3 years ago

I got this hiddev96,hidraw0: USB HID v1.11 Device [Jablotron ltd JA-100 Flexi] on usb-3f980000.usb-1.3/input0 from dmesg | grep hid

so I set up the integration:

I get Error in the log:

Logger: homeassistant.config_entries
Source: custom_components/jablotron100/jablotron.py:320
First occurred: 20:32:49 (2 occurrences)
Last logged: 20:40:26

Error setting up entry Jablotron for jablotron100
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 228, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/jablotron100/__init__.py", line 26, in async_setup_entry
    jablotron.initialize()
  File "/config/custom_components/jablotron100/jablotron.py", line 221, in initialize
    self._detect_central_unit()
  File "/config/custom_components/jablotron100/jablotron.py", line 320, in _detect_central_unit
    self._central_unit = reader.result(TIMEOUT)
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 441, in result
    raise TimeoutError()
concurrent.futures._base.TimeoutError
Shamshala commented 3 years ago

The password field is for your administrator code. (used for F-Link, alarm base settings, etc.)

Not sure about the error.

fxxer commented 3 years ago

I used my administrator code, in the last try. The error is the same.

Shamshala commented 3 years ago

You can also try to report this to discord.

kukulich commented 3 years ago

It fails because of timeout. It looks like an error in your connection between HA and Jablotron. You can increase the timeout here: https://github.com/kukulich/home-assistant-jablotron100/blob/master/custom_components/jablotron100/jablotron.py#L46

kukulich commented 3 years ago

@fxxer What's you jablotron version? There may be problem with the central unit detection.

fxxer commented 3 years ago

Where can I find the jablotron version?

kukulich commented 3 years ago

@fxxer In the F-link or J-link application.

kukulich commented 3 years ago

@fxxer There were many improvements lately so last version may work for you.

fxxer commented 3 years ago

With the new version it is working... :) I can arm all the sections, which is great. But I get data only from 1 of 4 motion detectors. Also how often are the sensor checked?

Here’s data from log

2020-10-17 18:31:48 ERROR (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Unknown state packet of device 5: 5508247d4001d07e722e001008580010784300106fb1000052220010c021001052220010000000002e000000942300104c2300100000000078430010d1cd0000

kukulich commented 3 years ago

@fxxer is this the only error in the log? How many sensors do you have?

fxxer commented 3 years ago

I have 4 sensors and only one is working.

3 sensors have the same error:

2020-10-17 19:02:34 ERROR (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Unknown state packet of device 6: 55083e818001f009733b0010085800100000000024580010045800101000000045db04001b9d01002c9d0100000000212c040010183b08200b00000071300300 2020-10-17 19:02:39 ERROR (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Unknown state packet of device 5: 5508247d4001400ab33b0010522200100000000024580010045800101000000045db04001b9d01002c9d0100000000212c040010183b08200b00000071300300 2020-10-17 19:02:50 ERROR (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Unknown state packet of device 8: 55083e890002f10ad33b0010085800100000000024580010045800101000000045db04001b9d01002c9d0100000000212c040010183b08200b00000071300300 2020-10-17 19:02:54 ERROR (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Unknown state packet of device 8: 55083e890002310bf33b0010085800100000000054580010045800101000000045db04001b9d01002c9d0100000000212c040010183b08200b00000071300300

kukulich commented 3 years ago

@fxxer It should be fixed in last version.

fxxer commented 3 years ago

Everything is working, thanks for quick fix. :)

kukulich commented 3 years ago

@fxxer Is you jablotron connected to LAN?

fxxer commented 3 years ago

@kukulich No