The FRITZ!Box is not only a very good router for the home network. Equipped with the right Smart Home accessories, it can also become the Smart Home center of your house or apartment. Everything you need is already installed in the FRITZ!Box. New sensors or actuators are simply wirelessly connected to the FRITZ!Box via the DECT standard.
One possible actor is the FRITZ!DECT 200 socket. After you have connected it to the Fritz Box, you can control it via the Fritz Smart Home App or according to defined rules or times.
If you want a little more and more individual control, you can also control the socket using Node Red.
This article describes what you have to do to integrate a FRITZ!DECT 200 smart home socket into your Node Red environment.
Safety instructions
I know the following tips are always somehow annoying and seem unnecessary. But unfortunately, many people who knew "better" have already lost eyes, fingers or other things or injured themselves due to carelessness. In comparison, a data loss is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Because even the coolest project is not worth an injury or other trouble.
https://www.nerdiy.de/sicherheitshinweise/
Affiliate links/advertising links
The links to online stores listed here are so-called affiliate links. If you click on such an affiliate link and make a purchase via this link, Nerdiy.com will receive a commission from the respective online store or provider. For you the price does not change. If you make your purchases through these links you support Nerdiy.com to be able to offer more useful projects in the future. 🙂
Requirements
Helpful articles:
So that you can install new nodes Node Red already installed of course.
How to prepare a RaspberryPi and then install Node Red on it is described in the following articles.
- RaspberryPi - Setup for Nerdiys!
- RaspberryPi – The first configuration!
- RaspberryPi - Controlling the RaspberryPi via SSH
- NodeRed - Installing NodeRed on the RaspberryPi
- NodeRed - Import and export node code
In the following lists you will find all the parts you need to implement this article.
Required tools:
Number | Link |
---|---|
1x | Screwdriver set Buy at Amazon |
1x | SD card reader Buy at Amazon |
Material needed:
Number | Link |
---|---|
1x | AVM FRITZ!DECT socket 200 Buy at Amazon |
1x | Raspberry Pi Buy at Amazon |
1x | Raspberry Pi power supply Buy at Amazon |
1x | Raspberry Pi case Buy at Amazon |
1x | Micro SD card 64GB Buy at Amazon |
Log into the NodeRed configuration interface
Before you can edit your NodeRed configuration, you must - if activated - first log into the NodeRed configuration interface.

Read out the AIN of your FRITZ!DECT 200 socket and enter it in Node Red
In order for the Node Red code below to work, you must enter the correct AIN in your Node Red configuration. The AIN is the identification number of your FRITZ DECT Smart Home device, which you need to be able to control or read it specifically. How you can find out the AIN using the FritzBox configuration interface is in the article Fritz Box – Find out the AIN of your SmartHome device described.
Install the appropriate FritzBox node
In order for Node Red to be able to communicate with the connected socket, you must use the Node "node-red-contrib-fritzapi" to install. How your node is installed in the article NodeRed - Install new nodes described.
You should also have already installed and configured the dashboard node. This is used to display the retrieved data on the dashboard. You can find information about this in the following article.
Node Red code for controlling the FRITZ DECT 200 Smart Home socket
With the Node Red code linked below you can control your Fritz DECT 200 socket and retrieve its data. The temperature, measured power and the switching status are displayed on the Node Red Dashboard, but can of course also be processed internally.
In order for the Node Red code to work, the connection between Node Red and your FritzBox should already be configured.
You can find more information about this in the article

In order to be able to use the Node Red code, you still have to enter the AIN of your Fritz DECT Repeater.
The AIN is the identification number via which the repeater is addressed. How you can find out this AIN is in the article Fritz Box – Find out the AIN of your SmartHome device described.
How you can import the NodeCode linked below into your NodeRed environment is in the article NodeRed - Import and export node code described.
As always, you can find the Node Red code in the Nerdiy Git repository under the following link:
Have fun with the project
I hope everything worked as described for you. If not or you have questions or suggestions please let me know in the comments. I will then add this to the article if necessary.
Ideas for new projects are also always welcome 🙂 .
P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do it because I enjoy it, but if you think it's cool that I share the info about it with you, I'd appreciate a small donation to the coffee fund 🙂 .
Thanks for the instructions, unfortunately that doesn't work as desired, but tried it with a Fritzdect 210.
Debug: device not ready
And
Disconnected with error
Small bug in the display of the "socket energy":
The counter values delivered as payload do not have the unit KWh but Wh.
This means that for a specification in the usual unit kWh, it must still be divided by 1000.
Another bug is in the display of the "Online Status": The result of "Get State" is displayed on the "Online Status" display and the switching status and not the online status is displayed as "online" or "offline". Remedy: Add another "Outlet" node, use this to "Get presence status" and output it to "Online Status".