Created
January 22, 2022 22:23
-
-
Save UngluedChalice/0f2b535252d55d88c7bfef6b09055529 to your computer and use it in GitHub Desktop.
node red flow for shairport-sync MQTT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "e801d3719bde9110", | |
"type": "mqtt in", | |
"z": "a6bfc374f6682a47", | |
"name": "", | |
"topic": "AirPlay/play_end", | |
"qos": "2", | |
"datatype": "auto", | |
"broker": "57702ac222889e79", | |
"nl": false, | |
"rap": true, | |
"rh": 0, | |
"inputs": 0, | |
"x": 200, | |
"y": 980, | |
"wires": [ | |
[ | |
"f022ace2ea5690e5" | |
] | |
] | |
}, | |
{ | |
"id": "f022ace2ea5690e5", | |
"type": "stoptimer", | |
"z": "a6bfc374f6682a47", | |
"duration": "5", | |
"units": "Minute", | |
"payloadtype": "num", | |
"payloadval": "0", | |
"name": "5 min timer", | |
"x": 510, | |
"y": 980, | |
"wires": [ | |
[ | |
"f84353287a768c94" | |
], | |
[] | |
] | |
}, | |
{ | |
"id": "0ee6b4b5a57a881f", | |
"type": "change", | |
"z": "a6bfc374f6682a47", | |
"name": "Stop", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "stop", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 370, | |
"y": 1040, | |
"wires": [ | |
[ | |
"f022ace2ea5690e5" | |
] | |
] | |
}, | |
{ | |
"id": "f84353287a768c94", | |
"type": "api-call-service", | |
"z": "a6bfc374f6682a47", | |
"name": "Turn Off Speakers (Scene)", | |
"server": "da064c2a.9cfc8", | |
"version": 3, | |
"debugenabled": false, | |
"service_domain": "scene", | |
"service": "turn_on", | |
"entityId": "scene.turn_off_speakers", | |
"data": "", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"mustacheAltTags": false, | |
"outputProperties": [], | |
"queue": "none", | |
"x": 770, | |
"y": 980, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "f880bb9f2a202324", | |
"type": "mqtt in", | |
"z": "a6bfc374f6682a47", | |
"name": "", | |
"topic": "AirPlay/play_start", | |
"qos": "2", | |
"datatype": "auto", | |
"broker": "57702ac222889e79", | |
"nl": false, | |
"rap": true, | |
"rh": 0, | |
"inputs": 0, | |
"x": 200, | |
"y": 1040, | |
"wires": [ | |
[ | |
"0ee6b4b5a57a881f" | |
] | |
] | |
}, | |
{ | |
"id": "57702ac222889e79", | |
"type": "mqtt-broker", | |
"name": "", | |
"broker": "homeassistant", | |
"port": "1883", | |
"clientid": "", | |
"autoConnect": true, | |
"usetls": false, | |
"protocolVersion": "4", | |
"keepalive": "60", | |
"cleansession": true, | |
"birthTopic": "", | |
"birthQos": "0", | |
"birthPayload": "", | |
"birthMsg": {}, | |
"closeTopic": "", | |
"closeQos": "0", | |
"closePayload": "", | |
"closeMsg": {}, | |
"willTopic": "", | |
"willQos": "0", | |
"willPayload": "", | |
"willMsg": {}, | |
"sessionExpiry": "" | |
}, | |
{ | |
"id": "da064c2a.9cfc8", | |
"type": "server", | |
"name": "Home Assistant", | |
"version": 2, | |
"addon": true, | |
"rejectUnauthorizedCerts": true, | |
"ha_boolean": "y|yes|true|on|home|open", | |
"connectionDelay": true, | |
"cacheJson": true, | |
"heartbeat": false, | |
"heartbeatInterval": 30 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment