This is my node:
[{"id":"f375f22abdc47d79","type":"link in","z":"fd23194c.583248","name":"Kaffeemaschine","links":["876a7b3578423547","f7fc2843e1bc0b0a"],"x":95,"y":1340,"wires":[["4074372572de3229","b8b7edda6007f5e0"]]},{"id":"b8b7edda6007f5e0","type":"delay","z":"fd23194c.583248","name":"1x/Tag","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"day","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":210,"y":1320,"wires":[["0e0cdd13834e7669"]]},{"id":"0e0cdd13834e7669","type":"api-call-service","z":"fd23194c.583248","name":"Kaffeemaschine","server":"bf7fb19a.bb8b","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.kaffeemaschine"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"data"}],"queue":"none","x":440,"y":1320,"wires":[[]]},{"id":"bf7fb19a.bb8b","type":"server","name":"Home Assistant","version":5,"addon":true,"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}]
I could swear that this automation was working perfect all the time and the reset to 0 was at midnight.
I need a node which resets to 0 at midnight.