hassio-addons / addon-node-red

Node-RED - Home Assistant Community Add-ons
https://addons.community
MIT License
513 stars 117 forks source link

Default time on "Inject / timestamp" is to low and causes errors. #1851

Closed oleost closed 2 months ago

oleost commented 3 months ago

Problem/Motivation

When using the Inject node with the "Inject once after x second" enabled the default time of 0.1 is to low apparantly and causes errors when redeploying node-red.

Expected behavior

Not cause any error message when using inject script with default value.

Actual behavior

With default value of 0.1 seconds I get error messages when using inject. Increasing this to 1s econds makes them go away.

Steps to reproduce

Create timestamp/inject with default value that runs it after 0.1s. Then point it to read a state of an home assistant sensor, when redeploying one often get error messages.

timestamp error

Proposed changes

Either should the time be increased from example 0.1 to 1 seconds, or optimise what order things are started internally. (Guess the inject script shouldnt run before Node-red is 100% ready)

github-actions[bot] commented 2 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!