With the new release of Homeassistant 0.106, they brought the brightness_step and brightness_step_pct parameters to light.turn_on service.
This gives us the possibilite to increase and decrease brightness with easy!
This code below is for nodered in which we can use a button (any binary_sensor wouldwork) and use to toggle the light with single press and dim the light by holding it.
[{"id":"2ee1bd8f.8ba3e2","type":"api-call-service","z":"821f0103.79925","name":"","server":"1d707c49.07a204","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.fita_led","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":1160,"wires":[[]]},{"id":"3654187b.f4cb78","type":"server-state-changed","z":"821f0103.79925","name":"","server":"1d707c49.07a204","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.sala_b2","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":190,"y":1180,"wires":[["b8234bd5.80f2e8"],["fc400eb.27085f"]]},{"id":"7757b6c4.356e18","type":"looptimer","z":"821f0103.79925","duration":"0.2","units":"Second","maxloops":"10","maxtimeout":"10","maxtimeoutunits":"Second","name":"","x":410,"y":1240,"wires":[["453bc20c.95fb1c"],["e2b6be46.e2ba9"]]},{"id":"fc400eb.27085f","type":"change","z":"821f0103.79925","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"STOP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":1240,"wires":[["7757b6c4.356e18"]]},{"id":"d32e280d.cac588","type":"api-call-service","z":"821f0103.79925","name":"","server":"1d707c49.07a204","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.fita_led","data":"{\"brightness_step_pct\":\"{{dim}}\",\"transition\":0.5}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1090,"y":1240,"wires":[[]]},{"id":"e2b6be46.e2ba9","type":"function","z":"821f0103.79925","name":"","func":"var updown = global.get(\"updown\");\nif(updown){\n msg.payload = \"ON\";\n} else { msg.payload = \"OFF\";}\nglobal.set(\"updown\", !updown);\nreturn msg;","outputs":1,"noerr":0,"x":130,"y":1280,"wires":[[]]},{"id":"453bc20c.95fb1c","type":"function","z":"821f0103.79925","name":"","func":"var updown = global.get(\"updown\");\nif(updown){\n msg.dim = 10;\n} else { msg.dim = -10;}\nreturn msg;","outputs":1,"noerr":0,"x":590,"y":1240,"wires":[["d32e280d.cac588"]]},{"id":"b8234bd5.80f2e8","type":"trigger","z":"821f0103.79925","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"300","extend":false,"units":"ms","reset":"","bytopic":"all","name":"","x":460,"y":1160,"wires":[["31c7fe1f.0b3ea2"]]},{"id":"31c7fe1f.0b3ea2","type":"api-current-state","z":"821f0103.79925","name":"","server":"1d707c49.07a204","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.sala_b2","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":730,"y":1160,"wires":[["2ee1bd8f.8ba3e2"],["7757b6c4.356e18"]]},{"id":"1d707c49.07a204","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]