[{“id”:“e53d302c.94684”,“type”:“tab”,“label”:“Flow 1”,“disabled”:false,“info”:""},{“id”:“ba211585.c123b8”,“type”:“websocket in”,“z”:“e53d302c.94684”,“name”:“rhasspywebsocket”,“server”:“29c2aa0.f16aed6”,“client”:"",“x”:210,“y”:300,“wires”:[[“7e16aeb.da8d55”]]},{“id”:“fa5e071d.83e8c8”,“type”:“change”,“z”:“e53d302c.94684”,“name”:“Unknown intent”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“Wat zei u?”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:600,“y”:340,“wires”:[[“ad4a0114.d490d8”]]},{“id”:“ad4a0114.d490d8”,“type”:“http request”,“z”:“e53d302c.94684”,“name”:“text to speech”,“method”:“POST”,“ret”:“txt”,“paytoqs”:true,“url”:“http://rhasspy:12101/api/text-to-speech",“tls”:"",“persist”:false,“proxy”:"",“authType”:"",“x”:860,“y”:280,“wires”:[[]]},{“id”:“8ed82a9d.59d758”,“type”:“template”,“z”:“e53d302c.94684”,“name”:“ChangeLightState”,“field”:“payload”,“fieldType”:“msg”,“format”:“handlebars”,“syntax”:“mustache”,“template”:"Ik zet de {{ payload.slots.name }} {{ payload.slots.state}}”,“output”:“str”,“x”:610,“y”:280,“wires”:[[“ad4a0114.d490d8”]]},{“id”:“fbda985a.97625”,“type”:“mosca in”,“z”:“e53d302c.94684”,“mqtt_port”:“1883”,“mqtt_ws_port”:8080,“name”:"",“username”:"",“password”:"",“dburl”:"",“x”:110,“y”:60,“wires”:[[]]},{“id”:“fefab438.f4668”,“type”:“inject”,“z”:“e53d302c.94684”,“name”:"",“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“x”:220,“y”:3240,“wires”:[[“b240bf34.fcfbb8”]]},{“id”:“b240bf34.fcfbb8”,“type”:“http request”,“z”:“e53d302c.94684”,“name”:“Relay off”,“method”:“GET”,“ret”:“txt”,“paytoqs”:“ignore”,“url”:“http://192.168.1.85/cm?cmnd=POWER OFF”,“tls”:"",“persist”:false,“proxy”:"",“authType”:"",“x”:420,“y”:3240,“wires”:[[]]},{“id”:“97b12bb6.444e18”,“type”:“inject”,“z”:“e53d302c.94684”,“name”:"",“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“x”:220,“y”:3280,“wires”:[[“611d9130.4ecfe8”]]},{“id”:“611d9130.4ecfe8”,“type”:“http request”,“z”:“e53d302c.94684”,“name”:“Relay on”,“method”:“GET”,“ret”:“txt”,“paytoqs”:“ignore”,“url”:“http://192.168.1.85/cm?cmnd=POWER ON”,“tls”:"",“persist”:false,“proxy”:"",“authType”:"",“x”:420,“y”:3280,“wires”:[[]]},{“id”:“f2372bc3.745f28”,“type”:“http request”,“z”:“e53d302c.94684”,“name”:“Relay toggle”,“method”:“GET”,“ret”:“txt”,“paytoqs”:“ignore”,“url”:“http://192.168.1.85/cm?cmnd=POWER TOGGLE”,“tls”:"",“persist”:false,“proxy”:"",“authType”:"",“x”:430,“y”:3320,“wires”:[[]]},{“id”:“176a10a7.df4a6f”,“type”:“inject”,“z”:“e53d302c.94684”,“name”:"",“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“x”:220,“y”:3320,“wires”:[[“f2372bc3.745f28”]]},{“id”:“198eaee.b76f6d1”,“type”:“http request”,“z”:“e53d302c.94684”,“name”:“Status”,“method”:“GET”,“ret”:“txt”,“paytoqs”:“ignore”,“url”:“http://192.168.1.85/cm?cmnd=STATUS",“tls”:"",“persist”:false,“proxy”:"",“authType”:"",“x”:410,“y”:3380,“wires”:[[“2d0590a.d1d497”]]},{“id”:“7cb2a819.0e32e”,“type”:“inject”,“z”:“e53d302c.94684”,“name”:"",“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“x”:220,“y”:3380,“wires”:[[“198eaee.b76f6d1”]]},{“id”:“2d0590a.d1d497”,“type”:“debug”,“z”:“e53d302c.94684”,“name”:"",“active”:false,“console”:“false”,“complete”:“false”,“x”:610,“y”:3380,“wires”:[]},{“id”:“702cf655.f6ea88”,“type”:“comment”,“z”:“e53d302c.94684”,“name”:"HTTP control”,“info”:“Controlling the relay via HTTP\nHTTP API in the admin page need to be turned off\nCopy the api key from the admin page\n\nURL http:///api/relay/0?apikey=&value=0\naccepted values (at the end):\n0: off\n1: on\n2: toggle”,“x”:170,“y”:3200,“wires”:[]},{“id”:“7e16aeb.da8d55”,“type”:“switch”,“z”:“e53d302c.94684”,“name”:“Intent”,“property”:“intent”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“ChangeLightState”,“vt”:“str”},{“t”:“else”}],“checkall”:“true”,“repair”:false,“outputs”:2,“x”:400,“y”:300,“wires”:[[“8ed82a9d.59d758”,“15cd1247.455c36”],[“fa5e071d.83e8c8”]]},{“id”:“6b67d05a.e4a0d”,“type”:“mqtt out”,“z”:“e53d302c.94684”,“name”:"",“topic”:“cmnd/sonoffsalon/power”,“qos”:“0”,“retain”:"",“broker”:“9ff5363.ec7e2c8”,“x”:1010,“y”:100,“wires”:[]},{“id”:“f964af90.6af83”,“type”:“inject”,“z”:“e53d302c.94684”,“name”:"",“topic”:"",“payload”:“off”,“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“x”:450,“y”:60,“wires”:[[“6b67d05a.e4a0d”]]},{“id”:“bd08b517.bb7fc8”,“type”:“inject”,“z”:“e53d302c.94684”,“name”:"",“topic”:"",“payload”:“on”,“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:"",“x”:450,“y”:100,“wires”:[[“6b67d05a.e4a0d”]]},{“id”:“fbfdd735.c93ed”,“type”:“comment”,“z”:“e53d302c.94684”,“name”:“MQTT control”,“info”:“Controlling the relay via MQTT\n\nroot topic followed by relay/0/set\naccepted messages:\n0: off\n1: on\n2: toggle”,“x”:470,“y”:20,“wires”:[]},{“id”:“15cd1247.455c36”,“type”:“switch”,“z”:“e53d302c.94684”,“name”:“device”,“property”:“slots.name”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“salonverlichting”,“vt”:“str”},{“t”:“eq”,“v”:"",“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:2,“x”:570,“y”:180,“wires”:[[“c0ca2162.4595d8”],[]]},{“id”:“c0ca2162.4595d8”,“type”:“change”,“z”:“e53d302c.94684”,“name”:“replace with on/off”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“slots.state=“aan” ? “on” : slots.state=“uin” ? “off””,“tot”:“jsonata”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:750,“y”:160,“wires”:[[“6b67d05a.e4a0d”]]},{“id”:“c8179aa.e8427e8”,“type”:“comment”,“z”:“e53d302c.94684”,“name”:"",“info”:“Websocket changed to complete message instead of just payload\n-> msg.intent; msg.slots … can now be used”,“x”:170,“y”:220,“wires”:[]},{“id”:“b06e6700.e68e2”,“type”:“comment”,“z”:“e53d302c.94684”,“name”:"",“info”:“Swith node to filter for different intents”,“x”:380,“y”:220,“wires”:[]},{“id”:“11b517f6.6b6ef”,“type”:“comment”,“z”:“e53d302c.94684”,“name”:"",“info”:“Device filter in case your different lights are handled differently\n\ninstead of replacing it here you could also use substitutions for your slots values in rhasspy”,“x”:610,“y”:120,“wires”:[]},{“id”:“b95d1b1b.9525a”,“type”:“comment”,“z”:“e53d302c.94684”,“name”:"?",“info”:"",“x”:130,“y”:100,“wires”:[]},{“id”:“29c2aa0.f16aed6”,“type”:“websocket-listener”,“z”:"",“path”:“ws://rhasspy:12101/api/events/intent”,“wholemsg”:“true”},{“id”:“9ff5363.ec7e2c8”,“type”:“mqtt-broker”,“z”:"",“name”:“localhost:1883”,“broker”:“localhost”,“port”:“1883”,“clientid”:"",“usetls”:false,“compatmode”:true,“keepalive”:“60”,“cleansession”:true,“birthTopic”:"",“birthQos”:“0”,“birthPayload”:"",“closeTopic”:"",“closeQos”:“0”,“closePayload”:"",“willTopic”:"",“willQos”:“0”,“willPayload”:""}]