Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output on Connect no longer works #262

Closed
ghost opened this issue Sep 8, 2020 · 11 comments
Closed

Output on Connect no longer works #262

ghost opened this issue Sep 8, 2020 · 11 comments
Labels
Type: Bug Something isn't working

Comments

@ghost
Copy link

ghost commented Sep 8, 2020

Describe the bug

Output on Connect no longer works on any node

To Reproduce

Steps to reproduce the behavior:

  1. Go to any node that have Output on Connect option
  2. Click on Output on Connect check mark
  3. Hit deploy
  4. See that Output on Connect don't work

Expected behavior

Expect Output on Connect to works on any node that have the option as always

Screenshots

Output on connect

Environment (please complete the following information):

  • Node Red Version: Current version: 7.1.1
  • Node.js Version: [e.g. 12.16.1]
  • NR Home Assistant Plugin Version: [e.g. 0.21.3]
  • Is Node Red running in Docker: HA addon

Other (please complete the following information):

  • Have you searched previous issues for duplicates?:

Additional context

@zachowj zachowj added the Type: Bug Something isn't working label Sep 10, 2020
@zachowj
Copy link
Owner

zachowj commented Sep 10, 2020

Another one that works when the custom integration is installed and doesn't work when it isn't.

@ghost
Copy link
Author

ghost commented Sep 29, 2020 via email

@zachowj
Copy link
Owner

zachowj commented Oct 8, 2020

I can't reproduce this anymore. What is the status of the event node after the connection is made the HA?

@ghost
Copy link
Author

ghost commented Oct 8, 2020 via email

@sstratoti
Copy link

I'm having this same issue.

Node Red Version: 1.2.9
Node.js Version: 10.23.2
NR Home Assistant Plugin Version: 30.1
Is Node Red running in Docker: Yes, image is nodered/node-red

Looks like I'm having this same issue. I just updated my node-red and this contrib palate to the latest versions and now none of my automations are outputting whenever I make changes and re-deploy. From reading another issue on "output on connect" I've read that this only occurs on the first connection from node-red to HA, and that if HA restarts or becomes unavailable, it wont output again. However, redeploying my nodes wipes their current state. Doing a redeploy lists the status as "running" for the state node. I need to somehow force a refresh of the value in order for things to start back up in some of my automations/flows.

For instance, I have an air humidifier in my kids room. I want to start a timer if the humidifier is ON and turn it OFF after an hour, then after another hour, turn it back ON. Basically manage this with a switch in HA. If I redeploy in NR, the state node just lists "running" and unless I manually flip the switch in HA, it wont register the current value.

I've also tried to restart my node-red container to see if it outputs on connect to HA. Still says "running" and doesn't adjust unless I adjust the switch in HA manually. Not sure what I'm doing wrong here.

@sstratoti
Copy link

@zachowj - I think I've figured it out. It looks like it's a bug with the "For xx Minutes" value in the state node. If this has a value in it, even if its just a Zero, it'll continually say "running" and will not output the state. It also will not start the "Waiting for x minutes" message unless the state changes. It'll just continually say "running".

To get around this, I have to clear the value, click "Done" in the node and then deploy. Zero defaults into this field when dropping it into a flow, so it was causing an issue with my NEW flows, not my older ones. I realized this when my older flows were reporting an on/off value below them and when I compared them to my newer flow for the humidifier.

@sstratoti
Copy link

@NemesisFN - Can you confirm this works for you, too?

@ghost
Copy link
Author

ghost commented Mar 4, 2021 via email

@knightjoel
Copy link

@zachowj, some of us are still noticing a problem with this. I notice the same behavior that @sstratoti described above: If "For XX minutes/seconds" is left blank, Output on Connect works as expected. I think it's worth re-opening this issue (or happy to create a new one if you'd prefer).

  • Node-Red HA addon 9.1.2

@WenderGalan
Copy link

Output On Connect is not working on any node that has the configuration. Not resolved yet?

@sstratoti
Copy link

@WenderGalan Have you tried clearing the value for the "For XX minutes/seconds"? See if that resolves your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants