[ { "id": "example-home-theatre-equipment-home-theatre-equipment-example", "type": "comment", "name": "Home theatre equipment example", "info": "Each equipment controller accepts a generation-scoped intent and reports target state. Output 1 carries commands for your device transport; output 2 carries theatre target state.\n\nThe display controller talks to the TV, screen and projector relay directly: set their hosts and the TV pre-shared key before deploying. Until then it shows \"invalid configuration\".", "x": 190, "y": 40, "wires": [] }, { "id": "example-home-theatre-equipment-receiver-on-streamer", "type": "inject", "name": "receiver on, streamer", "props": [ { "p": "avr", "v": "{\"kind\":\"intent\",\"requestId\":\"example-avr-1\",\"generation\":1,\"power\":\"on\",\"source\":\"shield\"}", "vt": "json" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 170, "y": 100, "wires": [ [ "example-home-theatre-equipment-avr-controller" ] ] }, { "id": "example-home-theatre-equipment-avr-controller", "type": "home-avr-controller", "name": "", "area": "room", "sources": "{\"shield\":\"SAT/CBL\",\"playstation\":\"GAME\"}", "retryMs": 2000, "maxAttempts": 3, "minVolume": 0, "maxVolume": 60, "x": 420, "y": 100, "wires": [ [ "example-home-theatre-equipment-receiver-commands" ], [ "example-home-theatre-equipment-receiver-state" ] ] }, { "id": "example-home-theatre-equipment-receiver-commands", "type": "debug", "name": "receiver commands", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 80, "wires": [] }, { "id": "example-home-theatre-equipment-receiver-state", "type": "debug", "name": "receiver state", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 120, "wires": [] }, { "id": "example-home-theatre-equipment-display-tv-mode", "type": "inject", "name": "display TV mode", "props": [ { "p": "display", "v": "{\"kind\":\"intent\",\"requestId\":\"example-display-1\",\"generation\":1,\"mode\":\"tv\"}", "vt": "json" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 170, "y": 200, "wires": [ [ "example-home-theatre-equipment-display-mode-controller" ] ] }, { "id": "example-home-theatre-equipment-display-mode-controller", "type": "home-display-mode-controller", "name": "", "area": "room", "tvHost": "", "screenHost": "", "projectorMeterHost": "", "screenOpenPosition": 82, "screenTolerance": 2, "pollMs": 2000, "queryTimeoutMs": 5000, "tvTimeoutMs": 30000, "screenTimeoutMs": 65000, "projectorWarmupMs": 60000, "projectorMinimumWarmupMs": 15000, "projectorShutdownConfirmMs": 5000, "projectorCooldownMs": 120000, "maxAttempts": 2, "projectorOnWatts": 20, "projectorOffWatts": 10, "projectorPowerFallback": false, "transportTimeoutMs": 5000, "x": 420, "y": 200, "wires": [ [ "example-home-theatre-equipment-display-commands" ], [ "example-home-theatre-equipment-display-state" ] ] }, { "id": "example-home-theatre-equipment-display-commands", "type": "debug", "name": "display commands", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 180, "wires": [] }, { "id": "example-home-theatre-equipment-display-state", "type": "debug", "name": "display state", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 220, "wires": [] }, { "id": "example-home-theatre-equipment-activate-streamer", "type": "inject", "name": "activate streamer", "props": [ { "p": "sourceCapability", "v": "{\"kind\":\"intent\",\"requestId\":\"example-source-1\",\"generation\":1,\"sourceId\":\"streamer\",\"action\":\"activate\"}", "vt": "json" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 170, "y": 300, "wires": [ [ "example-home-theatre-equipment-source-capability-controller" ] ] }, { "id": "example-home-theatre-equipment-source-capability-controller", "type": "home-source-capability-controller", "name": "", "area": "room", "sources": "{\"streamer\":{\"activation\":\"command\",\"deactivation\":\"command\",\"confirmation\":\"active\"}}", "pollMs": 2000, "confirmationTimeoutMs": 15000, "maxAttempts": 2, "x": 440, "y": 300, "wires": [ [ "example-home-theatre-equipment-source-commands" ], [ "example-home-theatre-equipment-source-state" ] ] }, { "id": "example-home-theatre-equipment-source-commands", "type": "debug", "name": "source commands", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 280, "wires": [] }, { "id": "example-home-theatre-equipment-source-state", "type": "debug", "name": "source state", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 320, "wires": [] }, { "id": "example-home-theatre-equipment-backlighting-on", "type": "inject", "name": "backlighting on", "props": [ { "p": "backlighting", "v": "{\"kind\":\"intent\",\"requestId\":\"example-backlighting-1\",\"generation\":1,\"power\":\"on\"}", "vt": "json" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 170, "y": 400, "wires": [ [ "example-home-theatre-equipment-backlighting-controller" ] ] }, { "id": "example-home-theatre-equipment-backlighting-controller", "type": "home-backlighting-controller", "name": "", "area": "room", "pollMs": 2000, "confirmationTimeoutMs": 15000, "maxAttempts": 2, "x": 430, "y": 400, "wires": [ [ "example-home-theatre-equipment-backlighting-commands" ], [ "example-home-theatre-equipment-backlighting-state" ] ] }, { "id": "example-home-theatre-equipment-backlighting-commands", "type": "debug", "name": "backlighting commands", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 380, "wires": [] }, { "id": "example-home-theatre-equipment-backlighting-state", "type": "debug", "name": "backlighting state", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 420, "wires": [] } ]