Issue adding motion sensor manually with Tuya Local integration in Home Assistant

Hi all,

I installed the Tuya Local integration in Home Assistant and want to add a motion sensor (PIR) manually.

Here is what I did:

  • Created a YAML device file with the sensor’s configuration (no syntax errors, placed correctly under /config/custom_components/tuya_local/devices/).
  • In Home Assistant, I went to Add Integration > Tuya Local > Add Manually.
  • Entered the device’s ID, Local Key, and local IP address. The device is detected, but the device type options shown don’t match my motion sensor at all (e.g., hornbill_y4_smart_lock, s11_rfir_remote, arlec_rf_transmitter, etc.).

I tried with a YAML file that includes the device ID and without it, but the result is the same.

I would appreciate any help or guidance on how to properly define the YAML so that the integration recognizes my device and allows me to use the motion sensor.

The sensor model is P01

My YMAL:

name: PIR Motion Sensor
products:
  - id: *****(HIDDEN)
    model: PIR-Custom

entities:
  - entity: binary_sensor
    name: Motion
    class: motion
    dps:
      - id: 101
        type: string
        mapping:
          - dps_val: pir
            value: true
          - dps_val: none
            value: false

  - entity: sensor
    name: Battery Level
    class: battery
    category: diagnostic
    dps:
      - id: 102
        type: string
        mapping:
          - dps_val: high
            value: 100
          - dps_val: medium
            value: 60
          - dps_val: low
            value: 20

Thanks a lot!