Page 1 of 1

{'errno': 41811, 'msg': 'User permission cannot perform this operation', 'result': None}

Posted: Sat May 09, 2026 3:28 pm
by shelsen
HI,

so just a couple of days ago, at least May 2026, a couple of endpoints on the API are no longer working. I am not using the HA integration directly because I need direct control of the battery min soc. This was working for almost a year with no problems and I do have an installer (agent) account. But recently the following endpoints all respond withe the same error. Not sure foxess made some random change

"/op/v0/device/setting/get" with "key": "gridState"
"/op/v0/device/battery/soc/get"
"/op/v0/device/battery/soc/set"

All return with {'errno': 41811, 'msg': 'User permission cannot perform this operation', 'result': None}

Anyone seen this?

thanks

Simon

Re: {'errno': 41811, 'msg': 'User permission cannot perform this operation', 'result': None}

Posted: Sun May 10, 2026 9:21 am
by Dave Foster
I don't use the set, but do use the 'get' and it is working fine for me.

As it is complaining about user permissions, it might be worth trying an api key for user access as well as your installer to see if that is the problem.