-
Notifications
You must be signed in to change notification settings - Fork 452
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
ui_text doesn't works if there is no msg.payload #459
Comments
when you say it doesn't have the property... is it actually not there ? or defined but blank ? This simple test works for me...
(yes it does produce the error - so will be fixed) |
Not there. I use Firefox, but I can check with a other browser |
On a ui_text node, if the incoming message don't have a msg.payload property, there is an error:
TypeError: Cannot read property 'toString' of undefined
And the value is not updated.
My workaround is to copy the message property (ex. msg.humidity) to msg.payload. Event if the node doesn't use payload but msg.humidity in the Value format configuration property.
BTW, it could be useful that if the incoming message don't have the configured Value format, the display should not be erased.
The text was updated successfully, but these errors were encountered: