Started testing / playing with the plugin. Looks nice, great job!
I have a brand new pimatic setup. Enabled debugging in pimatic and the plugin but can’t see any debug messages?
{
"settings": {
"debug": true,
"httpServer": {
"enabled": true,
"port": 81
},
....
{
"password": "xxx",
"debug": true,
"plugin": "aqara",
"active": true
}
From the logfile:
10:16:53.529 [pimatic] info: Starting pimatic version 0.9.42
10:16:53.764 [pimatic] debug: settings.debug is true, showing debug output for pimatic core.
10:16:55.393 [pimatic, ppm] info: 2.15.12
10:16:55.446 [pimatic] info: Loading plugin: "pimatic-cron" (0.8.8)
10:16:55.833 [pimatic] info: Loading plugin: "pimatic-mobile-frontend" (0.9.12)
10:16:56.444 [pimatic] info: Loading plugin: "pimatic-aqara" (0.2.13)
10:16:56.446 [pimatic] debug: debug is true in plugin config, showing debug output for pimatic-aqara.
10:16:56.527 [pimatic-cron] info: the time is: Tue Mar 13 2018 10:16:56 GMT+0000 (UTC)
10:16:56.539 [pimatic-aqara] debug: Searching for gateway...
10:16:56.809 [pimatic] info: New device "pir_overloop"...
10:16:56.854 [pimatic] info: New device "pir_hal"...
10:16:56.883 [pimatic] info: New device "pir_woonkamer"...
10:16:56.942 [pimatic-aqara] info: Gateway discovered
10:16:57.153 [pimatic-mobile-frontend] info: packing static assets
10:16:57.557 [pimatic-mobile-frontend] info: packing static assets finished
10:16:57.569 [pimatic-mobile-frontend] info: rendering html
10:17:05.320 [pimatic-mobile-frontend] info: rendering html finished
10:17:05.360 [pimatic] info: Listening for HTTP-request on port 81...
10:17:05.371 [pimatic-aqara] debug: Gateway is ready
Do you actively ask for connected sensor status when the plugin is started?
"cmd": "get_id_list", sid: sid}
followed by (for each sensor):
{"cmd": "read", "sid": device_sid}
But I noticed some strange info about my PIR’s.
PIR1 battery level according to looking into the gateway multicast traffic : 3005 mV
PIR2 battery level according to looking into the gateway multicast traffic : 3045 mV
PIR1 battery level according to plugin : 49%
PIR1 battery level according to plugin : 39%