Git Product home page Git Product logo

Comments (11)

donavanbecker avatar donavanbecker commented on June 27, 2024 1

I will look into this, can you send me debug logs from Homebridge directly.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 27, 2024 1

And the API is saying 100, sorry nothing I can do here

from homebridge-switchbot.

giuliomagnifico avatar giuliomagnifico commented on June 27, 2024 1

Well, I have to say that, after I rebooted the Switchbot Hub, also it reports 100% (before was 80%), so I don't know but probably they changed the algorithm or the battery value has changed, I have no idea. But now one Meter reports 50% and it's correct from both SwitchBot app and Homebridge plugin, and the other 100% and it's also correct!

So in the end, thanks a lot for the bug fix and you can close this issue!

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 27, 2024

When looking at this within the Home App. Looking at my logs it shows 50% and Home App shows 50%. The screenshots you provided are for Homebridge UI.

from homebridge-switchbot.

giuliomagnifico avatar giuliomagnifico commented on June 27, 2024

Thanks for the support!

Here's the debug log with the errors:

[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet Config: {"connectionType":"OpenAPI","scanDuration":10}
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet openAPIRefreshStatus
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet accessory.context.FirmwareRevision: undefined
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet device.firmware: undefined
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet this.platform.version: 2.1.1
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet accessory.context.FirmwareRevision: undefined
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet device.firmware: undefined
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet this.platform.version: 2.1.1
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet Add Temperature Sensor Service
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet Add Humidity Sensor Service
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentRelativeHumidity: 0
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentTemperature: 0
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic BatteryLevel: 100
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic StatusLowBattery: 0
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus: Cabinet FirmwareRevision: undefined
[25/08/2023, 07:14:40] [SwitchBot] [DEBUG] MeterPlus uuid: FE583C413E8E-MeterPlus, (0d18b566-40b6-40f8-8d78-d387a0e3fd82)
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,70,69,53,56,51,67,52,49,51,69,56,69,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,80,108,117,115,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,52,54,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,44,34,118,101,114,115,105,111,110,34,58,34,86,48,46,54,34,44,34,98,97,116,116,101,114,121,34,58,49,48,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,70,69,53,56,51,67,52,49,51,69,56,69,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,80,108,117,115,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,52,54,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,44,34,118,101,114,115,105,111,110,34,58,34,86,48,46,54,34,44,34,98,97,116,116,101,114,121,34,58,49,48,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":189,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet statusCode: 200
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet headers: {"date":"Fri, 25 Aug 2023 05:14:41 GMT","content-type":"application/json","content-length":"189","connection":"keep-alive","x-amzn-requestid":"d81d406d-35e4-4ef5-9176-b07be300dfa1","x-amz-apigw-id":"KM3OMGShoAMEATw=","x-amzn-trace-id":"Root=1-64e838c0-3943f7473fd5a145597a2afe;Sampled=0;lineage=bf95bacf:0"}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet deviceStatus: {"statusCode":100,"body":{"deviceId":"FE583C413E8E","deviceType":"MeterPlus","hubDeviceId":"C277CC997982","humidity":46,"temperature":25,"version":"V0.6","battery":100},"message":"success"}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet deviceStatus body: {"deviceId":"FE583C413E8E","deviceType":"MeterPlus","hubDeviceId":"C277CC997982","humidity":46,"temperature":25,"version":"V0.6","battery":100}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet deviceStatus statusCode: 100
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet statusCode: 200 & deviceStatus StatusCode: 100
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet openAPIparseStatus
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Cabinet BatteryLevel: 100, StatusLowBattery: 0
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet Humidity: 46%
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet Temperature: 25°c
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentRelativeHumidity: 46
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentTemperature: 25
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic BatteryLevel: 100
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic StatusLowBattery: 0
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic FirmwareRevision: V0.6
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,68,49,70,53,50,67,51,65,65,48,66,68,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,53,49,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,46,53,44,34,118,101,114,115,105,111,110,34,58,34,86,50,46,56,34,44,34,98,97,116,116,101,114,121,34,58,49,48,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,68,49,70,53,50,67,51,65,65,48,66,68,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,53,49,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,46,53,44,34,118,101,114,115,105,111,110,34,58,34,86,50,46,56,34,44,34,98,97,116,116,101,114,121,34,58,49,48,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":187,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno statusCode: 200
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno headers: {"date":"Fri, 25 Aug 2023 05:14:41 GMT","content-type":"application/json","content-length":"187","connection":"keep-alive","x-amzn-requestid":"3f510f55-a366-4f5d-920a-8f17b237ae39","x-amz-apigw-id":"KM3OOEhHIAMELDw=","x-amzn-trace-id":"Root=1-64e838c1-402f944e4ff6c31011366105;Sampled=0;lineage=bf95bacf:0"}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno deviceStatus: {"statusCode":100,"body":{"deviceId":"D1F52C3AA0BD","deviceType":"Meter","hubDeviceId":"C277CC997982","humidity":51,"temperature":25.5,"version":"V2.8","battery":100},"message":"success"}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno deviceStatus body: {"deviceId":"D1F52C3AA0BD","deviceType":"Meter","hubDeviceId":"C277CC997982","humidity":51,"temperature":25.5,"version":"V2.8","battery":100}
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno deviceStatus statusCode: 100
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno statusCode: 200 & deviceStatus StatusCode: 100
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno openAPIparseStatus
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Bagno BatteryLevel: 100, StatusLowBattery: 0
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno Humidity: 51%
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno Temperature: 25.5°c
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic CurrentRelativeHumidity: 51
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic CurrentTemperature: 25.5
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic BatteryLevel: 100
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic StatusLowBattery: 0
[25/08/2023, 07:14:41] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic FirmwareRevision: V2.

When looking at this within the Home App. Looking at my logs it shows 50% and Home App shows 50%. The screenshots you provided are for Homebridge UI.

It's the same in Home App

Screenshot 2023-08-25 at 07 11 55
Screenshot 2023-08-25 at 07 12 17

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 27, 2024

API is showing 100, so the Home App will show 100.

from homebridge-switchbot.

giuliomagnifico avatar giuliomagnifico commented on June 27, 2024

Yes obviously, but the Switchbot app, and the device screens, are showing totally different values:

IMG_2FBEA431B71A-1

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 27, 2024

@giuliomagnifico Then you need to reach out to SwitchBot, as there is nothing I can do if that API says 100%

from homebridge-switchbot.

giuliomagnifico avatar giuliomagnifico commented on June 27, 2024

@donavanbecker uhm so it’s something related to the SwitchBot itself?! And how can I solve it?

It’s weird because the app reports the correct values.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 27, 2024

Version 2.8.2 has been released, can you try that?

from homebridge-switchbot.

giuliomagnifico avatar giuliomagnifico commented on June 27, 2024

Hi @donavanbecker thanks for the update, anyway I checked before update and one thermostat (the Meter Plus - Cabinet) was already fixed prior the upgrade (I have rebooted the SwitchBot Hub), the other (a normal Meter - Bagno) is still stucks at 100%, also after the update.

Here are the logs:

[28/08/2023, 07:46:33] [SwitchBot] Loaded @switchbot/homebridge-switchbot v2.8.2 child bridge successfully
[28/08/2023, 07:46:33] Loaded 2 cached accessories from cachedAccessories.0E66688A595F.
[28/08/2023, 07:46:33] [SwitchBot] [DEBUG] Using Config Logging: debug
[28/08/2023, 07:46:33] [SwitchBot] [DEBUG] Finished initializing platform:
[28/08/2023, 07:46:33] [SwitchBot] [DEBUG] Platform Config: {"logging":"debug"}
[28/08/2023, 07:46:33] [SwitchBot] [DEBUG] Using Default Refresh Rate (2 minutes).
[28/08/2023, 07:46:33] [SwitchBot] [DEBUG] Using Default Push Rate.
[28/08/2023, 07:46:33] [SwitchBot] [DEBUG] Config OK
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Loading accessory from cache: Server
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Loading accessory from cache: Bagno
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Executed didFinishLaunching callback
[28/08/2023, 07:46:34] Homebridge v1.6.1 (HAP v0.11.1) (SwitchBot) is running on port 49850.
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,48,48,48,48,48,48,48,48,48,48,48,48,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,68,49,70,53,50,67,51,65,65,48,66,68,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,66,97,103,110,111,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,70,69,53,56,51,67,52,49,51,69,56,69,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,83,101,114,118,101,114,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,80,108,117,115,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,125,93,44,34,105,110,102,114,97,114,101,100,82,101,109,111,116,101,76,105,115,116,34,58,91,93,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,48,48,48,48,48,48,48,48,48,48,48,48,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,68,49,70,53,50,67,51,65,65,48,66,68,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,66,97,103,110,111,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,70,69,53,56,51,67,52,49,51,69,56,69,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,83,101,114,118,101,114,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,80,108,117,115,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,125,93,44,34,105,110,102,114,97,114,101,100,82,101,109,111,116,101,76,105,115,116,34,58,91,93,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":472,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] statusCode: 200
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] headers: {"date":"Mon, 28 Aug 2023 05:46:34 GMT","content-type":"application/json","content-length":"472","connection":"keep-alive","x-amzn-requestid":"aa123faa-b2ad-41c1-a74e-52c08e328d1b","x-amz-apigw-id":"KW0tNHlFIAMEnUg=","x-amzn-trace-id":"Root=1-64ec34ba-4ff974bf6e71b9a55dbf1b4f;Sampled=0;lineage=bf95bacf:0"}
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] devicesAPI: {"statusCode":100,"body":{"deviceList":[{"deviceId":"C277CC997982","deviceName":"Hub Mini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"D1F52C3AA0BD","deviceName":"Bagno","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"C277CC997982"},{"deviceId":"FE583C413E8E","deviceName":"Server","deviceType":"MeterPlus","enableCloudService":true,"hubDeviceId":"C277CC997982"}],"infraredRemoteList":[]},"message":"success"}
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] devicesAPI Body: {"deviceList":[{"deviceId":"C277CC997982","deviceName":"Hub Mini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"D1F52C3AA0BD","deviceName":"Bagno","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"C277CC997982"},{"deviceId":"FE583C413E8E","deviceName":"Server","deviceType":"MeterPlus","enableCloudService":true,"hubDeviceId":"C277CC997982"}],"infraredRemoteList":[]}
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] devicesAPI StatusCode: 100
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] statusCode: 200 & devicesAPI StatusCode: 100
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] DeviceLists: [{"deviceId":"C277CC997982","deviceName":"Hub Mini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"D1F52C3AA0BD","deviceName":"Bagno","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"C277CC997982"},{"deviceId":"FE583C413E8E","deviceName":"Server","deviceType":"MeterPlus","enableCloudService":true,"hubDeviceId":"C277CC997982"}]
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] DeviceLists Length: 3
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] SwitchBot Device Config Set: [{"deviceId":"FE583C413E8E","configDeviceName":"Cabinet","configDeviceType":"MeterPlus","connectionType":"OpenAPI","scanDuration":10},{"deviceId":"D1F52C3AA0BD","configDeviceName":"Bagno","configDeviceType":"Meter","connectionType":"OpenAPI"}]
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] SwitchBot Devices: [{"deviceId":"C277CC997982","deviceName":"Hub Mini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"D1F52C3AA0BD","configDeviceName":"Bagno","configDeviceType":"Meter","connectionType":"OpenAPI","deviceName":"Bagno","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"C277CC997982"},{"deviceId":"FE583C413E8E","configDeviceName":"Cabinet","configDeviceType":"MeterPlus","connectionType":"OpenAPI","scanDuration":10,"deviceName":"Server","deviceType":"MeterPlus","enableCloudService":true,"hubDeviceId":"C277CC997982"}]
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Discovered Hub Mini: C277CC997982
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Discovered Meter: D1F52C3AA0BD
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Discovered MeterPlus: FE583C413E8E
[28/08/2023, 07:46:34] [SwitchBot] Total SwitchBot Devices Found: 3
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Total IR Devices Found: 0
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Device: Bagno registerDevice: true
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Device: Bagno connectionType: OpenAPI, will display in HomeKit
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Device: Cabinet registerDevice: true
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Device: Cabinet connectionType: OpenAPI, will display in HomeKit
[28/08/2023, 07:46:34] [SwitchBot] Restoring existing accessory from cache: Bagno DeviceID: D1F52C3AA0BD
[28/08/2023, 07:46:34] [SwitchBot] Restoring existing accessory from cache: Cabinet DeviceID: FE583C413E8E
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno Using Platform Config Logging: debug
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno Using Platform Config refreshRate: 120
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno Config: {"connectionType":"OpenAPI"}
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno openAPIRefreshStatus
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno accessory.context.FirmwareRevision: "V2.8"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno device.firmware: undefined
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno this.platform.version: 2.1.1
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno setFirmwareRevision: "V2.8"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno accessory.context.FirmwareRevision: "V2.8"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno device.firmware: undefined
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno this.platform.version: 2.1.1
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno setFirmwareRevision: "V2.8"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno Add Temperature Sensor Service
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno Add Humidity Sensor Service
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic CurrentRelativeHumidity: 0
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic CurrentTemperature: 0
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic BatteryLevel: 100
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic StatusLowBattery: 0
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic FirmwareRevision: "V2.8"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] Meter uuid: D1F52C3AA0BD-Meter, (d4f3fbd5-8759-4072-90a8-925f08bbc518)
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet Using Platform Config Logging: debug
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet Using Platform Config refreshRate: 120
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet Config: {"connectionType":"OpenAPI","scanDuration":10}
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet openAPIRefreshStatus
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet accessory.context.FirmwareRevision: "V0.6"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet device.firmware: undefined
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet this.platform.version: 2.1.1
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet setFirmwareRevision: "V0.6"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet accessory.context.FirmwareRevision: "V0.6"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet device.firmware: undefined
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet this.platform.version: 2.1.1
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet setFirmwareRevision: "V0.6"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet Add Temperature Sensor Service
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet Add Humidity Sensor Service
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentRelativeHumidity: 0
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentTemperature: 0
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic BatteryLevel: 100
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic StatusLowBattery: 0
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic FirmwareRevision: "V0.6"
[28/08/2023, 07:46:34] [SwitchBot] [DEBUG] MeterPlus uuid: FE583C413E8E-MeterPlus, (0d18b566-40b6-40f8-8d78-d387a0e3fd82)
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,68,49,70,53,50,67,51,65,65,48,66,68,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,53,50,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,46,52,44,34,118,101,114,115,105,111,110,34,58,34,86,50,46,56,34,44,34,98,97,116,116,101,114,121,34,58,49,48,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,68,49,70,53,50,67,51,65,65,48,66,68,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,53,50,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,46,52,44,34,118,101,114,115,105,111,110,34,58,34,86,50,46,56,34,44,34,98,97,116,116,101,114,121,34,58,49,48,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":187,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno statusCode: 200
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno headers: {"date":"Mon, 28 Aug 2023 05:46:35 GMT","content-type":"application/json","content-length":"187","connection":"keep-alive","x-amzn-requestid":"966adc44-5434-4706-9d62-2c83130e9684","x-amz-apigw-id":"KW0tUHZZIAMEW6g=","x-amzn-trace-id":"Root=1-64ec34bb-6cb8a388142976796109d7b0;Sampled=0;lineage=bf95bacf:0"}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno deviceStatus: {"statusCode":100,"body":{"deviceId":"D1F52C3AA0BD","deviceType":"Meter","hubDeviceId":"C277CC997982","humidity":52,"temperature":25.4,"version":"V2.8","battery":100},"message":"success"}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno deviceStatus body: {"deviceId":"D1F52C3AA0BD","deviceType":"Meter","hubDeviceId":"C277CC997982","humidity":52,"temperature":25.4,"version":"V2.8","battery":100}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno deviceStatus statusCode: 100
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno statusCode: 200 & deviceStatus StatusCode: 100
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno openAPIparseStatus
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Bagno BatteryLevel: 100, StatusLowBattery: 0
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno Humidity: 52%
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno Temperature: 25.4°c
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno BatteryLevel: 100, StatusLowBattery: 0
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic CurrentRelativeHumidity: 52
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic CurrentTemperature: 25.4
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic BatteryLevel: 100
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic StatusLowBattery: 0
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Meter: Bagno updateCharacteristic FirmwareRevision: "V2.8"
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,70,69,53,56,51,67,52,49,51,69,56,69,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,80,108,117,115,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,52,53,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,46,53,44,34,118,101,114,115,105,111,110,34,58,34,86,48,46,54,34,44,34,98,97,116,116,101,114,121,34,58,53,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,70,69,53,56,51,67,52,49,51,69,56,69,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,77,101,116,101,114,80,108,117,115,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,50,55,55,67,67,57,57,55,57,56,50,34,44,34,104,117,109,105,100,105,116,121,34,58,52,53,44,34,116,101,109,112,101,114,97,116,117,114,101,34,58,50,53,46,53,44,34,118,101,114,115,105,111,110,34,58,34,86,48,46,54,34,44,34,98,97,116,116,101,114,121,34,58,53,48,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":190,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet statusCode: 200
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet headers: {"date":"Mon, 28 Aug 2023 05:46:35 GMT","content-type":"application/json","content-length":"190","connection":"keep-alive","x-amzn-requestid":"a2288012-a5b8-4660-9c6a-d8b9706bbe1e","x-amz-apigw-id":"KW0tUFJYoAMELbg=","x-amzn-trace-id":"Root=1-64ec34bb-59cd4d126136cc580b5d369e;Sampled=0;lineage=bf95bacf:0"}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet deviceStatus: {"statusCode":100,"body":{"deviceId":"FE583C413E8E","deviceType":"MeterPlus","hubDeviceId":"C277CC997982","humidity":45,"temperature":25.5,"version":"V0.6","battery":50},"message":"success"}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet deviceStatus body: {"deviceId":"FE583C413E8E","deviceType":"MeterPlus","hubDeviceId":"C277CC997982","humidity":45,"temperature":25.5,"version":"V0.6","battery":50}
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet deviceStatus statusCode: 100
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet statusCode: 200 & deviceStatus StatusCode: 100
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet openAPIparseStatus
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] Cabinet BatteryLevel: 50, StatusLowBattery: 0
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet Humidity: 45%
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet Temperature: 25.5°c
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet BatteryLevel: 50, StatusLowBattery: 0
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentRelativeHumidity: 45
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic CurrentTemperature: 25.5
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic BatteryLevel: 50
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic StatusLowBattery: 0
[28/08/2023, 07:46:35] [SwitchBot] [DEBUG] MeterPlus: Cabinet updateCharacteristic FirmwareRevision: "V0.6"

from homebridge-switchbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.