NodeRed – Control the FRITZ!DECT 500 RGB smart lamp with the help of NodeRed and FritzBox

I recently tested the DECT radiator thermostat for the FritzBox and integrated it into my NodeRed installation.

That’s why I was of course curious to see how the FRITZ! DECT 500 RGB LED lamp works with the FritzBox and whether it can be controlled just as easily from NodeRed as the radiator thermostat before.

As usual with FRITZ products, installation was super easy. Thanks to the very simple step-by-step instructions provided, it took less than two minutes to connect the FRITZ!DECT 500 smart lamp to my FRITZ!Box.

In the app, the interface of the FritzBox and (very practical) also on a connected Fritz!Fon all kind of options for the FRITZ! DECT 500 Smart Home lamp can then be set.

So the lamp can not only be switched on and off. The color, light temperature, saturation and brightness can also be adjusted. This way the lamp can be used both as powerful room lighting and as a dimmed lamp for the cinema evening.

With the example flow presented here in the article, you can configure the basic functions of the lamp very easily via the NodeRed dashboard.

Safety instructions

I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance.

Affiliate links / advertising links

The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and shop via this link, receives a commission from the online shop or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support in being able to offer further useful projects in the future. 🙂


Helpful Articles:
Of course NodeRed should already be installed so that you can take over this configuration.
How to prepare a RaspberryPi and then install NodeRed on it, is described in the following articles.

Required tools:

Required material:

In the following list you will find all the parts you need to implement this article.

1xUSB-power-supply / USB-NetzteilAmazonEbay
1xSD-Card / SD-KarteAmazonEbay
1xHousing / GehäuseAmazonEbay

Log in to the NodeRed configuration interface

Before you can edit your NodeRed configuration you must - if activated - first log in to the NodeRed configuration interface.

View of the login screen. Here you have to enter the login details that you entered during the configuration of the login. Information about this can be found in the article NodeRed - User Login Setup.

Install the appropriate FritzBox node

Install FritzBox-Node

So that NodeRed can communicate with your FritzBox you have to install the node “node-red-contrib-fritz“. How to install Nodes is described in the article NodeRed – Install New Nodes.

You should also have already installed and configured the dashboard node. You can find information on this in the following article.

NodeCode for controlling a FRITZ! DECT 500 Smart Home lamp

The following section contains the node code with which you can set the basic functions of the FRITZ! DECT 500. For this, the connection between NodeRed and your FritzBox must of course already be configured. How you can proceed is described in the article NodeRed / FritzBox – Show caller list in the dashboard.

The current status of the NodeCode is my first draft of a control. I will certainly continue to work on it. Therefore, please ask for updates if you miss features or if this post has not been updated for a long time.

In the current version you can set the color, brightness, saturation and color temperature. In addition, the online status – i.e. whether the lamp is connected to the FritzBox or not – is displayed. Of course, the lamp can also be switched on and off via the dashboard.

The following is a view of the configuration and the actual NodeCode.

View of the flow in the NodeRed configuration view.
Ansicht der Bedienelemente in der Dashboard-Ansicht.

How you can import the NodeCode below is described in the article NodeRed – Import and Export Node-Code.

As always, you can find the NodeCode in the following part in the Nerdiy Git repository under:

Read the AIN of your FRITZ!DECT 500 Smart Home lamp and enter it in NodeRed

In order for the above NodeCode to work, you now have to enter the correct AIN in your NodeRed configuration. The AIN is the identification number of your FRITZ! DECT 500 Smart Home lamp which you need to control it specifically. How you can find this out using the FritzBox configuration interface is described in the following pictures.

To do this, first switch to the configuration view of your FritzBox. Then click on:

  • “Geräteverwaltung”
  • And then on the pencil symbol in the line with the entry for your FRITZ! DECT 500 Smart Home lamp

Then you can see and copy the AIN of your FRITZ!DECT 500 Smart Home lamp in the red area.

In order to insert the copied AIN into the NodeCode you have to do the following:

Open the “Set Lamp AIN” node and enter the AIN of your FRITZ! DECT 500 Smart Home lamp in the user data field.

Have fun with the project

I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂

P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you appreciate it that I share these information with you, I would be happy about a small donation to the coffee box. 🙂

Buy Me a Coffee at   


  1. Interessant wäre ein Code, der die Lampe je nach Sonnenstand oder Uhrzeit schaltet: wenn es dunkel ist, soll warmweißes leuchten und wenn es hell ist, kaltweißes.
    Aber da die Lampeineinstellung nicht verändert werden kann wenn sie am Lichtschalter ausgeschaltet wurde, also offline ist, müsste node-red ständig prüfen ob sie von offline auf online wechselt (also eingeschaltet wird) und dann die dem Sonnenstand oder Uhrzeit entsprechende Einstellung senden.

    1. Hi Jörg,
      das ist eine echt coole Idee. Das mit dem Online und Offline prüfen lassen müsste sich eigentlich bewerkstelligen lassen. Und man könnte auch mal prüfen was passiert, wenn man die Farbeinstellung trotz ausgeschaltet Lampe an die FritzBox/Lampe sendet. Ich könnte mir vorstellen, dass die entsprechenden Einstellungen auf der FritzBox zwischengespeichert und dann an die Lampe gesendet werden, wenn diese eingeschaltet wird.
      Ich glaube der schwierigste Teil ist aus dem Sonnenstand (z.B. Winkel über Horizont) die Lichttemperatur zu berechnen. Ich kenn mich in dem Thema leider nicht so gut aus. Könnte mir vorstellen, dass die Lichtfarbe auch noch Wetterabhängig (wolkig, etc.) ist.
      Alles in allem denke ich, dass man das aber lösen kann. 🙂
      Beste Grüße

      1. Im neuen FritzOS 7.5 kann man Trigger definieren, um Geräte zu schalten. Ein Trigger muss immer von einem Dect-Gerät ausgehen (auch von sich selbst). Bei mir ist es ein RolloReon Dect 1213 der sich eine halbe Stunde nach Sonnenuntergang schließt und um 6:30 Uhr hochfährt.
        Der RolloTron soll der Trigger für die Lampen sein: FritzBox, setze, wenn der RolloTron zu ist, alle Lampen beim nächsten online gehen (=Lichtschalter drücken) auf warmweiß oder setzte sie auf kaltweiß, wenn er offen ist.
        Ich glaube nicht, dass die Farbeinstellungen zwischengespeichert werden. Die Lampen verändern sich nämlich nur, wenn sie selbst online sind, also schon leuchten. Werden sie offline verändert und dann über den Lichtschalter online gemacht, verändert sich ihr Zustand nicht.
        Eine interessante Ausnahme bilden die neuen Szenarien: sendet man über ein Szenario eine Zustandsänderung WIRD diese auch beim nächsten online gehen noch übermittelt, allerdings nur, wenn die Lampen innerhalb der nächsten Minute oder so online gehen (ich habe es nicht genau gestoppt).
        (Jörg – hab mich jetzt angemeldet 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *