[
{
"id": "1ef8de36.f1bc72",
"type": "tab",
"label": "Check TV alive",
"disabled": false,
"info": ""
},
{
"id": "f8644458.8171c8",
"type": "inject",
"z": "1ef8de36.f1bc72",
"name": "Check iedere 30s",
"props": [
{
"p": "payload"
}
],
"repeat": "30",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 170,
"y": 240,
"wires": [
[
"9cf9a7eb.6d2518"
]
]
},
{
"id": "92a8058f.d479f8",
"type": "mqtt out",
"z": "1ef8de36.f1bc72",
"name": "TV online",
"topic": "domoticz/in",
"qos": "",
"retain": "",
"broker": "8747e656.336818",
"x": 880,
"y": 240,
"wires": []
},
{
"id": "9cf9a7eb.6d2518",
"type": "samsung-tv-isaliveping",
"z": "1ef8de36.f1bc72",
"device": "a09ecf38.1ce4e",
"name": "",
"x": 420,
"y": 240,
"wires": [
[
"b89f18af.761f88"
],
[
"178bde17.b324f2"
]
]
},
{
"id": "b89f18af.761f88",
"type": "function",
"z": "1ef8de36.f1bc72",
"name": "Domoticz: TV is aan",
"func": "msg.payload = {\"command\":\"udevice\",\"idx\":597,\"nvalue\":1,\"svalue\":\"On\"};\nreturn msg",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 680,
"y": 240,
"wires": [
[
"92a8058f.d479f8"
]
]
},
{
"id": "178bde17.b324f2",
"type": "function",
"z": "1ef8de36.f1bc72",
"name": "Domoticz: TV is uit",
"func": "msg.payload = {\"command\":\"udevice\",\"idx\":597,\"nvalue\":0,\"svalue\":\"Off\"};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 670,
"y": 280,
"wires": [
[
"92a8058f.d479f8"
]
]
},
{
"id": "f80a66c3.511498",
"type": "link out",
"z": "1ef8de36.f1bc72",
"name": "",
"links": [],
"x": 465,
"y": 460,
"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"
}
]