kukulich / home-assistant-jablotron100

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

Cannot install on 0.118.2 #6

Closed ulfendk closed 3 years ago

ulfendk commented 3 years ago

I was happily using an older version of this integration. As it stated I had to re-install it instead of upgrading, I did. Unfortunately, it does not work now.

I enter the port, pin and units. The resulting integration in HA has no entities and I get the following error in the log:

Logger: homeassistant.config_entries
Source: custom_components/jablotron100/jablotron.py:556
First occurred: 14.18.58 (1 occurrences)
Last logged: 14.18.58

Error setting up entry Jablotron for jablotron100
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 236, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/jablotron100/__init__.py", line 27, in async_setup_entry
    await jablotron.initialize()
  File "/config/custom_components/jablotron100/jablotron.py", line 287, in initialize
    self._detect_devices()
  File "/config/custom_components/jablotron100/jablotron.py", line 556, in _detect_devices
    devices_info_packets = reader.result(estimated_duration * 2)
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 441, in result
    raise TimeoutError()
concurrent.futures._base.TimeoutError

Any help would be appreciated :)

Thank you for making this integration!

kukulich commented 3 years ago

@ulfendk how many devices do you have?

It looks it fails in new feature added in 2.2.0. Can you try 2.1.1 ?

ulfendk commented 3 years ago

Hi @kukulich, I just pulled it from HACS, so I would assume that it is 2.2.0?

Also, I have 14 devices.

kukulich commented 3 years ago

Hmm, 14 devices is not so much... So the timeout is strange. What type of Jablotron central device do you have? The new feature is tested mostly on JA-101 so there may be some problems on different type...

You can choose version in HACS. I expected that 2.1.1 should work for you.

Clipboard01

ulfendk commented 3 years ago

Downgrading to 2.1.1 worked

kukulich commented 3 years ago

@ulfendk Did you use code of administrator during the installation?

ulfendk commented 3 years ago

Nope, I use a dedicated account, so the Jablotron app reports correctly.

kukulich commented 3 years ago

@ulfendk Ok, it makes sense now. You need "administrator" account to make sensors working. You can use dedicated account but it has to be administrator.

ulfendk commented 3 years ago

Ok, I will check on that.

Any chance you will add support for the RS-485 interface, so I can move my HA back down into the basement?

ulfendk commented 3 years ago

But the PIR sensors do work in the old version.

kukulich commented 3 years ago

Any chance you will add support for the RS-485 interface

No, I'm not planing it.

kukulich commented 3 years ago

@ulfendk

Ok, I will check on that.

Any news?

ulfendk commented 3 years ago

Yes, I updated the user to Administrator and it worked after the upgrade 👍 Thank you for creating this integration.

kukulich commented 3 years ago

Perfect!