Node-RED Flow Samsung TV kanaal schakelen in Domoticz

Gepubliceerd door Robot One op

[
    {
        "id": "8e4c231.300a1e",
        "type": "tab",
        "label": "TV Kanaal",
        "disabled": false,
        "info": ""
    },
    {
        "id": "bc5b5d15.14152",
        "type": "mqtt in",
        "z": "8e4c231.300a1e",
        "name": "TV KANAAL",
        "topic": "domoticz/out",
        "qos": "0",
        "datatype": "auto",
        "broker": "8747e656.336818",
        "x": 160,
        "y": 340,
        "wires": [
            [
                "94cbcd81.336d2"
            ]
        ]
    },
    {
        "id": "94cbcd81.336d2",
        "type": "json",
        "z": "8e4c231.300a1e",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 330,
        "y": 340,
        "wires": [
            [
                "a87a8c8c.48d55"
            ]
        ]
    },
    {
        "id": "a87a8c8c.48d55",
        "type": "switch",
        "z": "8e4c231.300a1e",
        "name": "",
        "property": "payload.idx",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "599",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 450,
        "y": 340,
        "wires": [
            [
                "40b1e199.9bfdb"
            ]
        ]
    },
    {
        "id": "40b1e199.9bfdb",
        "type": "switch",
        "z": "8e4c231.300a1e",
        "name": "",
        "property": "payload.svalue1",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "10",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "20",
                "vt": "str"
            }
        ],
        "checkall": "false",
        "repair": true,
        "outputs": 3,
        "x": 590,
        "y": 340,
        "wires": [
            [
                "b09bdeb3.266ab"
            ],
            [
                "ecfcbff5.d596c"
            ],
            [
                "9cf1d54f.2f4038"
            ]
        ]
    },
    {
        "id": "ecfcbff5.d596c",
        "type": "samsung-tv-send",
        "z": "8e4c231.300a1e",
        "device": "a09ecf38.1ce4e",
        "name": "CH UP",
        "key": "KEY_CHUP",
        "x": 770,
        "y": 340,
        "wires": [
            []
        ]
    },
    {
        "id": "9cf1d54f.2f4038",
        "type": "samsung-tv-send",
        "z": "8e4c231.300a1e",
        "device": "a09ecf38.1ce4e",
        "name": "CH DOWN",
        "key": "KEY_CHDOWN",
        "x": 790,
        "y": 380,
        "wires": [
            []
        ]
    },
    {
        "id": "b09bdeb3.266ab",
        "type": "samsung-tv-sendchannel",
        "z": "8e4c231.300a1e",
        "device": "a09ecf38.1ce4e",
        "name": "CH1",
        "keys": "1",
        "x": 770,
        "y": 300,
        "wires": [
            [
                "3e8f6b51.114064"
            ]
        ]
    },
    {
        "id": "3e8f6b51.114064",
        "type": "samsung-tv-send",
        "z": "8e4c231.300a1e",
        "device": "a09ecf38.1ce4e",
        "name": "",
        "key": "KEY_ENTER",
        "x": 940,
        "y": 300,
        "wires": [
            []
        ]
    },
    {
        "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: