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

 找回密码
 立即注册
查看: 4626|回复: 4

[流程系列] 请教NR如何获取指纹锁的状态

[复制链接]

6

主题

46

帖子

267

积分

中级会员

Rank: 3Rank: 3

积分
267
金钱
221
HASS币
0
发表于 2021-1-12 08:17:47 | 显示全部楼层 |阅读模式
本帖最后由 xf_hfg 于 2021-1-12 08:19 编辑

新手一枚。刚开始接触NR,发现NR的自动化某些方面比HA的自动化方便多了,慢慢的把灯光自动化都转到NR里来了,就只剩下指纹锁。
我是NR里安装HA节点,指纹锁是通过HA的AlexxIT大神的小米网关插件接入的,鼓捣了好几天,始终不知道怎么像HA里那样接入指纹锁并根据开门状态(门外指纹解锁、密码解锁、室内开锁)等
执行后续的自动化。DEBUG信息如图:
QQ截图20210112080404.jpg


action: door
  • action_id: 0, message: Door is open
  • action_id: 1, message: Door is closed
  • action_id: 2, message: Timeout is not closed
  • action_id: 3, message: Knock on the door
  • action_id: 4, message: Breaking the door
  • action_id: 5, message: Door is stuck
action: lock
  • key_id - Key ID in short decimal format
  • action_id: 0, message: Unlock outside the door
  • action_id: 1, message: Lock
  • action_id: 2, message: Turn on anti-lock
  • action_id: 3, message: Turn off anti-lock
  • action_id: 4, message: Unlock inside the door
  • action_id: 5, message: Lock inside the door
  • action_id: 6, message: Turn on child lock
  • action_id: 7, message: Turn off child lock
  • method_id: 0, method: bluetooth
  • method_id: 1, method: password
  • method_id: 2, method: biological
  • method_id: 3, method: key
  • method_id: 4, method: turntable
  • method_id: 5, method: nfc
  • method_id: 6, method: one-time password
  • method_id: 7, method: two-step verification
  • method_id: 8, method: coercion
  • method_id: 10, method: manual
  • method_id: 11, method: automatic
  • key_id: 0xc0de0000, error: Frequent unlocking with incorrect password
  • key_id: 0xc0de0001, error: Frequent unlocking with wrong fingerprints
  • key_id: 0xc0de0002, error: Operation timeout (password input timeout)
  • key_id: 0xc0de0003, error: Lock picking
  • key_id: 0xc0de0004, error: Reset button is pressed
  • key_id: 0xc0de0005, error: The wrong key is frequently unlocked
  • key_id: 0xc0de0006, error: Foreign body in the keyhole
  • key_id: 0xc0de0007, error: The key has not been taken out
  • key_id: 0xc0de0008, error: Error NFC frequently unlocks
  • key_id: 0xc0de0009, error: Timeout is not locked as required
  • key_id: 0xc0de000a, error: Failure to unlock frequently in multiple ways
  • key_id: 0xc0de000b, error: Unlocking the face frequently fails
  • key_id: 0xc0de000c, error: Failure to unlock the vein frequently
  • key_id: 0xc0de000d, error: Hijacking alarm
  • key_id: 0xc0de000e, error: Unlock inside the door after arming
  • key_id: 0xc0de000f, error: Palmprints frequently fail to unlock
  • key_id: 0xc0de0010, error: The safe was moved
  • key_id: 0xc0de1000, error: The battery level is less than 10%
  • key_id: 0xc0de1001, error: The battery is less than 5%
  • key_id: 0xc0de1002, error: The fingerprint sensor is abnormal
  • key_id: 0xc0de1003, error: The accessory battery is low
  • key_id: 0xc0de1004, error: Mechanical failure



不知道该用哪个节点获取上图中的,action: "lock"  、action_id: 0 、method_id: 2这些信息?
麻烦大神给个流程....谢谢!
回复

使用道具 举报

0

主题

125

帖子

1047

积分

金牌会员

Rank: 6Rank: 6

积分
1047
金钱
922
HASS币
0
发表于 2021-1-13 17:38:04 | 显示全部楼层
这个太麻烦了,现在的锁都是蓝牙接入,我教你一招,买个一Aqara灯泡,接入米家zigbee网关,再进HA,锁触发后在米家创建自动化开灯并调光,光线变化,HA就有变化,再在NR写你想要的流程,动手能力强一点,把灯拆了取出芯片用USB取电就行,可以实现100路光线变化的值!
回复

使用道具 举报

1

主题

23

帖子

378

积分

中级会员

Rank: 3Rank: 3

积分
378
金钱
355
HASS币
0
发表于 2021-2-3 18:07:59 | 显示全部楼层
告诉你一个思路,通过message的内容来判断自动化条件
回复

使用道具 举报

16

主题

222

帖子

1744

积分

金牌会员

Rank: 6Rank: 6

积分
1744
金钱
1522
HASS币
0
发表于 2021-2-3 22:53:43 | 显示全部楼层
说真的,最好还是放弃了吧,这毛子的蓝牙设备反馈信息没优化好,你用不到几天,这个门锁的信息就会丢失。
回复

使用道具 举报

6

主题

46

帖子

267

积分

中级会员

Rank: 3Rank: 3

积分
267
金钱
221
HASS币
0
 楼主| 发表于 2021-2-4 09:11:28 | 显示全部楼层
mengyu 发表于 2021-2-3 22:53
说真的,最好还是放弃了吧,这毛子的蓝牙设备反馈信息没优化好,你用不到几天,这个门锁的信息就会丢失。 ...

我已经放弃了,暂时还是用米家,目前插件的确存在门锁信息丢失的问题,其实不仅仅是门锁,蓝牙设备都如此,原因可能是有多个网关存在的原因,估计如果只有一个网关,距离不太远的话,应该是可以...
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-26 16:34 , Processed in 0.161851 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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