# Zigbee Plug Switch Off Router

**URL:** <https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484>\
**Category:** General\
**Created:** [11 January 2022 19:03 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484 "2022-01-11T19:03:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nodernei](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@nodernei](https://discourse.nodered.org/u/nodernei)\
**Post date:** [11 January 2022 19:03 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/1 "2022-01-11T19:03:04Z")

</div>

Hello Community,

I'd like to do a "hard" reboot of my router, meaning I'd like to switch off the router's power supply for ~ 10 seconds. The router is connected to the wall socket via a Zigbee Plug.

The Zigbee Plug can be controlled via my Raspberry Pi. I can switch on / off the Zigbee Plug by means of node red / mqtt. However, I just realized I always need internet to send the on command. The latter is quite unfortunate in this case, since I wanted to send an "off" message and 10 seconds later an "on" message to restart the router. Is there any way to send messages without being connected to the internet?

Thanks for your help.

Best regards,

Nodernei

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 January 2022 19:12 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/2 "2022-01-11T19:12:05Z")

</div>

If you have a local mqtt server you should not need internet.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [11 January 2022 19:13 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/3 "2022-01-11T19:13:09Z")

</div>

Welcome to the forum!

Does your zigbee plug have maybe an internal timer you can set?

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [11 January 2022 19:14 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/4 "2022-01-11T19:14:53Z")

</div>

> [@E1cid](#):
>
> If you have a local mqtt server you should not need internet.

When the router is off, there is no WiFi network to provide MQTT access.

[edit] my mistake, you said "local" MQTT server.

---

<div class="post-metadata">

**Author:** ![nodernei](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@nodernei](https://discourse.nodered.org/u/nodernei)\
**Post date:** [11 January 2022 19:20 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/5 "2022-01-11T19:20:35Z")

</div>

I don't know, I am using this one here [https://www.amazon.de/CC2652P-CP2102N-USB-Stick-Assistant-Zigbee2MQTT/dp/B09KXTCMSC](https://www.amazon.de/CC2652P-CP2102N-USB-Stick-Assistant-Zigbee2MQTT/dp/B09KXTCMSC)

Is there any way to check if there is an internal timer?

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [11 January 2022 19:25 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/6 "2022-01-11T19:25:05Z")

</div>

My Zigbee knowledge is pretty sparse, there are a lot of forum members with lot's of experience.

But if your MQTT broker is on the same machine as your Zigbee dongle, I think it doesn't matter that the router is down???  
See @E1cid's comment above!

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 January 2022 19:29 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/7 "2022-01-11T19:29:18Z")

</div>

@nodernei Ah, may be you should run a separate Wifi access point or run some ethernet cables. Or does your router have the ability to be rebooted by a api?  
[edit] @ghayne sorry replied to wrong post.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [11 January 2022 19:31 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/8 "2022-01-11T19:31:27Z")

</div>

> [@E1cid](#):
>
> [edit] @ghayne sorry replied to wrong post.

I think you might be right though! 🙂

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [13 January 2022 15:59 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/9 "2022-01-13T15:59:36Z")

</div>

For Zigbee plug I don't know if it's possible what you want to do.  
Wifi plug's running on Tasmota are capable to do this. In Tasmota you can make rule that enable's that output again x time after it's disabled. All functions of the plug can off course be controlled over mqtt.  
With this you are always sure that the switch will be back online without the need for sending an On command.  
Preprogrammed Tasmota plugs can be found on ali.

---

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [13 January 2022 16:17 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/10 "2022-01-13T16:17:27Z")

</div>

Internet is not necessary to communicate between your zigbee device and node red as long all components are local.

You have a zigbee coordinator stick. You will need some zigbee hub - zigbee2mqtt? If so a mqtt broker (best choice mosquito)

If any part is outside you should consider to install it locally

---

<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:** [14 March 2022 16:17 UTC](https://discourse.nodered.org/t/zigbee-plug-switch-off-router/56484/11 "2022-03-14T16:17:51Z")

</div>

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