Skip to content

Commit

Permalink
🏃 add entities for xiaomi.sensor_occupy.p1
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 28, 2024
1 parent 41a9d68 commit 8b430ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,21 @@
},
'xiaomi.plug.mcn003:power_cost_today': ENERGY_KWH,
'xiaomi.plug.mcn003:power_cost_month': ENERGY_KWH,
'xiaomi.sensor_occupy.p1': {
'sensor_properties': 'occupancy_status,has_someone_duration,no_one_duration,illumination,people_num',
'switch_properties': 'enable_switch,installation_image',
'select_properties': 'installation_method,use_map_number,response_speed',
'number_properties': 'bio_sensitive',
'text_properties': 'one_map_name,two_map_name',
'chunk_coordinators': [
{'interval': 10, 'props': 'occupancy_status'},
{'interval': 15, 'props': 'has_someone_duration'},
{'interval': 15, 'props': 'no_one_duration'},
{'interval': 20, 'props': 'illumination,people_num,one_map_name,two_map_name'},
{'interval': 300, 'props': 'enable_switch,installation_method,bio_sensitive,use_map_number,'
'installation_image,response_speed'},
],
},
'xiaomi.tv.*': {
'auto_cloud': True,
'switch_properties': 'is_on',
Expand Down

0 comments on commit 8b430ae

Please sign in to comment.