# Zwave switches fail to toggle sometimes

**URL:** <https://discourse.nodered.org/t/zwave-switches-fail-to-toggle-sometimes/55137>\
**Category:** General\
**Created:** [13 December 2021 21:01 UTC](https://discourse.nodered.org/t/zwave-switches-fail-to-toggle-sometimes/55137 "2021-12-13T21:01:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![voidpointer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/voidpointer/32/51724_2.png) [@voidpointer](https://discourse.nodered.org/u/voidpointer)\
**Post date:** [13 December 2021 21:01 UTC](https://discourse.nodered.org/t/zwave-switches-fail-to-toggle-sometimes/55137/1 "2021-12-13T21:01:07Z")

</div>

using Node Red, I have a series of lights and smart plugs (that have lights plugged into them) that I toggle when it's dawn or dusk. Occasionally, a light will not toggle correctly. For example, 1 of my 3 devices will be in the "ON" state during the day when the flow should have turned them all off. All of these lights are zwave controlled through zwavejs2mqtt. I assume the light isn't toggled because of some intermittent zwave issue, but that's speculative. I don't know the real reason. Is there a way to build "retry" logic into my NR flow so that if a light fails to switch, I can keep trying it until it does?

If invoking the "turn\_on" or "turn\_off" service doesn't propagate zwave failures, I'm not sure how to address this.

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [14 December 2021 16:01 UTC](https://discourse.nodered.org/t/zwave-switches-fail-to-toggle-sometimes/55137/2 "2021-12-14T16:01:21Z")

</div>

I don't use zwave so I do not know how it works but with zigbee devices I can query their current state. If it is possible to do this in zwave this would be a way to determine whether or not a re-trigger is required.

I am assuming that your zwave system is not crashing

---

<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:** [12 February 2022 16:01 UTC](https://discourse.nodered.org/t/zwave-switches-fail-to-toggle-sometimes/55137/3 "2022-02-12T16:01:45Z")

</div>

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