Modbus Light

I have spent a lot of time trying to get a simple light over modbus working using a toggle button. (I just want to be able to turn it on and off)

I have been able to create two seperate buttons that work manually:

type: button
tap_action:
  action: call-service
  service: modbus.write_register
  service_data:
    address: 4434
    unit: 1
    value: 1 (0 for the button that shutsoff)
    hub: SmartHouse
  target: {}
entity: ''

I have also been able to create a sensor that shows if it is turned on or off.

modbus:
  - name: SmartHouse
    type: tcp
    host: 192.168.5.88
    port: 502
    sensors:
      - name: "Light"
        address: 4434
        slave: 1
        data_type: uint16
        input_type: holding
        scan_interval: 1

However I cannot get it to work as a light instead, have tried:

modbus:
  - name: SmartHouse
    type: tcp
    host: 192.168.5.88
    port: 502
    lights:
      - name: "light1"
        address: 4434
        write_type: holding

But when I try to add light1 as a light to the dashboard, it does not work. It looks like it is on from the beginning, and when I click it, it says off for a little time and does nothing… It do not affect the light in anyway whether it is turned on or off.