Hi,
I’ve also been thinking to create a custom component for the Somneo (neither a programmer), but couldn’t figure out the API commands. My main idea was to read the alarms that are set so that I could use them to trigger some automations. With your code as inspiration I created a custom component that also lists the alarms (next toggling the light and reading the sensors).
I didn’t yet manage to change the alarm settings from Home Assistant though.
Regards