hassio-addons/addon-node-red

HA Poll State Node firing twice each change #543

Linwood-F posted onGitHub

Problem/Motivation

Beginning somewhere around 0.108 and Node Red 6.20 (probably one before), event poll nodes that used to fire once on a change now fire twice on each change. Hass.io is running on a ubuntu linux HyperV VM.

Expected behavior

Fire either on change (with that option checked) or when polled, but once each.

Actual behavior

Change is firing twice.

The poll is firing only once (correctly).

This behavior is new, and started within the last couple weeks. I have observed it on three different integrations (and one as a light group) and have no reason to think it is integration specific. I see nothing unusual in any log. I have not found any instance that works properly.

The behavior is not cosmetic (i.e. just in the debug), it actually generates two flow entries which (in this case a voice notification) fire twice, so it is two actual initiations.

Steps to reproduce

I am running in Hass.io with the supervisor installed add-on, and both current as of this date (4/20/2022) at 0.108.6 node red 6.20 supervisor 217.

I created a test flow with simply event poll node, checked "on change" but not "on connect", and set it to point to a light. I connected it to a debug node, deployed, then turned the light off. The result is two debugs with identical time stamps.

dup

Proposed changes

Have not looked at the code.

It should only fire once.


:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

posted by addons-assistant[bot] about 5 years ago

Add-ons wrap existing software. In this case it wraps Node-RED with the node for Home Assistant.

Please file your issue with the Home Assistant node here:

https://github.com/zachowj/node-red-contrib-home-assistant-websocket

Thanks! 👍

<blockquote><img src="https://avatars2.githubusercontent.com/u/37859597?s=400&v=4" width="48" align="right"><div><img src="https://github.githubassets.com/favicons/favicon.svg" height="14"> GitHub</div><div><strong><a href="https://github.com/zachowj/node-red-contrib-home-assistant-websocket">zachowj/node-red-contrib-home-assistant-websocket</a></strong></div><div>Node-RED integration with Home Assistant Core. Contribute to zachowj/node-red-contrib-home-assistant-websocket development by creating an account on GitHub.</div></blockquote>

posted by frenck about 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

posted by addons-assistant[bot] almost 5 years ago

Fund this Issue

$0.00
Funded

Pull requests