Skip to content

Commit

Permalink
🔆 add illumination for ainice.sensor_occupy.3b
Browse files Browse the repository at this point in the history
al-one committed Mar 7, 2024
1 parent 4ed1b22 commit cebfe10
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@
'state_property': 'occupancy_sensor.current_occupied',
'interval_seconds': 10,
'binary_sensor_properties': 'current_occupied,a_occupied,b_occupied,c_occupied,d_occupied,e_occupied',
'sensor_properties': 'total_occupied',
'sensor_properties': 'total_occupied,illumination',
'switch_properties': 'radar_switch,count_switch',
'select_properties': 'map_index,traction',
'button_actions': 'reboot',
5 changes: 4 additions & 1 deletion custom_components/xiaomi_miot/core/miot_specs_extend.json
Original file line number Diff line number Diff line change
@@ -97,7 +97,10 @@
},
{
"iid": 3,
"description": "Indicator Light"
"properties": [
{"iid": 1, "description": "Indicator Light"},
{"iid": 2, "type": "urn:miot-spec-v2:property:illumination", "description": "Illumination", "unit": "lx"}
]
}
],

0 comments on commit cebfe10

Please sign in to comment.