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