[{"id":"98944d80.ad7f6","type":"tab","label":"livingroom tv","disabled":false,"info":""},{"id":"5952a5ab.1669a4","type":"inject","z":"98944d80.ad7f6","name":"","topic":"power status","payload":"ka 01 ff","payloadType":"str","repeat":"10","crontab":"","once":true,"onceDelay":".1","x":180,"y":80,"wires":[["99b9043d.7c2e88"]]},{"id":"163ec858.77b588","type":"debug","z":"98944d80.ad7f6","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":710,"y":800,"wires":[]},{"id":"10953af.d7d37c5","type":"serial request","z":"98944d80.ad7f6","name":"","serial":"cadda10d.b4b95","x":890,"y":180,"wires":[["921fd114.2e1e98","cf0cffe2.dd6fe"]]},{"id":"309970f8.0fdfd8","type":"function","z":"98944d80.ad7f6","name":"add CR","func":"msg.payload = msg.payload + \"\\r\";\nreturn msg;","outputs":1,"noerr":0,"x":740,"y":180,"wires":[["10953af.d7d37c5"]]},{"id":"85bf8480.48edd8","type":"mqtt in","z":"98944d80.ad7f6","name":"","topic":"/tv/livingroom/command/power","qos":"2","datatype":"utf8","broker":"8b5f45d4.47335","x":190,"y":220,"wires":[["4f504638.8be4"]]},{"id":"4f504638.8be4","type":"change","z":"98944d80.ad7f6","name":"tv power","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"ka 01 01","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"ka 01 00","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"status","fromt":"str","to":"ka 01 ff","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":220,"wires":[["99b9043d.7c2e88"]]},{"id":"ec00edb4.42f0e","type":"mqtt out","z":"98944d80.ad7f6","name":"","topic":"/tv/livingroom/status/power","qos":"2","retain":"true","broker":"8b5f45d4.47335","x":1400,"y":220,"wires":[]},{"id":"ea4061aa.11842","type":"change","z":"98944d80.ad7f6","name":"tvpower status","rules":[{"t":"change","p":"payload","pt":"msg","from":"a 01 OK00x","fromt":"str","to":"off","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"a 01 OK01x","fromt":"str","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":220,"wires":[["ec00edb4.42f0e"]]},{"id":"99b9043d.7c2e88","type":"delay","z":"98944d80.ad7f6","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"milliseconds","rate":"2","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":710,"y":140,"wires":[["309970f8.0fdfd8"]]},{"id":"7cacf591.7f4c8c","type":"mqtt in","z":"98944d80.ad7f6","name":"","topic":"/tv/livingroom/command/input","qos":"2","datatype":"utf8","broker":"8b5f45d4.47335","x":180,"y":260,"wires":[["cef2443b.19c98"]]},{"id":"cef2443b.19c98","type":"change","z":"98944d80.ad7f6","name":"tv input","rules":[{"t":"change","p":"payload","pt":"msg","from":"hdmi4","fromt":"str","to":"xb 01 93","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"hdmi3","fromt":"str","to":"xb 01 92","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"hdmi2","fromt":"str","to":"xb 01 91","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"av1","fromt":"str","to":"xb 01 20","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"av2","fromt":"str","to":"xb 01 21","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"component1","fromt":"str","to":"xb 01 40","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"component2","fromt":"str","to":"xb 01 41","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"vga","fromt":"str","to":"xb 01 60","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"dtv_ant","fromt":"str","to":"xb 01 00","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":260,"wires":[["99b9043d.7c2e88"]]},{"id":"27f21981.8a91a6","type":"inject","z":"98944d80.ad7f6","name":"","topic":"input status","payload":"xb 01 ff","payloadType":"str","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":40,"wires":[["99b9043d.7c2e88"]]},{"id":"cc93e107.fefcc","type":"change","z":"98944d80.ad7f6","name":"tv input status","rules":[{"t":"change","p":"payload","pt":"msg","from":"b 01 OK93x","fromt":"str","to":"hdmi4","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK91x","fromt":"str","to":"hdmi2","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK92x","fromt":"str","to":"hdmi3","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK90x","fromt":"str","to":"hdmi1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK60x","fromt":"str","to":"vga","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK00x","fromt":"str","to":"dtv_ant","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK20x","fromt":"str","to":"av1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK21x","fromt":"str","to":"av2","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"b 01 OK40x","fromt":"str","to":"component1","tot":"str"},{"t":"change","p":"payl
This file has been truncated. show original