Mqtt message at boot

Hello everybody,

i would like to send the state of the 3 digital outputs of a TRB255 via mqtt at boot.

I tried it with the modbus alarm function, but i get random results…

Any suggestions?

Thanks in advance!

PiM