Unable to set API created input_boolean via the UI

Hi there!

I’m writing an addon that interacts with hass with TypeScript. I’m configuring my addon to automatically load a series of ‘plugins’ and register a switch of some kind in order to turn the plugins on or off. I’ve tried this with both ‘input_boolean’ and ‘switch’. In both cases, I seem to be able to create the entity by setting the state (calling POST to ‘states/{newEntityId}’). But for some reason the switches are not changeable via the UI. When I switch them, they don’t emit any events and revert back to their old state after a short while.

I CAN however change them via the ‘states’ panel in devtools. But nowhere else. Anyone got any ideas why this is and what I can do to resolve it?