# Home Assistant dimmer slider integration

**URL:** <https://discourse.nodered.org/t/home-assistant-dimmer-slider-integration/55925>\
**Category:** General\
**Tags:** node-red-dashboard, home-assistant\
**Created:** [31 December 2021 10:27 UTC](https://discourse.nodered.org/t/home-assistant-dimmer-slider-integration/55925 "2021-12-31T10:27:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Markusbj](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Markusbj](https://discourse.nodered.org/u/Markusbj)\
**Post date:** [31 December 2021 10:27 UTC](https://discourse.nodered.org/t/home-assistant-dimmer-slider-integration/55925/1 "2021-12-31T10:27:43Z")

</div>

Hi

I woud like to create and integrate dimmer slider switch from Node-Red to Home Assistant, lika switcher integration. How can i create a dimmer switch?  
I have installed a HASC dimmer but I dont have a entity in HA like switch.xxxx.xxx

 ![nodered_flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/bab5049de9e6c583e455501e019fdd769fa768c3.jpeg)  
 ![HA_switch](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/7/27fe2397c3f54da2301e69a13daeda5c269a65ca.jpeg)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [31 December 2021 16:55 UTC](https://discourse.nodered.org/t/home-assistant-dimmer-slider-integration/55925/2 "2021-12-31T16:55:36Z")

</div>

I am not familiar with home assistant (you may have better luck on the HA forums), but your flow looks like a lot of repeating nodes that could possibly be reduced to just 2 nodes. The input fields in the nodes can (usually) be set dynamically based on the input from the messages.

---

<div class="post-metadata">

**Author:** ![Markusbj](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Markusbj](https://discourse.nodered.org/u/Markusbj)\
**Post date:** [1 January 2022 11:58 UTC](https://discourse.nodered.org/t/home-assistant-dimmer-slider-integration/55925/3 "2022-01-01T11:58:50Z")

</div>

Thanks, I´m working on a better code for "http request" node. The GET request string is based on the unit and switch. I have tried different msg.prefix. My wish is to create a slider switch an publish in Home Assistant like the others. The slider you see in the second picture, "tvättstuga tvättho" is a Zigbee. My system communicate over HTTP XML.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [1 January 2022 16:40 UTC](https://discourse.nodered.org/t/home-assistant-dimmer-slider-integration/55925/4 "2022-01-01T16:40:27Z")

</div>

This is (still) offtopic, but the documentation of the node describes how to create dynamic urls:

> When configured within the node, the URL property can contain [mustache-style](http://mustache.github.io/mustache.5.html) tags. These allow the url to be constructed using values of the incoming message. For example, if the url is set to `example.com/{{{topic}}}` , it will have the value of `msg.topic` automatically inserted. Using {{{...}}} prevents mustache from escaping characters like / & etc.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 March 2022 16:41 UTC](https://discourse.nodered.org/t/home-assistant-dimmer-slider-integration/55925/5 "2022-03-02T16:41:22Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
