Samsung TV aan/uitzetten in Node-RED en Domoticz

Gepubliceerd door Robot One op

[
    {
        "id": "a5db6b31.21cc78",
        "type": "tab",
        "label": "TV aanzetten",
        "disabled": false,
        "info": ""
    },
    {
        "id": "f735d1e5.451d",
        "type": "mqtt in",
        "z": "a5db6b31.21cc78",
        "name": "TV AAN/UIT",
        "topic": "domoticz/out",
        "qos": "0",
        "datatype": "auto",
        "broker": "8747e656.336818",
        "x": 210,
        "y": 280,
        "wires": [
            [
                "580fc416.3ade7c"
            ]
        ]
    },
    {
        "id": "580fc416.3ade7c",
        "type": "json",
        "z": "a5db6b31.21cc78",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": true,
        "x": 370,
        "y": 280,
        "wires": [
            [
                "4cb56009.30fef"
            ]
        ]
    },
    {
        "id": "4cb56009.30fef",
        "type": "switch",
        "z": "a5db6b31.21cc78",
        "name": "",
        "property": "payload.idx",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "607",
                "vt": "str"
            }
        ],
        "checkall": "false",
        "repair": false,
        "outputs": 1,
        "x": 490,
        "y": 280,
        "wires": [
            [
                "cc521a3f.473bc8"
            ]
        ]
    },
    {
        "id": "af8ac09b.b5f46",
        "type": "samsung-tv-send",
        "z": "a5db6b31.21cc78",
        "device": "a09ecf38.1ce4e",
        "name": "",
        "key": "KEY_POWER",
        "x": 800,
        "y": 300,
        "wires": [
            []
        ]
    },
    {
        "id": "de8972b8.1d7fa",
        "type": "wake on lan",
        "z": "a5db6b31.21cc78",
        "mac": "5C:C1:D7:12:A3:1D",
        "host": "192.168.1.255",
        "udpport": 9,
        "name": "",
        "x": 810,
        "y": 260,
        "wires": []
    },
    {
        "id": "cc521a3f.473bc8",
        "type": "switch",
        "z": "a5db6b31.21cc78",
        "name": "",
        "property": "payload.nvalue",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "false",
        "repair": false,
        "outputs": 2,
        "x": 610,
        "y": 280,
        "wires": [
            [
                "de8972b8.1d7fa"
            ],
            [
                "af8ac09b.b5f46"
            ]
        ]
    },
    {
        "id": "8747e656.336818",
        "type": "mqtt-broker",
        "name": "Domoticz",
        "broker": "192.168.1.234",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": false,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    },
    {
        "id": "a09ecf38.1ce4e",
        "type": "samsung-tv",
        "name": "TV",
        "model": "8002",
        "ip": "192.168.1.123",
        "mac": "1A:B2:3C:D4:5E:F6",
        "token": "12345678"
    }
]
Categorieën: