# When deploying in any flow Fritz!Box server issue a lot of "Device not ready" msg

**URL:** <https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828>\
**Category:** General\
**Tags:** mqtt\
**Created:** [26 August 2023 16:39 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828 "2023-08-26T16:39:24Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [26 August 2023 16:39 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/1 "2023-08-26T16:39:24Z")

</div>

This happens for may be 5sec then flooding stops and it never comes back .... except I deploy anything again.  
The rest works fine!  
Any idea how to get rid of this flodding?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 August 2023 16:52 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/2 "2023-08-26T16:52:52Z")

</div>

Is fritzboxserver a node you have installed? If so what did you install? node-red-contrib-??? possibly.

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [26 August 2023 18:00 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/3 "2023-08-26T18:00:35Z")

</div>

I would expect `node-red-contrib-fritzapi`, since I had the same error some time ago (with an older Fritzbox 7490), when starting the Raspi or deploying.

Now I only can see valid devices and no error. Fritzbox 7590, FRITZ!OS: 7.56:

```auto
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Updating devices
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 119600729xxx (Buero)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 087610515xxx (Klimaanlage)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 130770173xxx (Büro Lampe)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 130770173xxx (Büro Lampe)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 099950652xxx (xx)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 119600691xxx (xx)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 119600661xxx (Küche)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 099950438xxx (Wohnzimmer)
26 Aug 19:48:08 - [info] [fritz-api:Fritzbox-api] Found: 119600330xxx (free)

```

All DECT devices (FRITZ!DECT 301, Comet DECT) have the latest firmware.  
A FRITZ!DECT 200 (Klimaanlage, smart plug), another Comet DECT and a FRITZ!DECT 500 (DECT bulb) are not connected, but do not produce an error.  
Do you see any unknown devices in the Smart Home menue of the Fritzbox?

---

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [27 August 2023 06:57 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/4 "2023-08-27T06:57:05Z")

</div>

Hi Collin thanks for respons!

nR1 is what is installed.  
nR2\_3 is configuration of the Fritz!Box node.

nodeRed is runing at a Raspberry (xxx.yyy.zzz.17)

br  
Alois

 ![nR1.JPG](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/d/6d58bf108b48e30b13ca4cde667c5c2ce71e187b.jpeg)

 ![nR2_3.JPG](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7cd58205d80c5b3136026a13acb58e89e9898c90.jpeg)

---

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [27 August 2023 07:25 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/5 "2023-08-27T07:25:17Z")

</div>

Hi Stefan thank you for respons!  
Attached you see my flooding problem.

Info:  
Fritz!Box6490 cable  
Fritz!OS: 7.56  
One DECT200 in smartHome: Version 04.25  
(According to AVM the Fritz!Box is looking each 48h for new version of the DECT200.  
If it is found \> automatic installation)  
There where no unknown devices in SmartHome (except 2 other unused DECT200)  
I've removed the unused DECT200 \> restart the F!B \> does not help!

b.r  
Alois

 ![nR5.JPG](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/584e9cc3423e123ca7d0a322c80f801be54570b8.jpeg)

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [27 August 2023 11:09 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/6 "2023-08-27T11:09:15Z")

</div>

Select Konfigurations-Node (maybe config-node in english) in the right window of the Node-RED editor.

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7ddb0902d9cf856b69c1a69299c1b80aaf98c45f.png)

Search for Fritzbox-Api and click on the number next to the button  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/b/6bfb34332bd5c28735e13e5157557cda605197d2.png)

You should get a search windows like that:  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/7/57a8c1d6b7209b3d0f039be1f0c506ea4ae3438b.png)

Are all devices for the given nodes still active?

---

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [27 August 2023 17:38 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/7 "2023-08-27T17:38:30Z")

</div>

Hi Stefan,

my setup is quite simple: There is only on device (DECT200). It is active!

b.r.  
Alois

 ![nR6.JPG](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/c/9cc61ea37649eafd6a53fddcb9af8d98cf0a2def.jpeg)

 ![nR7.JPG](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7f02b87589b6333c71ece2f1df04a1740c45f9af.jpeg)

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [27 August 2023 19:11 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/8 "2023-08-27T19:11:02Z")

</div>

Sorry, dann habe ich keine Idee mehr!  
Sorry, then I have no idea!

---

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [27 August 2023 20:07 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/9 "2023-08-27T20:07:59Z")

</div>

Vielen Dank Stefan!

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [28 August 2023 07:19 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/10 "2023-08-28T07:19:55Z")

</div>

@AloisBachmeier Maybe I got the reason for these errors:

In the flow I can see, that you set the AIN to a flow variable!?  
Maybe the timing is not correct.

Please add a delay to the inject node "Get socket state" (and perhaps remove a delay in the inject node "Set socket AIN") so that it is assured that all fritz-api nodes get the correct AIN!

If this not the solution, please mark and export (only) your flow above and I will import it.  
Please use the formatting as "Vorformatierter Text".

---

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [28 August 2023 12:42 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/11 "2023-08-28T12:42:43Z")

</div>

Hallo Stefan,  
changed the delay in the "inject node": 0.1s \> 5s  
Result: 5s nothing then the well known flooding.

Attached the export.

b.r.  
Alois

[DECT200\_Alois.txt](https://discourse.nodered.org/uploads/short-url/y76YQf1vO9muvPeYWQqNiZZZ9iW.txt) (13.1 KB)

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [28 August 2023 13:44 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/12 "2023-08-28T13:44:14Z")

</div>

It doesn't make sense to increase the delay in the first Inject node "Set socket AIN" too.

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/0175c88be23b08e53c77c884b8da3f0e3e31f8b4.png)

Please set it to 0.1 seconds again. Otherwise the variable won't be initialized before you use it!

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [28 August 2023 14:15 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/13 "2023-08-28T14:15:30Z")

</div>

You can shorten your flow and set the msg.ain in the inject node instead of a separate switch node:

In the second Inject node "Get socket state" +hinzufügen and then:

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/9994786468b58b0ff9a3031c06de7c2fb2c627dd.png)

---

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [29 August 2023 08:49 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/14 "2023-08-29T08:49:57Z")

</div>

Hallo Stefan .... could you meanwhile check out the export file I've sent?

b.r.

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [30 August 2023 12:09 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/15 "2023-08-30T12:09:11Z")

</div>

Meanwhile we talked via PM in german and it seems, that a delay of 10 seconds before the first query of the fritz-api node after deploying has eliminated the error messages.

---

<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:** [13 September 2023 12:09 UTC](https://discourse.nodered.org/t/when-deploying-in-any-flow-fritz-box-server-issue-a-lot-of-device-not-ready-msg/80828/16 "2023-09-13T12:09:20Z")

</div>

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