[{"id":"23ce548110d95931","type":"exec","z":"97468294216ecab8","command":"python3 /home/SiegeniaTest.py","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":650,"y":160,"wires":[["c7f418c748c51663","2d9498b6a66ebd21"],["c7f418c748c51663"],["c7f418c748c51663"]]},{"id":"edddd3782e211607","type":"inject","z":"97468294216ecab8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":140,"wires":[["23ce548110d95931"]]},{"id":"c7f418c748c51663","type":"debug","z":"97468294216ecab8","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1040,"y":140,"wires":[]},{"id":"2a22c6df87c6011d","type":"ha-sensor","z":"97468294216ecab8","name":"SiegeniaDoorLog","entityConfig":"6e58dfb6d8e68e89","version":0,"state":"payload.state","stateType":"msg","attributes":[{"property":"time","value":"payload.time","valueType":"msg"},{"property":"name","value":"payload.name","valueType":"msg"},{"property":"lastupdate","value":"","valueType":"date"}],"inputOverride":"allow","outputProperties":[],"x":990,"y":260,"wires":[[]]},{"id":"2d9498b6a66ebd21","type":"function","z":"97468294216ecab8","name":"function 1","func":"// Parse the input string (assuming msg.payload contains the input string)\nlet inputString = msg.payload;\n\n// Convert the string into an object\nlet data = JSON.parse(\n inputString.replace(/'/g, '\"') // Replace single quotes with double quotes for valid JSON\n);\n\n// Create the new payload\nmsg.payload = {\n state: inputString,\n time: data.time,\n name: data.message\n};\n\n// Return the modified message\nreturn msg;\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":260,"wires":[["eef6df223ff940fd","2a22c6df87c6011d"]]},{"id":"eef6df223ff940fd","type":"debug","z":"97468294216ecab8","name":"debug 14","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":940,"y":320,"wires":[]},{"id":"c99097a1daf883ba","type":"server-state-changed","z":"97468294216ecab8","name":"","server":"e1cef92d.75ece8","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["input_boolean.updatesiegenialog"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[],"x":360,"y":420,"wires":[["23ce548110d95931"]]},{"id":"6e58dfb6d8e68e89","type":"ha-entity-config","server":"e1cef92d.75ece8","deviceConfig":"","name":"SiegeniaDoorLog","version":6,"entityType":"sensor","haConfig":[{"property":"name","value":"SiegeniaDoorLog"},{"property":"icon","value":"mdi:log"},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"e1cef92d.75ece8","type":"server","name":"Home Assistant","version":5,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]