『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: gx19970920

[技术探讨] 【求助】小米人脸识别智能门锁X如何通过gateway3接入HA

[复制链接]

27

主题

228

帖子

1767

积分

金牌会员

Rank: 6Rank: 6

积分
1767
金钱
1539
HASS币
0
发表于 2023-7-21 15:20:17 | 显示全部楼层
gx19970920 发表于 2023-7-21 14:14
你这是 miot auto接入的吧,应该有个key_id.这个就是开门的id

用gw3接入属性会多些?
回复

使用道具 举报

20

主题

351

帖子

1945

积分

金牌会员

Rank: 6Rank: 6

积分
1945
金钱
1594
HASS币
0
 楼主| 发表于 2023-7-21 15:27:24 | 显示全部楼层
huyifanstar 发表于 2023-7-21 15:20
用gw3接入属性会多些?

gw3接入 通过蓝牙,一是本地,2是响应及时,属性应该是一样的,但是不想折腾太多的话,还是auto接入就好,如果想gw3接入,可以买一个多模网关,然后我的帖子里面也有一个详细描述如何将门锁的属性独立出来成为一个实体(分享下将实体的属性独立成一个新实体的方法
https://bbs.hassbian.com/thread-19884-1-1.html
(出处: 『瀚思彼岸』» 智能家居技术论坛)
),就是会稍微折腾点
回复

使用道具 举报

27

主题

228

帖子

1767

积分

金牌会员

Rank: 6Rank: 6

积分
1767
金钱
1539
HASS币
0
发表于 2023-7-21 15:32:09 | 显示全部楼层
gx19970920 发表于 2023-7-21 15:27
gw3接入 通过蓝牙,一是本地,2是响应及时,属性应该是一样的,但是不想折腾太多的话,还是auto接入就好 ...


如果属性没什么区别,那我还是nodered捞开锁人id 配合自动化来做吧

我还以为gw3属性会比auto多
回复

使用道具 举报

20

主题

351

帖子

1945

积分

金牌会员

Rank: 6Rank: 6

积分
1945
金钱
1594
HASS币
0
 楼主| 发表于 2023-7-21 15:40:42 | 显示全部楼层
huyifanstar 发表于 2023-7-21 15:32
如果属性没什么区别,那我还是nodered捞开锁人id 配合自动化来做吧

我还以为gw3属性会比auto多 ...

gw3主要就是一个及时,以及不怕断网,可以本地自动化,开锁人id我也是用nodered弄的 下载.png
回复

使用道具 举报

27

主题

228

帖子

1767

积分

金牌会员

Rank: 6Rank: 6

积分
1767
金钱
1539
HASS币
0
发表于 2023-7-21 15:43:46 | 显示全部楼层
gx19970920 发表于 2023-7-21 15:40
gw3主要就是一个及时,以及不怕断网,可以本地自动化,开锁人id我也是用nodered弄的
...
那看来后面还是有必要本地化一下,我回头看看接入gw3下

另外 flow json能否脱敏分享下,我学习学习 参考一下


谢谢!
回复

使用道具 举报

20

主题

351

帖子

1945

积分

金牌会员

Rank: 6Rank: 6

积分
1945
金钱
1594
HASS币
0
 楼主| 发表于 2023-7-21 17:25:40 | 显示全部楼层
huyifanstar 发表于 2023-7-21 15:43
那看来后面还是有必要本地化一下,我回头看看接入gw3下

另外 flow json能否脱敏分享下,我学习学习 参考一 ...
[{"id":"1e1b99c71eea21bb","type":"tab","label":"流程 1","disabled":false,"info":"","env":[]},{"id":"2e249f0d6b1b5025","type":"server-state-changed","z":"1e1b99c71eea21bb","name":"指纹锁","server":"5baec042.3ee29","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.xiaomi_facelock_key_id","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":360,"wires":[["770d2623470d376f"]]},{"id":"770d2623470d376f","type":"switch","z":"1e1b99c71eea21bb","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"9","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"eq","v":"11","vt":"num"},{"t":"eq","v":"12","vt":"num"},{"t":"eq","v":"13","vt":"num"}],"checkall":"true","repair":false,"outputs":13,"x":270,"y":360,"wires":[["21e4466d398830f0"],["2355873dd90a0ecc"],["37a4db60fb1827eb"],[],[],[],[],[],[],[],[],[],[]]},{"id":"cb1357edfa3abac2","type":"api-call-service","z":"1e1b99c71eea21bb","name":"推送到企业微信","server":"5baec042.3ee29","version":5,"debugenabled":true,"domain":"notify","service":"wework","areaId":[],"deviceId":[],"entityId":[],"data":"{"message":"门被人打开_时间:{{time}}","title":"{{messgaeContent}}开门","data":{"type":"news","url":"https://gitee.com/happygaoxing/poppin/raw/master/homeassistant/%E9%97%A8%E9%94%81%E5%B7%B2%E5%BC%80.png","picurl":"https://gitee.com/happygaoxing/poppin/raw/master/homeassistant/%E9%97%A8%E9%94%81%E5%B7%B2%E5%BC%80.png"}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":280,"wires":[[]]},{"id":"301165b5693973b9","type":"function","z":"1e1b99c71eea21bb","name":"获取当前时间","func":"Date.prototype.Format = function (fmt) {\n    var o = {\n        "M+": this.getMonth() + 1, //月份 \n        "d+": this.getDate(), //日 \n        "h+": this.getHours(), //小时 \n        "m+": this.getMinutes(), //分 \n        "s+": this.getSeconds(), //秒 \n        "q+": Math.floor((this.getMonth() + 3) / 3), //季度 \n        "S": this.getMilliseconds() //毫秒 \n    };\n    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));\n    for (var k in o)\n        if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));\n    return fmt;\n}\nvar mydate = new Date().Format("yyyy年MM月dd日 hh:mm:ss");\nmsg.time = mydate;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":800,"y":280,"wires":[["cb1357edfa3abac2"]]},{"id":"21e4466d398830f0","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":60,"wires":[["301165b5693973b9"]]},{"id":"37a4db60fb1827eb","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":100,"wires":[["301165b5693973b9"]]},{"id":"2355873dd90a0ecc","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":180,"wires":[["301165b5693973b9"]]},{"id":"318eda587143ff62","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":220,"wires":[[]]},{"id":"e2b079809e1bd4c4","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":260,"wires":[[]]},{"id":"7388df0d95d5041d","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":300,"wires":[[]]},{"id":"82b63957bf01e3e7","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":340,"wires":[[]]},{"id":"2645067db3aa6359","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":380,"wires":[[]]},{"id":"2b5c0e416df92b03","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":420,"wires":[[]]},{"id":"2be035baa0219c4e","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":520,"wires":[[]]},{"id":"5baec042.3ee29","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
回复

使用道具 举报

27

主题

228

帖子

1767

积分

金牌会员

Rank: 6Rank: 6

积分
1767
金钱
1539
HASS币
0
发表于 2023-7-22 16:39:16 | 显示全部楼层

我打算用gw3接入了,需要MiCloud devices info?还是直接添加集成?好像是从网关里加的?
回复

使用道具 举报

14

主题

243

帖子

1597

积分

金牌会员

Rank: 6Rank: 6

积分
1597
金钱
1354
HASS币
0
发表于 2023-7-22 20:48:51 | 显示全部楼层

能否麻烦提供一下文件的格式吗?这个版本的粘贴总是提示错误,谢谢了
回复

使用道具 举报

27

主题

228

帖子

1767

积分

金牌会员

Rank: 6Rank: 6

积分
1767
金钱
1539
HASS币
0
发表于 2023-8-11 10:42:50 | 显示全部楼层
TestUser123 发表于 2023-7-22 20:48
能否麻烦提供一下文件的格式吗?这个版本的粘贴总是提示错误,谢谢了

让GPT帮你格式化下
回复

使用道具 举报

27

主题

228

帖子

1767

积分

金牌会员

Rank: 6Rank: 6

积分
1767
金钱
1539
HASS币
0
发表于 2023-10-7 18:15:50 | 显示全部楼层
本帖最后由 huyifanstar 于 2023-10-7 18:24 编辑

国庆折腾了下,使用GW3接了门锁,但我看实体都未知的


是我gw3插件版本问题吗?  Miot插件的实体是正常的
307221696672686_.pic.jpg
307271696672781_.pic.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 04:34 , Processed in 0.057055 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表