Keyboard Shortcuts
Likes
Search
Switchbot Meter / Meter Plus
I'm sure I'm doing something wrong but I haven't figured out what.? I recently bought a switchbot and some meters to test out and see if I wanted to try the CurtainBots or BlindTilts.? I seem to be connecting to the switchbots and getting a response but then I get a format exception, I only have meters/meter plus to test with right now.?
Here is the snippet from the console. DIN-AP3MEX>SwitchBot - Get_Meter_State - URL: https://api.switch-bot.com/v1.1/devices/XXXXXXXX5676/status SwitchBot - Security_Test - time = 1695567395089 SwitchBot - Security_Test - nonce = 8eb6bd54-761b-472e-ab56-88389300d959 SwitchBot - Security_Test - signature = PDUPG1DUOVcjMedvxMjFK/Nb4NGk3qSk9NnVRSptjh0= SwitchBot - Get_Meter_State - Success - response.ContentString = {"statusCode":100,"body":{"deviceId":"XXXXXXXX5676","deviceType":"Meter","hubDeviceId":"XXXXXXXX1FD7","humidity":30,"temperature":26.9,"version":"V2.8","battery":100},"message":"success"} SwitchBot - Get_Meter_State - Error Retreiving Meter StatusSystem.FormatException: FormatException ?? at System.Double.Parse(String s, NumberStyles style, IFormatProvider provider) ?? at SwitchBot_Integration.SwitchBot.Get_Meter_State(String Device_ID, Int16 Temperature_Format_Selection) ?? at UserModule_SWITCHBOT_METER_V1.UserModuleClass_SWITCHBOT_METER_V1.POLL_OnPush_1(Object __EventInfo__) ?? at Amib.Threading.Internal.WorkItem.o() ?? at Amib.Threading.Internal.WorkItem.Execute() ?? at Amib.Threading.SmartThreadPool.e(WorkItem A_0) ?? at Amib.Threading.SmartThreadPool.p() Thanks |
开云体育Hi Jay, It's not you it's me.? SwitchBot made a change to their JSON and it broke my parsing.? I'll get an update out as soon as I can. Thanks Jay? On 9/24/2023 9:14 AM, Jay R. wrote:
|
开云体育Hi Jay, I think this will work but I don't have a SwitchBot Meter setup right now to test it myself.? Just replace the SwitchBot.clz file you have with this one, recompile, and let me know if it addresses the issue. Here is a download link - Thanks Jay On 9/24/2023 2:08 PM, jbasen via
groups.io wrote:
|
Thanks Jay, this definitely improved the connection, but the devices look to report good data but the temp outputs as 320 and 0 for humidity.
SwitchBot - Get_Meter_State - URL: https://api.switch-bot.com/v1.1/devices/ED6743015676/status SwitchBot - Security_Test - time = 1695589196192 SwitchBot - Security_Test - nonce = 820aa91f-4acb-4873-adec-8545f0e3a9d5 SwitchBot - Security_Test - signature = +bkZ15IxdhCsSVpAkn37t5wEHhUW8aV6LFweoLFPv0c= SwitchBot - Get_Meter_State - Success - response.ContentString = {"statusCode":100,"body":{"deviceId":"ED6743015676","deviceType":"Meter","hubDeviceId":"CC34350F1FD7","humidity":33,"temperature":26.7,"version":"V2.8","battery":100},"message":"success"} SwitchBot - Get_Meter_State - Temperature = 320, Humidity = 0 The meters and Indoor/Outdoor Hygrometers (deviceType":"WoIOSensor) and Hub2 all seem to report back accurately it just doesn't output to the analog signal correctly. I really appreciate your help. |
开云体育Sigh.? I'm going to have to pull out one and do some debugging.?
I may be able to get to it this evening.? Otherwise, given my
schedule that might take a day or 2 On 9/24/2023 3:25 PM, Jay R. wrote:
Thanks Jay, this definitely improved the connection, but the devices look to report good data but the temp outputs as 320 and 0 for humidity. |
No rush at all. You do so much for the community and I for one really appreciate it.? On Sun, Sep 24, 2023 at 3:08 PM jbasen <jay.m.basen@...> wrote:
|
toggle quoted message
Show quoted text
|