Hi, i am trying to log the times of when I switch devices on and off within my system, and the flow I have made does not work for some reason?
this is my first Node-Red project.
here is the Json code as well.
[{"id":"e169487f.02ad68","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"cbafe6ae.2ab9e8","type":"mqtt out","z":"e169487f.02ad68","name":"","topic":"esp32/led","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"10e78a89.5b4fd5","x":420,"y":240,"wires":},{"id":"d2c1850.c81b778","type":"ui_switch","z":"e169487f.02ad68","name":"","label":"Room 1","tooltip":"","group":"70b4de64.0819","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","animate":true,"x":140,"y":220,"wires":[["cbafe6ae.2ab9e8","15d5e1a7.97221e"]]},{"id":"15d5e1a7.97221e","type":"simpletime","z":"e169487f.02ad68","name":"","mydate":false,"myymd":false,"myyear":false,"mymonth":false,"mymonthn":false,"mydom":false,"mydoy":false,"myday":false,"myhourpm":false,"myhour":false,"mytime":true,"mytimes":false,"myminute":false,"myminutes":false,"mysecond":false,"mymillis":false,"myepoch":false,"myrawdate":false,"mypm":false,"x":570,"y":200,"wires":[["15564263.1a312e"]]},{"id":"31947253.a97b0e","type":"file","z":"e169487f.02ad68","name":"room2","filename":"/home/ruan/smarthomedata/room2","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"none","x":970,"y":200,"wires":[]},{"id":"15564263.1a312e","type":"csv","z":"e169487f.02ad68","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":770,"y":200,"wires":[["31947253.a97b0e"]]},{"id":"10e78a89.5b4fd5","type":"mqtt-broker","name":"","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":""},{"id":"70b4de64.0819","type":"ui_group","name":"Lights","tab":"e7c46d5e.a1283","order":1,"disp":true,"width":"6","collapse":false},{"id":"e7c46d5e.a1283","type":"ui_tab","name":"Dashboard","icon":"dashboard"}]