Closed neo4a closed 2 years ago
Hi. This was my mistake cause of global variables renaming. last commit have to fix issue.
Reinstallaed adapter and instance and now it it's turning green :)
Thank you.
In object tree I can seee only device ID (I'm using this gateway for monitoring several BLE plant monitor devices). Would like to see some properties to include it in iobroker scripts. Any chance to get it?
as i written in readme "BLE devices may not have states at first time after pairing because i don't know specs for devices and didn't define properties for all devices for now. States will added when device will update corresponding property." So, that means when monitor will send new value of temperature, for example, corresponding state will be added to device. Also will be added 'debug_output' which collect some useful information for me. You can give me this info after collection for few time. i can use this info to define device states and in future states will be in tree since adapter start.
Note: I've re-installed intance, deleted object tree: no device properties so far
I didn't test FW 1.5.1_0032, so i can't guaranteeing that adapter work with it. This firmware can have breacking changes compared with 1.5.0_xxx. You can enable "Debug log" and "Ble MQTT messages" and compare time of messages in log and in MiHome. I try to say that ble devices may not send messages if value not changed and you can look out this from MiHome. To check that more quicly you can put your device to water, only contacts of course).
@neo4a this commit should add support for 1.5.1_0032. So you just have to update. I can't guarantee you will not get other bugs, but ble devices should work generally.
BLE devices are now listed with their properties. Thank you very much.
Trying to connect to model lumi.gateway.mgl03 (FW 1.5.1_0032 Server CN). Provided token and IP address and telnet cmd #2
log error msg:
host.iobrokerSmartHome) | 2022-01-03 11:32:38.225 | info | host.iobroker(SmartHome) Restart adapter system.adapter.xiaomi-gateway3.0 because enabled -- | -- | -- | -- host.iobrokerSmartHome) | 2022-01-03 11:32:38.224 | error | host.iobroker(SmartHome) instance system.adapter.xiaomi-gateway3.0 terminated with code 6 (UNCAUGHT_EXCEPTION) xiaomi-gateway3.0 | 2022-01-03 11:32:38.078 | error | Cannot convert undefined or null to object xiaomi-gateway3.0 | 2022-01-03 11:32:38.078 | error | TypeError: Cannot convert undefined or null to object at Timeout._onTimeout (C:\Program Files\iobroker\SmartHome\node_modules\iobroker.xiaomi-gateway3\lib\utils.js:12:39) at listOnTimeout (internal/timers.js:555:17) at processTimers (internal/timers.js:498:7) xiaomi-gateway3.0 | 2022-01-03 11:32:38.077 | error | uncaught exception: Cannot convert undefined or null to object xiaomi-gateway3.0 | 2022-01-03 11:32:37.567 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason xiaomi-gateway3.0 | 2022-01-03 11:32:37.566 | info | terminating xiaomi-gateway3.0 | 2022-01-03 11:32:37.565 | error | Cannot set property '79769bf4dbeae735f6672ad6d333bade' of undefined xiaomi-gateway3.0 | 2022-01-03 11:32:37.565 | error | TypeError: Cannot set property '79769bf4dbeae735f6672ad6d333bade' of undefined at C:\Program Files\iobroker\SmartHome\node_modules\iobroker.xiaomi-gateway3\lib\utils.js:11:32 at new Promise (