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

 找回密码
 立即注册
12
返回列表 发新帖
楼主: neighbour

[新奇玩法] 利用hass和NR 实现小米电视截图

[复制链接]

7

主题

202

帖子

1007

积分

金牌会员

Rank: 6Rank: 6

积分
1007
金钱
805
HASS币
0
发表于 2023-11-13 22:16:18 | 显示全部楼层
neighbour 发表于 2023-11-11 00:47
就是通过 node-red 的hassos 接口  获取小米电视实体的截图url 地址。然后把这个地址发给http request 就 ...

大佬。你说的话我都能看懂
但是具体的操作我无法去展开。因为你说这些知识我并不具备,我只能抱着试试看的态度去找找看了

目前不懂的:获取url地址 、 发给http request
我去搜搜看有没有类似的教程吧,先谢过
回复

使用道具 举报

9

主题

97

帖子

699

积分

高级会员

Rank: 4

积分
699
金钱
597
HASS币
30
 楼主| 发表于 2023-11-25 15:22:04 | 显示全部楼层
leselal 发表于 2023-11-11 19:42
大哥出个教程吧?初学者.感谢..

[
    {
        "id": "78dad95d259df720",
        "type": "api-current-state",
        "z": "813dddb186e5f923",
        "name": "",
        "server": "5692cf9f.28c91",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "media_player.xiaomi_rmaxv1_c769_play_control",
        "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": 480,
        "y": 50,
        "wires": [
            [
                "b856f7401470458b"
            ]
        ]
    },
    {
        "id": "8e7b67e56a60189e",
        "type": "inject",
        "z": "813dddb186e5f923",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 150,
        "y": 50,
        "wires": [
            [
                "78dad95d259df720"
            ]
        ]
    },
    {
        "id": "b856f7401470458b",
        "type": "change",
        "z": "813dddb186e5f923",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "data.attributes.capture",
                "pt": "msg",
                "to": "url",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 880,
        "y": 50,
        "wires": [
            [
                "c5fda8d359e6e848",
                "ef8c69aa4469b26a"
            ]
        ]
    },
    {
        "id": "7f93ba224a6f14de",
        "type": "image",
        "z": "813dddb186e5f923",
        "name": "",
        "width": "1024",
        "data": "payload",
        "dataType": "msg",
        "thumbnail": false,
        "active": true,
        "pass": false,
        "outputs": 0,
        "x": 170,
        "y": 100,
        "wires": []
    },
    {
        "id": "c5fda8d359e6e848",
        "type": "http request",
        "z": "813dddb186e5f923",
        "name": "",
        "method": "GET",
        "ret": "bin",
        "paytoqs": "ignore",
        "url": "",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 1140,
        "y": 50,
        "wires": [
            [
                "7f93ba224a6f14de",
                "ef8c69aa4469b26a"
            ]
        ]
    },
    {
        "id": "ef8c69aa4469b26a",
        "type": "debug",
        "z": "813dddb186e5f923",
        "name": "debug 48",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 810,
        "y": 100,
        "wires": []
    },
    {
        "id": "5692cf9f.28c91",
        "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
    }
]

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-8 06:40 , Processed in 0.055610 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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