Modbus Setup

I brought a LinknLink motion detector and I’m trying to get it to show up in home assistant, but not having any luck.

I’ve add the following to my yaml file.

  - name: "Living Room Motion Sensor"
    type: tcp
    host: 192.168.1.238
    port: 502

And the following to my sensors file.

  - platform: modbus
    scan_interval: 10
    registers:
      - name: Motion_Detection
        address: 40803

but can’t get it to show up, what am I missing?

Not sure if you got this working but this worked for me.

Modbus yaml format changed

Is my yaml config wrong then? Not sure what I need to change, still haven’t got it to show up in HA.

modbus:

  - name: edpbox2
    type: tcp
    host: 10.1.0.200
    port: 502

    sensors:

### ### ###

      - name: "EB2 T1 Vazio" # 0x0026
        unique_id: eb2_t1_vazio
        slave: 1
        address: 38
        input_type: input
        data_type: uint16
        precision: 2
        scale: 0.001
        unit_of_measurement: kWh
        device_class: energy
        state_class: total_increasing