[{"id":"89ec60af.54136","type":"server-state-changed","z":"2802ff38.60d4c","name":"","server":"8d00ebbc.99a928","entityidfilter":"input_boolean.test","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":236,"y":1680,"wires":[["1e52a128.fa087f","608fffb0.0d7c1"]]},{"id":"1e52a128.fa087f","type":"change","z":"2802ff38.60d4c","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"(.+)","fromt":"re","to":"1,$1","tot":"str"},{"t":"delete","p":"topic","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":512,"y":1680,"wires":[["b4767512.9dcea8"]]},{"id":"d65cb1eb.2fe47","type":"api-call-service","z":"2802ff38.60d4c","name":"","server":"8d00ebbc.99a928","service_domain":"light","service":"","data":"{\"entity_id\":\"light.night_light\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":684,"y":1728,"wires":[[]]},{"id":"608fffb0.0d7c1","type":"template","z":"2802ff38.60d4c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"service\": \"turn_{{payload}}\" }","output":"str","x":496,"y":1728,"wires":[["d65cb1eb.2fe47"]]},{"id":"b4767512.9dcea8","type":"particle-func","z":"2802ff38.60d4c","pcloud":"","devid":"","fname":"","param":"","productIdOrSlug":"","repeat":0,"once":false,"x":674,"y":1680,"wires":[[]]}]