home-assistant icon indicating copy to clipboard operation
home-assistant copied to clipboard

rocketmq dynamic library not found

Open geldelo opened this issue 3 years ago • 19 comments

Logger: homeassistant.config_entries Source: config_entries.py:711 First occurred: 10:31:49 (4 occurrences) Last logged: 13:20:12

Error occurred loading configuration flow for integration aqara_bridge: rocketmq dynamic library not found

How to install rocketmq dynamic library?

geldelo avatar Oct 28 '21 10:10 geldelo

which architecture you use? x86_64 or aarch64

niceboygithub avatar Nov 05 '21 08:11 niceboygithub

which architecture you use? x86_64 or aarch64

x86_64

geldelo avatar Nov 05 '21 08:11 geldelo

You can download it at here

Did you get application of Aqara developer?

Also I have to remind. This integration is not perfect.

  1. The token will be expired after hours.
  2. There are lots of sub devices not supported yet, likes Buttons.
  3. Other bugs that were not find out yet.

niceboygithub avatar Nov 05 '21 09:11 niceboygithub

You can download it at here

Did you get application of Aqara developer?

Also I have to remind. This integration is not perfect.

  1. The token will be expired after hours.
  2. There are lots of sub devices not supported yet, likes Buttons.
  3. Other bugs that were not find out yet.

First of all, thanks for the help and response! I registered and activated in Aqara Iot, integrated my G2H and I stopped there, since I could not integrate the device into HA.

I still not found a normal way to integrate G2H into HA, because the method with telnet activation on my device does not work.

I will try to install librocketmq.so and report the results.

Please tell me how to install librocketmq.so correctly?

geldelo avatar Nov 05 '21 09:11 geldelo

First of all, thanks for the help and response! I registered and activated in Aqara Iot, integrated my G2H and I stopped there, since I could not integrate the device into HA.

Unfortunately, if you want to use this integration to integrate G2H to HA. You can give up. It is not supported.

I still not found a normal way to integrate G2H into HA, because the method with telnet activation on my device does not work.

There are two methods to enable telnet of G2H. The mcchas' method is easy one.

I will try to install librocketmq.so and report the results.

Please tell me how to install librocketmq.so correctly?

If you are using docker, go to your HA docker container for example,

docker exec -it [HA name] /bin/bash
cp librocketmq.so /usr/local/lib

niceboygithub avatar Nov 05 '21 10:11 niceboygithub

First of all, thanks for the help and response! I registered and activated in Aqara Iot, integrated my G2H and I stopped there, since I could not integrate the device into HA.

Unfortunately, if you want to use this integration to integrate G2H to HA. You can give up. It is not supported.

I still not found a normal way to integrate G2H into HA, because the method with telnet activation on my device does not work.

There are two methods to enable telnet of G2H. The mcchas' method is easy one.

I will try to install librocketmq.so and report the results. Please tell me how to install librocketmq.so correctly?

If you are using docker, go to your HA docker container for example,

docker exec -it [HA name] /bin/bash
cp librocketmq.so /usr/local/lib

It very bad news for me. I was already glad that I finally found a way to integrate G2H without accessing serial console, because the method with the "hostname" file on my firmware does not work anymore.

And to be honest, I thought that this integration would forward devices from the Aqara Developer Platform to HA. screen

geldelo avatar Nov 05 '21 10:11 geldelo

If you want use this integration on Zigbee gateway of HA, it works. But the token still expired.

niceboygithub avatar Nov 05 '21 11:11 niceboygithub

docker exec -it [HA name] /bin/bash cp librocketmq.so /usr/local/lib

root@ha:/home/le# docker exec -it homeassistant /bin/bash bash-5.1# cp librocketmq.so /usr/local/lib cp: can't stat 'librocketmq.so': No such file or directory

geldelo avatar Nov 05 '21 15:11 geldelo

If you want use this integration on Zigbee gateway of HA, it works. But the token still expired.

I haven't another choice. mcchas is still silent about his method on new firmware.

geldelo avatar Nov 05 '21 15:11 geldelo

docker exec -it [HA name] /bin/bash cp librocketmq.so /usr/local/lib

root@ha:/home/le# docker exec -it homeassistant /bin/bash bash-5.1# cp librocketmq.so /usr/local/lib cp: can't stat 'librocketmq.so': No such file or directory

These commands are example. You need to locate the file in your system.

If you want use this integration on Zigbee gateway of HA, it works. But the token still expired.

I haven't another choice. mcchas is still silent about his method on new firmware.

mcchas’ method shall be working on latest firmware. G2H use ota update and didn’t fix the bug

niceboygithub avatar Nov 05 '21 17:11 niceboygithub

You can download it at here

Did you get application of Aqara developer?

Also I have to remind. This integration is not perfect.

  1. The token will be expired after hours.
  2. There are lots of sub devices not supported yet, likes Buttons.
  3. Other bugs that were not find out yet.

Aqara:

  1. The token will be expired after hours. -- The validity period is configurable,when you The validity period is configurable,when you get accessToken ,you can set accessTokenValidity。

image

aqara avatar Nov 15 '21 03:11 aqara

I copied the required file to the system via Docker, but Home Assistant still does not see this library! (Debian). More detailed instructions are required.

geldelo avatar Nov 15 '21 05:11 geldelo

You can download it at here Did you get application of Aqara developer? Also I have to remind. This integration is not perfect.

  1. The token will be expired after hours.
  2. There are lots of sub devices not supported yet, likes Buttons.
  3. Other bugs that were not find out yet.

Aqara:

  1. The token will be expired after hours. -- The validity period is configurable,when you The validity period is configurable,when you get accessToken ,you can set accessTokenValidity。

Tried. Not work

niceboygithub avatar Nov 15 '21 14:11 niceboygithub

You can download it at here Did you get application of Aqara developer? Also I have to remind. This integration is not perfect.

  1. The token will be expired after hours.
  2. There are lots of sub devices not supported yet, likes Buttons.
  3. Other bugs that were not find out yet.

Aqara:

  1. The token will be expired after hours. -- The validity period is configurable,when you The validity period is configurable,when you get accessToken ,you can set accessTokenValidity。

Tried. Not work

aqara avatar Nov 16 '21 00:11 aqara

You can download it at here Did you get application of Aqara developer? Also I have to remind. This integration is not perfect.

  1. The token will be expired after hours.
  2. There are lots of sub devices not supported yet, likes Buttons.
  3. Other bugs that were not find out yet.

Aqara:

  1. The token will be expired after hours. -- The validity period is configurable,when you The validity period is configurable,when you get accessToken ,you can set accessTokenValidity。

Tried. Not work

what is the error ? would you share you info for us to find the case?

aqara avatar Nov 16 '21 00:11 aqara

what is the error ? would you share you info for us to find the case?

looks, token expired issue had been fixed in cloud side. But I still see some errors.

Call Aiot api failed,return:{'code': 755, 'message': '您还没有权限这么操作', 'msgDetails': '', 'requestId': '990.238.16384147521854785', 'result': ''}

and

Cannot connect to host open-cn.aqara.com:443 ssl:default [None]

niceboygithub avatar Dec 02 '21 03:12 niceboygithub

ssl:default

would you give more infos about the error again for example,which step made the error? thanks

chenliuyang1989 avatar Feb 10 '22 05:02 chenliuyang1989

would you give more infos about the error again for example,which step made the error? thanks

Hi. And what about my (our) error: Error occurred loading configuration flow for integration aqara_bridge: rocketmq dynamic library not found ?

geldelo avatar Feb 10 '22 05:02 geldelo

ssl:default

would you give more infos about the error again for example,which step made the error? thanks

restart HA.

Token expired issue still exist.

2022-02-11 22:32:41 WARNING (MainThread) [custom_components.aqara_bridge.core.aiot_cloud] Call Aiot api failed,return:{'code': 108, 'requestId': '2085.104690.16445899604144411', 'message': '请求异常,请稍后重试', 'messageDetail': 'Parameter AccessToken illegal, accessToken:f9459dd9044b2dc93226fb514e700d83'}
2022-02-11 22:32:41 WARNING (MainThread) [custom_components.aqara_bridge.core.aiot_cloud] Aiot token expired, trying to auto refresh!

niceboygithub avatar Feb 11 '22 14:02 niceboygithub