Is it possible to set the Alarm origin using ciAlarm or nimAlarm or similar?
I'm trying ot avoid having to do all the PDS stuff just for one setting.
No, as far as I know, none of the alarm related functions can setorigin.
So, you would actually need to grab the alarm PDS and create a new one.
This is what alarm_enrichment does, which is why the final nimid youget, is not the same as the nimid the alarm has when it comes from therobot (which is a bit annoying).
Could you use alarm_enrichment instead of making something custom?