try this
Code:
[{"id":"2ed20835.b01408","type":"debug","z":"7a2e0c2e.f262a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":1320,"wires":[]},{"id":"4e97ba9b.014224","type":"exec","z":"7a2e0c2e.f262a4","command":"echo \"on 0\" | cec-client RPI -s -d 1","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":340,"y":1240,"wires":[["607e9e3f.10853"],["590c09c0.a241c8"],["6798a6be.6cc278"]]},{"id":"787f0dd1.2229e4","type":"exec","z":"7a2e0c2e.f262a4","command":"echo \"standby 0\" | cec-client RPI -s -d 1","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":360,"y":1360,"wires":[["2ed20835.b01408"],["c2680497.ab1d28"],["7aa63046.9e825"]]},{"id":"acc43d34.ac5de","type":"switch","z":"7a2e0c2e.f262a4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":250,"y":1300,"wires":[["4e97ba9b.014224"],["787f0dd1.2229e4"]]},{"id":"b317bccf.a6b4f","type":"rpi-gpio in","z":"7a2e0c2e.f262a4","name":"pir","pin":"5","intype":"tri","debounce":"25","read":false,"x":90,"y":1240,"wires":[["acc43d34.ac5de"]]},{"id":"c2680497.ab1d28","type":"debug","z":"7a2e0c2e.f262a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":1360,"wires":[]},{"id":"7aa63046.9e825","type":"debug","z":"7a2e0c2e.f262a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":1400,"wires":[]},{"id":"607e9e3f.10853","type":"debug","z":"7a2e0c2e.f262a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":1200,"wires":[]},{"id":"590c09c0.a241c8","type":"debug","z":"7a2e0c2e.f262a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":1240,"wires":[]},{"id":"6798a6be.6cc278","type":"debug","z":"7a2e0c2e.f262a4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":630,"y":1280,"wires":[]},{"id":"8a14ba3d.fbc5d8","type":"inject","z":"7a2e0c2e.f262a4","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1300,"wires":[["acc43d34.ac5de"]]},{"id":"405a25e5.55a68c","type":"inject","z":"7a2e0c2e.f262a4","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1340,"wires":[["acc43d34.ac5de"]]}]