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

 找回密码
 立即注册
查看: 5650|回复: 39

[技术探讨] 海凌科2410B联动

[复制链接]

23

主题

330

帖子

1402

积分

金牌会员

Rank: 6Rank: 6

积分
1402
金钱
1072
HASS币
10
发表于 2023-7-13 09:57:42 | 显示全部楼层 |阅读模式
本帖最后由 kkk123 于 2023-7-16 08:36 编辑

刚入手了一个海凌科的LD2410B
接入了HA,界面是这样的
QQ截图20230713095406.jpg

我想弄个跟灯光联动的,天黑监测到有人就亮灯,没人延时5秒关灯
这个要如何弄呢
查不到相关资料
而且在HA中看不到光敏的参数


QQ截图20230713113252.jpg

初步用nodered设置了一下,人来开灯,人离开5秒后关灯,没找到光敏参数
[
    {
        "id": "1bd658dfcb1604fb",
        "type": "api-current-state",
        "z": "5622825b657d1a32",
        "name": "廊灯",
        "server": "fad72bae547fbae9",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "switch.sonoff_101857_3",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 490,
        "y": 1220,
        "wires": [
            [
                "51dc987ca1caa5c8"
            ]
        ]
    },
    {
        "id": "51dc987ca1caa5c8",
        "type": "switch",
        "z": "5622825b657d1a32",
        "name": "开灯判断",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 640,
        "y": 1220,
        "wires": [
            [
                "8f5fe6861575f52a"
            ],
            []
        ]
    },
    {
        "id": "8f5fe6861575f52a",
        "type": "api-call-service",
        "z": "5622825b657d1a32",
        "name": "开灯",
        "server": "fad72bae547fbae9",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_on",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.sonoff_11857_3"
        ],
        "data": "",
        "dataType": "jsonata",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 810,
        "y": 1220,
        "wires": [
            []
        ]
    },
    {
        "id": "28ba9f9ad82b4b91",
        "type": "server-state-changed",
        "z": "5622825b657d1a32",
        "name": "人体存在",
        "server": "fad72bae547fbae9",
        "version": 4,
        "exposeToHomeAssistant": false,
        "haConfig": [
            {
                "property": "name",
                "value": ""
            },
            {
                "property": "icon",
                "value": ""
            }
        ],
        "entityidfilter": "binary_sensor.hlk_ld2410_a1_occupancy",
        "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": "",
        "forType": "num",
        "forUnits": "seconds",
        "ignorePrevStateNull": false,
        "ignorePrevStateUnknown": false,
        "ignorePrevStateUnavailable": true,
        "ignoreCurrentStateUnknown": false,
        "ignoreCurrentStateUnavailable": true,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "eventData"
            },
            {
                "property": "topic",
                "propertyType": "msg",
                "value": "",
                "valueType": "triggerId"
            }
        ],
        "x": 60,
        "y": 1280,
        "wires": [
            [
                "e9f30df6b63ec8a0"
            ]
        ]
    },
    {
        "id": "8a9fc68952af7bd1",
        "type": "api-current-state",
        "z": "5622825b657d1a32",
        "name": "廊灯",
        "server": "fad72bae547fbae9",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "switch.sonoff_11857_3",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 990,
        "y": 1340,
        "wires": [
            [
                "72dee4c9502fe4ce"
            ]
        ]
    },
    {
        "id": "72dee4c9502fe4ce",
        "type": "switch",
        "z": "5622825b657d1a32",
        "name": "关灯判断",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1140,
        "y": 1340,
        "wires": [
            [
                "c0c449c91eae9f62"
            ],
            []
        ]
    },
    {
        "id": "c0c449c91eae9f62",
        "type": "api-call-service",
        "z": "5622825b657d1a32",
        "name": "关灯",
        "server": "fad72bae547fbae9",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_off",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.sonoff_11857_3"
        ],
        "data": "",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 1310,
        "y": 1340,
        "wires": [
            []
        ]
    },
    {
        "id": "53d2cd57de2d7b9b",
        "type": "time-range-switch",
        "z": "5622825b657d1a32",
        "name": "白天晚上",
        "lat": "22.78880",
        "lon": "108.46610",
        "startTime": "07:00",
        "endTime": "19:00",
        "startOffset": "",
        "endOffset": "",
        "x": 320,
        "y": 1180,
        "wires": [
            [
                "0a6bed319cf64083"
            ],
            [
                "1bd658dfcb1604fb"
            ]
        ]
    },
    {
        "id": "0a6bed319cf64083",
        "type": "api-current-state",
        "z": "5622825b657d1a32",
        "name": "排气扇",
        "server": "fad72bae547fbae9",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "switch.sonoff_11857_2",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 490,
        "y": 1160,
        "wires": [
            [
                "da2402f8f0ac317c"
            ]
        ]
    },
    {
        "id": "da2402f8f0ac317c",
        "type": "switch",
        "z": "5622825b657d1a32",
        "name": "判断",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 630,
        "y": 1160,
        "wires": [
            [
                "c1c0d9363ce59569"
            ],
            []
        ]
    },
    {
        "id": "c1c0d9363ce59569",
        "type": "api-call-service",
        "z": "5622825b657d1a32",
        "name": "排气扇开",
        "server": "fad72bae547fbae9",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_on",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.sonoff_11857_2"
        ],
        "data": "",
        "dataType": "jsonata",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 820,
        "y": 1160,
        "wires": [
            []
        ]
    },
    {
        "id": "97b2443d23ed12d3",
        "type": "api-call-service",
        "z": "5622825b657d1a32",
        "name": "排气扇关",
        "server": "fad72bae547fbae9",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_off",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.sonoff_11857_2"
        ],
        "data": "",
        "dataType": "jsonata",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 1000,
        "y": 1260,
        "wires": [
            []
        ]
    },
    {
        "id": "fb0c8e9bcf7aca9f",
        "type": "time-range-switch",
        "z": "5622825b657d1a32",
        "name": "白天晚上",
        "lat": "22.78880",
        "lon": "108.46610",
        "startTime": "07:00",
        "endTime": "19:00",
        "startOffset": "",
        "endOffset": "",
        "x": 800,
        "y": 1300,
        "wires": [
            [
                "97b2443d23ed12d3"
            ],
            [
                "8a9fc68952af7bd1"
            ]
        ]
    },
    {
        "id": "e9f30df6b63ec8a0",
        "type": "switch",
        "z": "5622825b657d1a32",
        "name": "开关",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 210,
        "y": 1280,
        "wires": [
            [
                "53d2cd57de2d7b9b"
            ],
            [
                "8680210c2c3cd162"
            ]
        ]
    },
    {
        "id": "8680210c2c3cd162",
        "type": "delay",
        "z": "5622825b657d1a32",
        "name": "",
        "pauseType": "delay",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 360,
        "y": 1300,
        "wires": [
            [
                "df68c3d1af45f4ff"
            ]
        ]
    },
    {
        "id": "df68c3d1af45f4ff",
        "type": "api-current-state",
        "z": "5622825b657d1a32",
        "name": "当前状态",
        "server": "fad72bae547fbae9",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "binary_sensor.hlk_ld2410_a1_occupancy",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 500,
        "y": 1300,
        "wires": [
            [
                "b2ac15e043dec647"
            ]
        ]
    },
    {
        "id": "b2ac15e043dec647",
        "type": "switch",
        "z": "5622825b657d1a32",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 630,
        "y": 1300,
        "wires": [
            [],
            [
                "fb0c8e9bcf7aca9f"
            ]
        ]
    },
    {
        "id": "fad72bae547fbae9",
        "type": "server",
        "name": "Home Assistant",
        "version": 5,
        "addon": false,
        "rejectUnauthorizedCerts": false,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true,
        "heartbeat": false,
        "heartbeatInterval": "30",
        "areaSelector": "friendlyName",
        "deviceSelector": "friendlyName",
        "entitySelector": "friendlyName",
        "statusSeparator": ": ",
        "statusYear": "hidden",
        "statusMonth": "short",
        "statusDay": "numeric",
        "statusHourCycle": "default",
        "statusTimeFormat": "h:m",
        "enableGlobalContextStore": false
    }
]






回复

使用道具 举报

21

主题

527

帖子

3249

积分

论坛元老

Rank: 8Rank: 8

积分
3249
金钱
2722
HASS币
30
发表于 2023-7-13 10:02:52 | 显示全部楼层
2410压根就没有光敏的部分,当然没有参数啊
回复

使用道具 举报

23

主题

330

帖子

1402

积分

金牌会员

Rank: 6Rank: 6

积分
1402
金钱
1072
HASS币
10
 楼主| 发表于 2023-7-13 10:05:26 | 显示全部楼层
wdmywm3 发表于 2023-7-13 10:02
2410压根就没有光敏的部分,当然没有参数啊

2410b有啊,用app可以设置
回复

使用道具 举报

24

主题

595

帖子

2783

积分

金牌会员

Rank: 6Rank: 6

积分
2783
金钱
2188
HASS币
0
发表于 2023-7-13 10:56:56 | 显示全部楼层
自动化  
定时 晚上5点到早上6点
有人开灯
这样就不需要想那么多
回复

使用道具 举报

151

主题

2354

帖子

7305

积分

元老级技术达人

积分
7305
金钱
4946
HASS币
30
发表于 2023-7-13 11:04:09 | 显示全部楼层
这个是成品吗,多少钱,
回复

使用道具 举报

23

主题

330

帖子

1402

积分

金牌会员

Rank: 6Rank: 6

积分
1402
金钱
1072
HASS币
10
 楼主| 发表于 2023-7-13 11:10:25 | 显示全部楼层
bugensui 发表于 2023-7-13 11:04
这个是成品吗,多少钱,

电路板,加个壳接电就能用了
回复

使用道具 举报

23

主题

330

帖子

1402

积分

金牌会员

Rank: 6Rank: 6

积分
1402
金钱
1072
HASS币
10
 楼主| 发表于 2023-7-13 11:16:34 | 显示全部楼层
kjjuhfv 发表于 2023-7-13 10:56
自动化  
定时 晚上5点到早上6点
有人开灯

如何配置,有详细一点的介绍吗
回复

使用道具 举报

151

主题

2354

帖子

7305

积分

元老级技术达人

积分
7305
金钱
4946
HASS币
30
发表于 2023-7-13 11:36:26 | 显示全部楼层
kkk123 发表于 2023-7-13 11:10
电路板,加个壳接电就能用了

贵不,需要焊接吗,不需要烧固件吗,直接就可以接入ha吧,能不能私发个链接
回复

使用道具 举报

23

主题

330

帖子

1402

积分

金牌会员

Rank: 6Rank: 6

积分
1402
金钱
1072
HASS币
10
 楼主| 发表于 2023-7-13 11:40:50 | 显示全部楼层
bugensui 发表于 2023-7-13 11:36
贵不,需要焊接吗,不需要烧固件吗,直接就可以接入ha吧,能不能私发个链接 ...

你去淘宝官方旗舰店,首单18.8好像,记得买线那个套餐,回来把线接到插针上,另一端接5v充电器就可以了
HA带蓝牙就可以接入,我的是N1自带蓝牙自动发现
回复

使用道具 举报

151

主题

2354

帖子

7305

积分

元老级技术达人

积分
7305
金钱
4946
HASS币
30
发表于 2023-7-13 12:01:38 | 显示全部楼层
kkk123 发表于 2023-7-13 11:40
你去淘宝官方旗舰店,首单18.8好像,记得买线那个套餐,回来把线接到插针上,另一端接5v充电器就可以了
H ...

好像要36,那个线不是usb的,是不是要买usb适配器的那个套餐,不然没有办法供电
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-29 07:55 , Processed in 0.176658 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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