Dimmer Softstarter

Hi there,

Have been looking for a softstart dimmer to use with Node-Red, ended up making my own…
This one uses 20 steps of 0.05seconds…

[{"id":"fc96f439.d4c728","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"ccdcc334.c04ce","type":"counter","z":"fc96f439.d4c728","name":"","init":"0","step":"5","lower":"0","upper":"100","mode":"increment","outputs":1,"x":580,"y":140,"wires":[["c78a62.1a8365a"]]},{"id":"c78a62.1a8365a","type":"api-call-service","z":"fc96f439.d4c728","name":"Softstart Tasmota76","server":"37d68302.2aabcc","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.tasmota76","data":"{\"brightness_pct\":{{count}}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":860,"y":140,"wires":[[]]},{"id":"1692f9b5.fd1ad6","type":"server-state-changed","z":"fc96f439.d4c728","name":"Light76 on?","server":"37d68302.2aabcc","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.tasmota76","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":110,"y":160,"wires":[["592aea9f.a5f9d4"],["e567d555.da5b88"]]},{"id":"592aea9f.a5f9d4","type":"looptimer","z":"fc96f439.d4c728","duration":"0.05","units":"Second","maxloops":"20","maxtimeout":"1","maxtimeoutunits":"Hour","name":"","x":370,"y":140,"wires":[["ccdcc334.c04ce"],[]]},{"id":"e567d555.da5b88","type":"function","z":"fc96f439.d4c728","name":"reset counter","func":"msg.reset = true;\nreturn msg;","outputs":1,"noerr":0,"x":360,"y":200,"wires":[["ccdcc334.c04ce"]]},{"id":"37d68302.2aabcc","type":"server","z":"","name":"Home Assistant"}]
2 Likes