Critical error for users with Matter (1.3?) smart plugs, including Eve Energy and Tapo P110M!
I’ve been able to replicate a fatal error that crashes the matter-switch driver and might be related to this issue reported by a Tapo P110M user and this issue here with Matter devices, that renders the plug and every other Matter light, switch or plug unusable. Mind the P110M got a Matter 1.3 update few days ago for energy monitoring that might be related, same happens with Eve Energy, both using Matter 1.3 energy reporting.
I can replicate it by switching back from another driver (in this case my Matter Playground driver), but the user says he didn’t use my driver so it’s just a SmartThings stock drivers bug triggered by yesterday’s update.
I don’t experience the issue if my Matter 1.3 plugs like the P110M or Eve Energy use my driver instead of stock so must be related to plug specific features since some Matter lights using the stock driver work fine. As soon as one of the plugs uses the stock driver, the stock driver crashes.
2025-08-05T10:14:12.543415737Z FATAL Matter Switch runtime error: [string "cosock.lua"]:252: Unable to serialize datastore value: deserialize error: invalid type: integer `2`, expected a string key
stack traceback:
[C]: in field 'st_json_encode'
[string "json"]:25: in function <[string "json"]:25>
[C]: in function 'pcall'
[string "third_party.coxpcall.coxpcall"]:50: in global 'pcall'
[string "datastore.lua"]:112: in upvalue 'do_save'
[string "datastore.lua"]:120: in function <[string "datastore.lua"]:117>
stack traceback:
[C]: in function 'error'
[string "datastore.lua"]:130: in upvalue 'do_save'
[string "datastore.lua"]:120: in function <[string "datastore.lua"]:117>
stack traceback:
[C]: in function 'error'
[string "cosock.lua"]:252: in upvalue 'step_thread'
[string "cosock.lua"]:360: in field 'run'
[string "st/driver.lua"]:1143: in method 'run'
[string "init.lua"]:1751: in main chunk
I’ve dumped the logs so you can look at it, assuming it’s the same issue experienced by others. In the logs you can see “Enchufe Tapo” working fine with my driver, then switching and the matter-switch driver crashing.
As a workaround for users with Matter 1.3 smart plugs like Eve Energy or Tapo P110M units, I would recommend switching them all to my driver, at least until the stock drivers are fixed. Otherwise the stock driver will keep restarting, affecting all the other Matter lights / switches / plugs.