-
Notifications
You must be signed in to change notification settings - Fork 15
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
Get item value on startup #10
Comments
The node is already programmed to get the item's state at startup and expose it as an ItemStateEvent. |
So it doesn't work ! |
I didn't occur to my configuration ... however after inspecting the code I might have found the issue. |
Ok it's not very important. Most of my sensors send update frequently. I will test in the next release. |
Please check the new version 1.0.7. I started with delaying status retrieval for a few seconds. |
This new version cause node-red crashing.
So for the crash, after testing few version : |
In order to find the crash : can you export your flows so I can have a look at your setup ? I also forgot to document a change in 1.0.6 : the openhab2-out node now doesn't translate the input payload anymore to 'ON' or 'OFF'. Maybe that explains the openhab2-out warnings.
|
Ok my error is related to the 0 or 1 payload.
When I change "change" node to string 0 or 1 it's ok, no more crash. It's quite annoying because if you made an error it's difficult to recover (node-red crashing so you can't modify faulty node). You must roll back to 1.0.5, change node and revert to 1.0.7. I have a lot of flows so I will prefer to stay in 1.0.5 until this issue will be fixed. |
I don't have time to make a PR |
Thanks for the hint! I'll correct ASAP. |
And finally with 1.0.7, values are ok on startup but it's not ok when deploying a flow (when modified) we need to update it. |
Is it possible to add an option on openhab-in to get value on startup ?
I know I can use openhab-get with inject node but the payload is the object.
The text was updated successfully, but these errors were encountered: