I've been dealing with the following problem for a while now, but somehow I can't solve it.
I have an influx DB that I fill with data. Previously this was done from a different system, but now I want to switch to node red.
Basically it works, but now I have a payload with "-"
--> WW-Storage_Temperature_above: msg.payload
And the "-" leads to a failure. But the expression exists in the database and so I want to keep it.
What can I do?
Which is why you should have shared your code because then we could have avoided the confusion. I now know that what you wanted was a reference inside an object as in:
That wasn't clear in your original post. When asking for help, please try to be clear and comprehensive about what you are asking and do not make assumptions that other people will recognise what you are saying.
Just want to add the final solution that works for me.
Jesterday with the expression [WW-Speicher_Temperatur_oben]: msg.payload
Node red "accepted" the expression. But today when I made the final cutover to node red no entries in influx DB.
With the following modification it works fine: ['WW-Speicher_Temperatur_oben']: msg.payload
And the hole code is:
msg.payload = [