Input_number with modbus

Can anyone help me to make an input_number on a holding modbus register. With Node red I can change the Holding register value. But I will do it with a input_number entity. I think i have to work wit a automation, but its not working yet.