Node-Red and Home Assistant dimmer slider integration

Hi

I would like to create and integrate dimmer slider switch from Node-Red to Home Assistant, like “switcher” integration. How can I create a dimmer switch in HomeAssistens that controls Node-Red dimmer node?
I have installed a HASC dimmer but I don’t have a entity in HA like switch.xxxx.xxx


If you create an input_number in the helpers section of HA it will give you a slider for the dashboard.

thx, but how? Could you explain?

To create the helper


Choose add helper button on bottom right. Choose number. You can then configure the steps and value range. You can then use this entity in a event state node to output a number to your dimmer node.

Update and information for others how have the same issue.
Going Further with Home Automations in Node-Red - DIY Futurism

Thx,
but I would like to create a light dimmer, like a on/off switch.

  1. icon change color on/off
  2. if brightness is 0 with OFF

Skärmklipp