Aqara (Xiaomi) plugin (Released)
This post is deleted!
Seems I’m alone with this problem. I started some deeper investigation. Today I deleted all devices and then I made a reset of my aqara GW. After reconfiguration I had the same problem with two other devices. The devices was added in an other sequence, this time two smart buttons were not recognized by the plugin.
Could it be that these plugin is not able to handle more then 20 devices (I have 22) after restart? My current solution is to make a device discovery after each restart with
curl --silent -X POST --header "Content-Type:application/json" --user "user:pwd" http://192.168.178.200/api/discover-devices >/dev/null
When I do so, everything works fine. Up to now.
@sweebee: Can you implemend something within your plugin in this regard?
would be nice to get any reaction on this. It’s okay when you will do nothing in this regard, but maybe other user will have sometime also more then 20 devices and will run into the same problem.
Is there a known limit of supported devices from your plugin. I searched the web for problems on other platforms which has Xiaomi solutions as well but found nothing regarding any limitation.
Is here anybody on the board who is using more then 20 sensors? Maybe it is a problem on my system, only. I really have no idea way the device discovery make the last devices running. I just really like to understand the problem.
Gateway has a limit of 32 devices.
I think it has something to do with timing. I have seen myself, and heard from others that not always all the devices will be received when doing a inventory request to the gateway.
It is really strange … I have a MQTT script that will ask for the devices to the gateway, on one ‘server’ it receives all 3 and on a other it only gets 2.
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
Before I used as well the MQTT solution it was working fine, but I made many rules for battery stuff and had problem with some rules when I used variable devices which used the Xiaomi MQTT expression. I ran into problems frequently when I extended my config. Futher it was more affort to add devices.
The plugin is a big benefit in this regard and work great except this one problem.
If you have a lot of sensors it might be better to look at the raspbee module with the pimatic-raspbee plugin. I’m now working on getting more Xiaomi plugins to work. The raspbee module supports up to 200 devices.
currently only the motion sensor and contact sensor are in the plugin. I wil add a pull request for the light sensor today and maybe I can get more sensors to work.
I’m already following the raspbee plugin thread. Like the idea to left the Xiaomi gateway and all the other gateways.
Yes I removed the Hue bridge and the Ikea tradfri gateway now.
Still using the aqara gateway till all the sensors are working good in the raspbee plugin.
Moved the motion sensors already to the raspbee, but stil using the aqara plugin for:
As I read you (@sweebee) are busy with the raspbee implementation, however I hope this plugin isn’t in his last evo state.
- possibility to change position of values (e.g. battery symbol at the end)
- custom acronyms
- custom rounding for each values like temp and humidity (I prefere it without decimals)
This post is deleted!