Skip to content

Instantly share code, notes, and snippets.

@sixstringsg
Created March 26, 2018 02:57
Show Gist options
  • Save sixstringsg/842c2d94f1d0ad7d571b2e6e284103e9 to your computer and use it in GitHub Desktop.
Save sixstringsg/842c2d94f1d0ad7d571b2e6e284103e9 to your computer and use it in GitHub Desktop.
[
{
"id": "e6314782.bec858",
"type": "mqtt in",
"z": "2b42b2a.11da84e",
"name": "Tautulli",
"topic": "tautulli",
"qos": "2",
"broker": "37dc943f.c419dc",
"x": 160,
"y": 160,
"wires": [
[
"5849b18d.41fe7"
]
]
},
{
"id": "5849b18d.41fe7",
"type": "switch",
"z": "2b42b2a.11da84e",
"name": "Playing or Paused",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "started playing",
"vt": "str"
},
{
"t": "cont",
"v": "has resumed",
"vt": "str"
},
{
"t": "cont",
"v": "has paused",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 350,
"y": 160,
"wires": [
[
"ce6b891d.77c2b8"
],
[
"ce6b891d.77c2b8"
],
[
"738ce1a4.77d89"
]
]
},
{
"id": "e1ef3181.fb5cd",
"type": "api-call-service",
"z": "2b42b2a.11da84e",
"name": "Set Downstairs Dim",
"server": "26759efa.611a12",
"service_domain": "scene",
"service": "turn_on",
"data": "{ \"entity_id\" : \"scene.downstairs_dim\" }",
"mergecontext": "",
"x": 820,
"y": 140,
"wires": [
[]
]
},
{
"id": "5667fa8c.3cecd4",
"type": "api-call-service",
"z": "2b42b2a.11da84e",
"name": "Set Downstairs Normal",
"server": "26759efa.611a12",
"service_domain": "scene",
"service": "turn_on",
"data": "{ \"entity_id\" : \"scene.downstairs_normal\" }",
"mergecontext": "",
"x": 830,
"y": 180,
"wires": [
[]
]
},
{
"id": "bc720c8c.cc797",
"type": "comment",
"z": "2b42b2a.11da84e",
"name": "Plex Notifications",
"info": "Using Tautulli to monitor Plex, this watches the MQTT topic for Tautulli and controls the lights accordingly. ",
"x": 180,
"y": 120,
"wires": []
},
{
"id": "738ce1a4.77d89",
"type": "delay",
"z": "2b42b2a.11da84e",
"name": "",
"pauseType": "rate",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "10",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"x": 560,
"y": 180,
"wires": [
[
"5667fa8c.3cecd4"
]
]
},
{
"id": "ce6b891d.77c2b8",
"type": "delay",
"z": "2b42b2a.11da84e",
"name": "",
"pauseType": "rate",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "10",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"x": 560,
"y": 140,
"wires": [
[
"e1ef3181.fb5cd"
]
]
},
{
"id": "37dc943f.c419dc",
"type": "mqtt-broker",
"z": "",
"name": "HASS MQTT",
"broker": "*.*.*.*",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"willTopic": "",
"willQos": "0",
"willPayload": "",
"birthTopic": "",
"birthQos": "0",
"birthPayload": ""
},
{
"id": "26759efa.611a12",
"type": "server",
"z": "",
"name": "Home Assistant",
"url": "http://hassio/homeassistant",
"pass": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment