Hi, I found a bug in the SmartThings Edge SDK library (st/zigbee/data_types/base_defs/FloatABC.lua). When trying to set a value to exactly 0 for a Zigbee device using SinglePrecisionFloat, the platform crashes at line 201 with the error: "SinglePrecisionFloat mantissa must be non-negative".
It seems math.frexp(0) returns 0, causing the internal calculation to result in -1 for the mantissa. Please check the logs below:
2026-05-18T23:50:08.292901553Z DEBUG SiHAS People Counter V2(CSM-300-ZB) Received event with handler capability
2026-05-18T23:50:08.296493095Z INFO SiHAS People Counter V2(CSM-300-ZB) <ZigbeeDevice: 82b1923d-4172-4d9f-a7c9-889ee902e2df [0x4DF7] (화장실 카운터)> received command: {"args":{},"capability":"momentary","command":"push","component":"main","named_args":{},"positional_args":{}}
2026-05-18T23:50:08.297501386Z DEBUG SiHAS People Counter V2(CSM-300-ZB) Found CapabilityCommandDispatcher handler in zigbee_people_counter_v2
2026-05-18T23:50:08.298964845Z INFO SiHAS People Counter V2(CSM-300-ZB) setPeopleCounter = 0
2026-05-18T23:50:08.299869095Z ERROR SiHAS People Counter V2(CSM-300-ZB) CSM-300-ZB thread encountered error: [string "st/dispatcher.lua"]:270: Error encountered while processing event for <ZigbeeDevice: 82b1923d-4172-4d9f-a7c9-889ee902e2df [0x4DF7] (화장실 카운터)>:
arg1: {args={value=0}, capability="momentary", command="push", component="main", named_args=RecursiveTable: args, positional_args={}}
"[string "st/zigbee/data_types/base_defs/FloatABC.lua"]:201: SinglePrecisionFloat mantissa must be non-negative"
2026-05-18T23:50:14.987655970Z DEBUG SiHAS People Counter V2(CSM-300-ZB) Received event with handler capability
2026-05-18T23:50:14.988816429Z INFO SiHAS People Counter V2(CSM-300-ZB) <ZigbeeDevice: 82b1923d-4172-4d9f-a7c9-889ee902e2df [0x4DF7] (화장실 카운터)> received command: {"args":{"value":0},"capability":"afterguide46998.peopleCounterV2","command":"setPeopleCounter","component":"main","named_args":{"value":0},"positional_args":[0]}
2026-05-18T23:50:14.990577137Z DEBUG SiHAS People Counter V2(CSM-300-ZB) Found CapabilityCommandDispatcher handler in zigbee_people_counter_v2
2026-05-18T23:50:14.991174137Z INFO SiHAS People Counter V2(CSM-300-ZB) setPeopleCounter = 0
2026-05-18T23:50:14.991743137Z ERROR SiHAS People Counter V2(CSM-300-ZB) CSM-300-ZB thread encountered error: [string "st/dispatcher.lua"]:270: Error encountered while processing event for <ZigbeeDevice: 82b1923d-4172-4d9f-a7c9-889ee902e2df [0x4DF7] (화장실 카운터)>:
arg1: {args={value=0}, capability="afterguide46998.peopleCounterV2", command="setPeopleCounter", component="main", named_args=RecursiveTable: args, positional_args={0}}
"[string "st/zigbee/data_types/base_defs/FloatABC.lua"]:201: SinglePrecisionFloat mantissa must be non-negative"