I was able to get it working, my device actually had a modbus register that defined everything for me.
I still have a question though:
I have an alarm channel that either shows “0” when alarm is OFF or “256” when alarm in ON. When the event shows it gives a generic description that is not useful for users. Is there a way for me to define what the event says?
I also want a formula to show “1” instead of “256” when alarm in ON.