I am totally new in Node Red and Javascript and I am no SW developer and probably this is already the answer to my question. I have only a little experience in writing vb.net and vba software doing this as a hobby but this problem is driving me crazy and I don't want to waste more and more time with this! That's why I ask for help!
The question is:
Why do I have this error shown in the debug area?
I think it comes from the code marked yellow.
But why?
Variable "PVPowerRange_Initial" is used before without any error (marked green)!
Thank you all in advance and sorry for the stupid question!
And please: Don't tell me details about the code in general! I am sure, it can be done much more smarter, but this is not what I am asking for.
is a string not a var, as it has quotes round it. You later refer to it as a var PVPowerRange_Initial with no quotes. As it never existed as a var only a string you get the undefined error.
@E1cid: I think you are right. I deleted all " (what's that in english?), but it still does not work...
I will check it and come back.
Until then many thanks!!!