设备的实体ID在哪获取 #492
fengyanbiao
started this conversation in
General
设备的实体ID在哪获取
#492
Replies: 4 comments 3 replies
-
did应该是小米分配的 |
Beta Was this translation helpful? Give feedback.
1 reply
-
翻一下代码吧,在miot_device.py def gen_device_entity_id(self, ha_domain: str) -> str:
return (
f'{ha_domain}.{self._model_strs[0][:9]}_{self.did_tag}_'
f'{self._model_strs[-1][:20]}') |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
你好,已知设备ID,但是相关的实体ID应该怎么拼接,规范在哪找
Beta Was this translation helpful? Give feedback.
All reactions