Auto integrate all Xiaomi devices to HomeAssistant via miot-spec

In fact, this component is not very suitable for magnetic door contacts, especially for motion sensors, because it obtains device status through polling.
But you can customize the entity attributes for the magnetic door contact entity:

# customize.yaml
binary_sensor.your_entity_id:
  interval_seconds: 5 # Seconds between each update state
1 Like