DI.O 433MHz motion sensors

Hi,
I’m having trouble identifying my shiny new DI.O motion sensors in HA. When I plug the RFXTRX433e into my laptop, I can see the sensor messages in the RFX console application (although they come up as “lighting”), but when I save the RFX config and re-attach to my RPI, HA doesn’t see them. I’ve turned auto discovery on in the configuration.yaml, and now I can see about a dozen unknown temperature sensors - but no lighting or motion sensors.
I think I need to work out which of the dozen or so temperature sensors is actually my motion detector, and set the binary class sensor_type attribute, but I can’t work out which one. The ID displayed in the RFX application doesn’t correspond to anything I see in HA.

Any ideas much appreciated…

Neil

Answering my own questions…

First mistake was setting auto discovery on ‘sensor’ instead of ‘binary_sensory’.
Second issues was data_bits doesn’t seem to be optional, even though the DI.O motion detector uses AC protocol and not Lighting4.

Final working configuration.yaml:
yaml binary_sensor: platform: rfxtrx #automatic_add: True devices: 0b11000401a9e36e0a010f70: name: Garden motion 1 device_class: motion data_bits: 0 0b11000001a9e3760a010f50: name: Garden motion 2 device_class: motion data_bits: 0