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

 找回密码
 立即注册
查看: 10358|回复: 13

HK插排集成

[复制链接]

3

主题

13

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
金钱
243
HASS币
0
发表于 2021-7-26 18:48:13 | 显示全部楼层 |阅读模式

有大佬知道HK这种集成怎么做到的吗,我dc1接入HA以后转接入HK是分散的几个开关,想做成这样的一个集成列表
305724716167996552.png
回复

使用道具 举报

3

主题

13

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
金钱
243
HASS币
0
 楼主| 发表于 2021-7-26 18:49:23 | 显示全部楼层
顶 等待大佬!!!
回复

使用道具 举报

3

主题

13

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
金钱
243
HASS币
0
 楼主| 发表于 2021-7-26 18:50:25 | 显示全部楼层
顶!!!!! 好像这个是homekit直连的 不是通过HA转接的
回复

使用道具 举报

22

主题

414

帖子

2255

积分

金牌会员

Rank: 6Rank: 6

积分
2255
金钱
1841
HASS币
30
发表于 2021-7-26 19:35:09 | 显示全部楼层
nr可以整合,你也可以买咸鱼的,有人卖150一个,固件作者卖的好像。
你有所不知,小米设备带屏幕都是为了后期广告投送的。
灵长类退散
回复

使用道具 举报

3

主题

13

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
金钱
243
HASS币
0
 楼主| 发表于 2021-7-27 10:39:21 | 显示全部楼层
Tao173 发表于 2021-7-26 19:35
nr可以整合,你也可以买咸鱼的,有人卖150一个,固件作者卖的好像。

确实看到有人卖的,这个整合固件也可以自己刷,iobrokers上有教程
回复

使用道具 举报

3

主题

13

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
金钱
243
HASS币
0
 楼主| 发表于 2021-7-27 16:40:33 | 显示全部楼层
有大佬可以指导一下NR集成的配置吗,怎么把一些开关、插座集成在一起!! 我先照猫画虎的学习编辑一下
回复

使用道具 举报

0

主题

60

帖子

1357

积分

金牌会员

Rank: 6Rank: 6

积分
1357
金钱
1297
HASS币
0
发表于 2021-7-28 10:23:40 | 显示全部楼层
这个是刷的罗大的homekit固件 直接接入homekit就是这样显示的     ioboker论坛有
回复

使用道具 举报

3

主题

49

帖子

369

积分

中级会员

Rank: 3Rank: 3

积分
369
金钱
320
HASS币
0
发表于 2021-8-10 22:19:52 | 显示全部楼层
本帖最后由 ljq910329 于 2021-8-10 22:32 编辑

用nodered可以编辑成这样的给你个流试一下,ID和Bridge换成你自己的
[{"id":"7397a1de.fec72","type":"tab","label":"斐讯插排","disabled":false,"info":""},{"id":"e0e9e82c.06fad8","type":"change","z":"7397a1de.fec72","name":"处理payload","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":220,"wires":[["be1df4f0.83d8f8"]]},{"id":"fd547cdc.57a4d","type":"server-state-changed","z":"7397a1de.fec72","name":"总电源","server":"b6e4cccc.b7eb8","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.dc1_1","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":"topic","propertyType":"msg","value":"0/On","valueType":"str"}],"x":110,"y":160,"wires":[["e0e9e82c.06fad8"]]},{"id":"790d1ec9.e7fc9","type":"server-state-changed","z":"7397a1de.fec72","name":"一口","server":"b6e4cccc.b7eb8","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.dc1_1_s1","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":"topic","propertyType":"msg","value":"1/On","valueType":"str"}],"x":110,"y":220,"wires":[["e0e9e82c.06fad8"]]},{"id":"bf307277.13743","type":"server-state-changed","z":"7397a1de.fec72","name":"二口","server":"b6e4cccc.b7eb8","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.dc1_1_s2","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":"topic","propertyType":"msg","value":"2/On","valueType":"str"}],"x":110,"y":280,"wires":[["e0e9e82c.06fad8"]]},{"id":"be1df4f0.83d8f8","type":"redmatic-homekit-universal","z":"7397a1de.fec72","bridgeConfig":"7937709f.4c2d8","name":"斐讯插排","services":[{"subtype":"0","service":"Switch","name":"总电源"},{"subtype":"1","service":"Switch","name":"一口"},{"subtype":"2","service":"Switch","name":"二口"},{"subtype":"3","service":"Switch","name":"三口"}],"x":460,"y":220,"wires":[["6fd62dda.e2b614","5be6f4a.90f2e0c"]]},{"id":"3ce2de7c.61cda2","type":"api-call-service","z":"7397a1de.fec72","name":"打开总电源","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.dc1_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":120,"wires":[[]]},{"id":"6fd62dda.e2b614","type":"switch","z":"7397a1de.fec72","name":"判断什么开关","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"0/On","vt":"str"},{"t":"eq","v":"1/On","vt":"str"},{"t":"eq","v":"2/On","vt":"str"},{"t":"eq","v":"3/On","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":640,"y":220,"wires":[["a68bc9eb.d79bc8"],["839ca70d.4be138"],["55da8cfc.c313f4"],["b8f77331.e532e"]]},{"id":"a68bc9eb.d79bc8","type":"switch","z":"7397a1de.fec72","name":"状态","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":160,"wires":[["3ce2de7c.61cda2"],["301801f3.5aea7e"]]},{"id":"301801f3.5aea7e","type":"api-call-service","z":"7397a1de.fec72","name":"关闭总电源","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.dc1_1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":180,"wires":[[]]},{"id":"490a05e4.9bdd3c","type":"api-call-service","z":"7397a1de.fec72","name":"打开一口","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.dc1_1_s1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":240,"wires":[[]]},{"id":"839ca70d.4be138","type":"switch","z":"7397a1de.fec72","name":"状态","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":280,"wires":[["490a05e4.9bdd3c"],["4644bf1a.5eac7"]]},{"id":"4644bf1a.5eac7","type":"api-call-service","z":"7397a1de.fec72","name":"关闭一口","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.dc1_1_s1","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":300,"wires":[[]]},{"id":"6d925151.26c52","type":"api-call-service","z":"7397a1de.fec72","name":"打开二口","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.dc1_1_s2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":360,"wires":[[]]},{"id":"55da8cfc.c313f4","type":"switch","z":"7397a1de.fec72","name":"状态","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":400,"wires":[["6d925151.26c52"],["f4afeb99.d9a418"]]},{"id":"f4afeb99.d9a418","type":"api-call-service","z":"7397a1de.fec72","name":"关闭二口","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.dc1_1_s2","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":420,"wires":[[]]},{"id":"5be6f4a.90f2e0c","type":"debug","z":"7397a1de.fec72","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":600,"y":380,"wires":[]},{"id":"3b8dfaa6.4ddb16","type":"api-call-service","z":"7397a1de.fec72","name":"打开三口","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.dc1_1_s3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":480,"wires":[[]]},{"id":"b8f77331.e532e","type":"switch","z":"7397a1de.fec72","name":"状态","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":520,"wires":[["3b8dfaa6.4ddb16"],["8825c617.35f658"]]},{"id":"8825c617.35f658","type":"api-call-service","z":"7397a1de.fec72","name":"关闭三口","server":"b6e4cccc.b7eb8","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.dc1_1_s3","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":540,"wires":[[]]},{"id":"e8593774.fdd678","type":"server-state-changed","z":"7397a1de.fec72","name":"三口","server":"b6e4cccc.b7eb8","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.dc1_1_s3","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":"topic","propertyType":"msg","value":"2/On","valueType":"str"}],"x":110,"y":340,"wires":[["e0e9e82c.06fad8"]]},{"id":"b6e4cccc.b7eb8","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"7937709f.4c2d8","type":"redmatic-homekit-bridge","name":"RedMatic Bridge","username":"CC:22:3D:1C:30:AB","pincode":"378-24-721","port":"51824"}]


回复

使用道具 举报

12

主题

176

帖子

2068

积分

金牌会员

Rank: 6Rank: 6

积分
2068
金钱
1892
HASS币
0
发表于 2021-8-11 09:33:47 | 显示全部楼层
nodered的redmatic-homekit
使用那个universal节点
回复

使用道具 举报

3

主题

13

帖子

256

积分

中级会员

Rank: 3Rank: 3

积分
256
金钱
243
HASS币
0
 楼主| 发表于 2021-8-11 20:45:15 | 显示全部楼层
本帖最后由 Mr.Su 于 2021-8-12 08:36 编辑
ljq910329 发表于 2021-8-10 22:19
用nodered可以编辑成这样的给你个流试一下,ID和Bridge换成你自己的

大佬 确实达到了这种效果,但是按钮无法控制,开关没反应,ID和Bridge都换成我自己的了  那个id需要在json里面全部更换还是在流程框里更改就可以了,我是在流程框里改的,按钮集成出来了但是不能实际控制
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 09:34 , Processed in 0.685367 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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