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

 找回密码
 立即注册
查看: 6878|回复: 1

[求助] 小米零火开关接入ha,通过nr接入homekit的流

[复制链接]

8

主题

109

帖子

398

积分

中级会员

Rank: 3Rank: 3

积分
398
金钱
289
HASS币
0
发表于 2020-5-15 13:53:26 | 显示全部楼层 |阅读模式
哪位大佬可以发个流给我学习下
自己搞没法控制
回复

使用道具 举报

8

主题

109

帖子

398

积分

中级会员

Rank: 3Rank: 3

积分
398
金钱
289
HASS币
0
 楼主| 发表于 2020-5-15 15:27:35 | 显示全部楼层
本帖最后由 fengvshen 于 2020-5-15 15:30 编辑

可是实现关开了,是不是这样设置的?大佬帮忙看看 QQ截图20200515152746.jpg
[{"id":"4052643e.79d07c","type":"redmatic-homekit-switch","z":"5df9a96f.341ab8","bridgeConfig":"830cb02c.02e52","name":"开关","x":190,"y":180,"wires":[["9fe05584.9657f8","8b7e6256.38657"]]},{"id":"cb04484.54496b8","type":"api-call-service","z":"5df9a96f.341ab8","name":"打开吸顶灯","server":"775d5494.43103c","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"switch.wall_switch_ln_158d0004262eac","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":710,"y":140,"wires":[[]]},{"id":"eb48458d.1a8848","type":"api-call-service","z":"5df9a96f.341ab8","name":"关闭吸顶灯","server":"775d5494.43103c","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.wall_switch_ln_158d0004262eac","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":710,"y":200,"wires":[[]]},{"id":"67d94fd3.e3fa7","type":"server-state-changed","z":"5df9a96f.341ab8","name":"吸顶灯","server":"775d5494.43103c","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.wall_switch_ln_158d0004262eac","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":50,"y":180,"wires":[[]]},{"id":"9fe05584.9657f8","type":"debug","z":"5df9a96f.341ab8","name":"1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":290,"y":100,"wires":[]},{"id":"dc4d84cb.6bfec8","type":"switch","z":"5df9a96f.341ab8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"turn_on","vt":"str"},{"t":"eq","v":"turn_off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":510,"y":180,"wires":[["c4418010.5f79","cb04484.54496b8"],["91659877.d69488","eb48458d.1a8848"]]},{"id":"fe61eb03.2435c8","type":"debug","z":"5df9a96f.341ab8","name":"2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":450,"y":100,"wires":[]},{"id":"c4418010.5f79","type":"debug","z":"5df9a96f.341ab8","name":"3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":610,"y":100,"wires":[]},{"id":"91659877.d69488","type":"debug","z":"5df9a96f.341ab8","name":"4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":610,"y":260,"wires":[]},{"id":"8b7e6256.38657","type":"change","z":"5df9a96f.341ab8","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"turn_on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":180,"wires":[["dc4d84cb.6bfec8","fe61eb03.2435c8"]]},{"id":"830cb02c.02e52","type":"redmatic-homekit-bridge","z":"","name":"RedMatic Bridge","username":"CC:22:3D:68:2E:D1","pincode":"177-45-298","port":"51900"},{"id":"775d5494.43103c","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]


回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 22:33 , Processed in 0.047954 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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