@ectovito said in door and proximity sensors:
I was finally able to retrieve the Device IDs via the Aqara gateway, and the tokens from the gateway and vacuum in the Miio Mac application.
I can correctly display the temperature and humidity of my different rooms in the house. The same for my vaccum via the Xiaomi-vaccum module.
The only thing I can’t do is to declare the door sensors and the sensory sensors.
What should I declare in the configuration file?
Thank you in advance for your help.
To declare the door sensors and sensory sensors in your configuration file, you will need to specify the device type, device ID, and token for each sensor. You can typically find this information in the Miio Mac application or from the Aqara gateway.
Here’s an example of what a door sensor declaration in your configuration file might look like:
switch:
platform: xiaomi_aqara
name: Door Sensor
type: magnet
sid: <device_id>
token:
And here’s an example of what a sensory sensor declaration might look like:
sensor:
platform: xiaomi_aqara
name: Sensory Sensor
type: sensor_ht
sid: <device_id>
token:
Note that the <device_id> and values should be replaced with.