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.
I know the following notes are always kind of annoying and seem unnecessary. Unfortunately, many people who knew "better" have lost eyes, fingers or other things due to carelessness or injured themselves. Data loss is almost negligible in comparison, 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 injury or other trouble.
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 make a purchase via this link, Nerdiy.de will receive a commission from the relevant online shop or provider. The price does not change for you. If you make your purchases via these links, you support Nerdiy.de in being able to offer other useful projects in the future. 🙂
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 – Control 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.
|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
Damit Node Red mit der verbundenen Steckdose kommunizieren kann, müsst Ihr die Node “node-red-contrib-fritzapi” installieren. Wie Ihr Nodes installiert ist im Artikel 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 always welcome. 🙂
PS 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 think it's cool that I share the information with you, I would be happy about a small donation to the coffee fund. 🙂