Skip to content

Commit

Permalink
🛜 add support for ainice.sensor_occupy.bt
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Aug 27, 2024
1 parent 2cf40dd commit a803adf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@
'with_properties': 'e_someone_duration,e_noone_duration',
'device_class': 'occupancy',
},
'ainice.sensor_occupy.bt': {
'main_miot_services': 'occupancy_sensor',
'interval_seconds': 10,
'parallel_updates': 1,
'switch_properties': 'indicator_switch,bt_pair_switch',
'select_properties': 'bt_power_level',
'scanner_properties': 'online_status',
'select_actions': 'send_magic_package',
},
'ainice.sensor_occupy.bt:online_status': {
'with_properties': 'online_duration,offline_duration,offline_interval,online_mode,bt_capture_mode,binding_info',
},
'ainice.sensor_occupy.pr': {
'main_miot_services': 'occupancy_sensor',
'state_property': 'occupancy_sensor.occupancy_status',
Expand Down
1 change: 1 addition & 0 deletions custom_components/xiaomi_miot/core/miot_local_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'aimore.light.cw3201',
'ainice.motion.bt',
'ainice.sensor_occupy.3b',
'ainice.sensor_occupy.bt',
'ainice.sensor_occupy.pr',
'airdog.airpurifier.mn',
'ateai.mosq.dakuo',
Expand Down

0 comments on commit a803adf

Please sign in to comment.