1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Add Xiaomi RTCGQ02LM - Mi Motion Sensor 2 (#3186)

This commit is contained in:
Jesse Hills
2022-04-12 16:19:16 +12:00
committed by GitHub
parent dabd27d4be
commit da336247eb
10 changed files with 373 additions and 43 deletions

View File

@@ -263,6 +263,10 @@ sensor:
name: 'Inkbird IBS-TH1 Humidity'
battery_level:
name: 'Inkbird IBS-TH1 Battery Level'
- platform: xiaomi_rtcgq02lm
id: motion_rtcgq02lm
battery_level:
name: 'Mi Motion Sensor 2 Battery level'
- platform: ltr390
uv:
name: "LTR390 UV"
@@ -417,6 +421,14 @@ binary_sensor:
name: 'CGPR1 Idle Time'
illuminance:
name: 'CGPR1 Illuminance'
- platform: xiaomi_rtcgq02lm
id: motion_rtcgq02lm
motion:
name: 'Mi Motion Sensor 2'
light:
name: 'Mi Motion Sensor 2 Light'
button:
name: 'Mi Motion Sensor 2 Button'
esp32_ble_tracker:
on_ble_advertise:
@@ -457,6 +469,11 @@ xiaomi_ble:
mopeka_ble:
xiaomi_rtcgq02lm:
- id: motion_rtcgq02lm
mac_address: 01:02:03:04:05:06
bindkey: '48403ebe2d385db8d0c187f81e62cb64'
#esp32_ble_beacon:
# type: iBeacon
# uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'