rezmus
rezmus
which camera? most cams don't use miot, only a few latest models.
these models talk miio only (unless something changed in latest fw). all devices have miot specs, but older devices never really deploy it in firmware and they still use human...
https://github.com/rytilahti/python-miio/blob/master/miio/chuangmi_camera.py
lumi.gateway.miXXXX and lumi.gateway.aqhm0X do not provide a way to get subdevices list. you need to define them yourself.
get_battery method is not supported by these hubs.
dev.get_property("voltage") dev.get_property("lqi")
aqara hubs can read lqi, mi hubs can't.
lumi.gateway.v3 - mi cn (called 2nd gen) lumi.gateway.miXXXX - mi global hubs lumi.gateway.aqhm0X - aqara hubs in contrast to mi cn, aqara and mi global have almost similar hardware/firmware and...
i took a look at firmware and i doubt there is such method. also never seen xiaomi cloud api reverse engineered. i think only solution is custom mi home version...
search for something like this "siid":4,"aiid":1,"in":[{"piid":1,"value":19},{"piid":10,"value":X}] X contains json with areas. i'm pretty sure d9 uses same cmd for room/zone clean as f9.