LED's not showing colours with latest dashboard

I recently asked about buttons/LEDs not updating their colours until the page is refreshed.

I updated the offending machine's dashboard and all was good.

Recently I got interested with colours to use with buttons/LEDs and the name you can use.

I made a dashboard with only LEDs on it to get the names visible and see what they look like.

Originally (on this machine) it didn't work, but then I realised that the dashboard wasn't the latest.

I updated it and I thought it worked.

Today I booted the machine and a while later I looked at the page and this is what I saw:

Story with pics:

Am I missing something?

  1. Platform ?
  2. os?
  3. version of NR and node.js?
  4. an small example flow showing the problem

Sorry.....

Ubuntu 18.04 LTS
NR 20.03
Dashboard 2.15.4
node: 8.16.0

me@me-desktop:~/.node-red$ node -v
v8.16.0
me@me-desktop:~/.node-red$

The flow is an inject node injecting true to the LEDs.
The LEDs set to show the colour on receiving true

The inject node sends an output after boot.

This is just one LED.

(and typically: When I made that and deployed, it worked.)
But you can see what I saw to raise the question.

[{"id":"a6d74afa.2448e","type":"inject","z":"94b99c22.d6d97","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":"5","x":160,"y":119,"wires":[["81bfa6.41827858"]]},{"id":"81bfa6.41827858","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Green","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"green","value":"true","valueType":"bool"}],"name":"Green","x":330,"y":120,"wires":[]},{"id":"b8ebdf4.4bee7a","type":"ui_group","z":"","name":"Colour names","tab":"2b6f2eae.e5379a","order":4,"disp":true,"width":"12","collapse":false},{"id":"2b6f2eae.e5379a","type":"ui_tab","z":"","name":"Colour Names","icon":"dashboard","order":4,"disabled":false,"hidden":false}]

So your flow works perfectly. When it first starts the color of the led is grey - becasue it hasn't received a value yet. Five seconds later when the inject triggers and sends a true the led turns green as it should.

To illustrate this, add another inject node to your little flow and set the inject node to send a string of 'hello world' to the ui_led. Deploy amd go look at the LED - it should be green. Now press the new inject button and go look at the led - since neithor the true or false case id true, the led shuts off to grey.

Ok....

To clarify:

Yes, there is an inject node which (after 5 seconds) injects true which goes to the LEDwhich is set to turn (colour) when true is received.

The 'LED` is grey at the start and it should turn (colour) after 5 seconds.

Looking at the montage of pictures I originally posted, the machine had been turned on and NR running for hours.

I then went to the page populated with LEDs and they were all grey.

ONLY after I pressed the inject button did they change colour.

I put a 5 second gap because I don't trust anything less to really work.
(Gotta give things time to settle down, etc)

So, I guess I could try to make it ..... 40 seconds, reboot the machine and see what happens.

But I am sure that in the past it has worked.

0.1 seconds is obviously is pushing the friendship with times.

If the small case (one led) works and the large case (many less) doesn't then I'd need to see the flow of the large case.

As requested.

Full flow/tab.

[{"id":"94b99c22.d6d97","type":"tab","label":"Colour Names","disabled":false,"info":""},{"id":"27ad72bd.f4e7ae","type":"inject","z":"94b99c22.d6d97","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":"5","x":90,"y":200,"wires":[["cc3e8ea8.33588"]]},{"id":"e57189a8.6349d","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Cyan","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"cyan","value":"true","valueType":"bool"}],"name":"Cyan","x":420,"y":230,"wires":[]},{"id":"34051b0a.7f8fe4","type":"inject","z":"94b99c22.d6d97","name":"","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":240,"wires":[["cc3e8ea8.33588"]]},{"id":"a0252c2d.bc43c","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Blue","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"blue","value":"true","valueType":"bool"}],"name":"Blue","x":420,"y":190,"wires":[]},{"id":"549d0b8a.188324","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Magenta","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"magenta","value":"true","valueType":"bool"}],"name":"Magenta","x":430,"y":270,"wires":[]},{"id":"74e6593f.590cb8","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Yellow","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"yellow","value":"true","valueType":"bool"}],"name":"Yellow","x":420,"y":310,"wires":[]},{"id":"4a5dbc9e.9a901c","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Green","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"green","value":"true","valueType":"bool"}],"name":"Green","x":420,"y":150,"wires":[]},{"id":"76fb5449.3d8ba4","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Lime","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"lime","value":"true","valueType":"bool"}],"name":"Lime","x":420,"y":350,"wires":[]},{"id":"b8a5fcd9.5e5f5","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Brown","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"brown","value":"true","valueType":"bool"}],"name":"Brown","x":420,"y":390,"wires":[]},{"id":"6de7b89f.ea9c28","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Purple","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"purple","value":"true","valueType":"bool"}],"name":"Purple","x":420,"y":430,"wires":[]},{"id":"2c693d65.53ea9a","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Violet","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"violet","value":"true","valueType":"bool"}],"name":"Violet","x":420,"y":470,"wires":[]},{"id":"49ff8d1f.0003c4","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Maroon","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"maroon","value":"true","valueType":"bool"}],"name":"Maroon","x":750,"y":150,"wires":[]},{"id":"cc3e8ea8.33588","type":"link out","z":"94b99c22.d6d97","name":"","links":["11e1c2ac.41738d","574143b1.860354","6f0f85b8.1de5ac"],"x":225,"y":240,"wires":[]},{"id":"11e1c2ac.41738d","type":"link in","z":"94b99c22.d6d97","name":"","links":["cc3e8ea8.33588"],"x":555,"y":180,"wires":[["49ff8d1f.0003c4","ebe5e4b5.02a6e","a02ab43c.fdcd4","979336aa.7802b8","2cd66cae.817e94","69340af7.ccb9ac","96ac61bb.7f538","a79a5578.72a28","379fbe53.f2d61a"]]},{"id":"ebe5e4b5.02a6e","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Olive","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"olive","value":"true","valueType":"bool"}],"name":"Olive","x":740,"y":190,"wires":[]},{"id":"a02ab43c.fdcd4","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Fuchsia","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"fuchsia","value":"true","valueType":"bool"}],"name":"Fuchsia","x":750,"y":230,"wires":[]},{"id":"979336aa.7802b8","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Teal","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"teal","value":"true","valueType":"bool"}],"name":"Teal","x":740,"y":270,"wires":[]},{"id":"2cd66cae.817e94","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Aqua","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"aqua","value":"true","valueType":"bool"}],"name":"Aqua","x":740,"y":310,"wires":[]},{"id":"69340af7.ccb9ac","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Navy","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"navy","value":"true","valueType":"bool"}],"name":"Navy","x":740,"y":350,"wires":[]},{"id":"96ac61bb.7f538","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Pink","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"pink","value":"true","valueType":"bool"}],"name":"Pink","x":740,"y":390,"wires":[]},{"id":"a79a5578.72a28","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Orange Red","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"orangered","value":"true","valueType":"bool"}],"name":"Orange Red","x":760,"y":430,"wires":[]},{"id":"379fbe53.f2d61a","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Gold","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"gold","value":"true","valueType":"bool"}],"name":"Gold","x":740,"y":470,"wires":[]},{"id":"574143b1.860354","type":"link in","z":"94b99c22.d6d97","name":"","links":["cc3e8ea8.33588"],"x":215,"y":580,"wires":[["b80a623.9afb5a","a6a777f8.abec98","55d2e5fd.fc058c","b338ed49.2a5d48","e3971d93.0d8c68","3b45117.2837dee","e2b460ac.849e58","64d7910a.f0fa38"]]},{"id":"b80a623.9afb5a","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Sienna","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"sienna","value":"true","valueType":"bool"}],"name":"Sienna","x":430,"y":530,"wires":[]},{"id":"a6a777f8.abec98","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"SpringGreen","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"springgreen","value":"true","valueType":"bool"}],"name":"Spring Green","x":450,"y":570,"wires":[]},{"id":"55d2e5fd.fc058c","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"LimeGreen","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"limegreen","value":"true","valueType":"bool"}],"name":"Lime Green","x":440,"y":610,"wires":[]},{"id":"b338ed49.2a5d48","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"DarkGreen","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"darkgreen","value":"true","valueType":"bool"}],"name":"Dark Green","x":440,"y":650,"wires":[]},{"id":"e3971d93.0d8c68","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Coral","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"coral","value":"true","valueType":"bool"}],"name":"Coral","x":420,"y":690,"wires":[]},{"id":"3b45117.2837dee","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Hot Pink","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"hotpink","value":"true","valueType":"bool"}],"name":"Hot Pink","x":430,"y":730,"wires":[]},{"id":"e2b460ac.849e58","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Dark Red","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"darkred","value":"true","valueType":"bool"}],"name":"Dark Red","x":430,"y":770,"wires":[]},{"id":"64d7910a.f0fa38","type":"ui_led","z":"94b99c22.d6d97","group":"b8ebdf4.4bee7a","order":9,"width":"3","height":"1","label":"Fire Brick","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"firebrick","value":"true","valueType":"bool"}],"name":"Fire Brick","x":430,"y":810,"wires":[]},{"id":"6f0f85b8.1de5ac","type":"link in","z":"94b99c22.d6d97","name":"","links":["cc3e8ea8.33588"],"x":235,"y":300,"wires":[["4a5dbc9e.9a901c","a0252c2d.bc43c","e57189a8.6349d","549d0b8a.188324","74e6593f.590cb8","76fb5449.3d8ba4","b8a5fcd9.5e5f5","6de7b89f.ea9c28","2c693d65.53ea9a"]]},{"id":"b8ebdf4.4bee7a","type":"ui_group","z":"","name":"Colour names","tab":"2b6f2eae.e5379a","order":4,"disp":true,"width":"12","collapse":false},{"id":"2b6f2eae.e5379a","type":"ui_tab","z":"","name":"Colour Names","icon":"dashboard","order":4,"disabled":false,"hidden":false}]

As soon as I deploy this latest flow, all the leds are lit. This is on a Mac and I'll try in on a Pi in a bit.

I can't dispute what you say. I just mentioned that on my Ubuntu NUC I had it powered up for yonks, doing other things.

I wanted to check a colour so I have that page set up so I can see what they look like.

I went there and just got the grey screen.

I pressed the refresh and they all lit.

One thing I shall say - though not really important:
originally when I did it, the screen was grey.
*^&@!
Then I realised (Sorry...... remembered) that this machine wasn't up to date with the dashboard.
I checked the version and it was a couple behind the latest. I think just enough to miss out on the recent problem I found with buttons not keeping their colour.

So I updated the dashboard and it worked. So I never thought anything else about it.

so are you saying this is no longer a problem?

I am saying that that time when I went to the page - after a long up time - and looked at the page it wasn't "loaded".

Subsequent tries have not really proven it one way or another.

All tests have been done on this boot session.

Without a full reboot - which just now is not possible as I am updating a machine - I can't say.
Other than for now it seems to be behaving itself.

HOWEVER
(sorry)
What I am suspecting is the inject node not playing the game of injecting.

While working on the other (many) problems I have (see other posts) I noticed that when I deployed flows, things which were supposed to happen at boot weren't.

inject nodes with the setting on start up were set, but nothing was coming out.

I spent about 30 minutes chasing it and it has - in typical bug fashion - vanished.

So it could be the inject node was the real cause and not the dashboard.

That's where it is at at this point in time.

I'm kind of stuck with the update thread just now.

I'll keep you posted on any developments in this area.

Update:
That was on NR 0.20.3

I have (since) updated to 0.20.5

Weirdly now when I try the inject node to debug node and the at start up even set to 0.1 it works.

It didn't seem to before.

maybe 0.20.3 had/s a problem, and 0.20.5 doesn't.

But that is an update to what I was seeing and am now seeing.

An inject node firing will depend on the deploy level you have set and if you have the Inject once after __ seconds, then enabled
If you have deploy set to:
Full - thenall inject nodes Inject once after __ seconds, then enabled with will fire
Modified Flows - an inject node with Inject once after __ seconds, then enabled will only fire if it is connected to a flow that has changed
Modified Noes - an inject node with Inject once after __ seconds, then enabled will only fire if it has been changed.

Yeah, ok. Good point. I know I have my deploy "dialed back" but when testing this, I make sure the inject node is also modified.

I have just powered up another RPI that has an older version of NR.

It worked.

But.....

Thinking about what you said.
Fair enough about the different modes for deploy.

But where does booting come into it?
That would mean the node is invoked.

I had the machine - this one - booted. I was using it.
NR was loaded. That page was loaded - in the background.
(you would be amazed how many tabs and windows of FF I have... but anyway.)

I was wanting to pick a good colour.

That page of NR was good to show me the colours.

I clicked on the tab. The colours weren't there.

Maybe FF has another BUG in it too..... Who knows?

I've found a couple in my time without too much effort.

I only posted to ask and check.

Seems it has to be chalked up to the "Dunno" file.

have you tried a different browser?

At this stage, no.

I shall have to keep this in mind.

I am now trying to get my main RPI (NR) machine back online after an update.

Knock knock.

Got some more observations for you.

I got the NR working on the other machine today so that is now behind me.

Back to this problem.

I booted this machine. (Ubuntu NUC with power to spare)
Loaded browser and the page with the LEDs was in/on a tab.

After a bit of pfaffing around, I went to that page.
It was blank.

Else where on the tabs is another flow that scans for visible WiFi networks.
Alas as is, it defaults to ON. Which is annoying with the messages cluttering up the debug window to the right.
To solve this I put an inject node to inject a signal to stop that happening.

Thing is that too doesn't work. It is not turned off.

Going to that flow and clicking the inject node it then stops.

To further the enquiry to this, I added a bit more to the flow.

The only cheat is the queue node.

It is connected to the inject node and so when the machine boots and it injects its signal, it is stored in the queue and I can go and look at it a bit later on.

If it is empty, well, that will help explain what is going on.

I'm not going to reboot to test it, but I am telling you that it seems to be happening only on boot rather than any time.

I'll get back to you with more information as it comes to hand.
Sorry I have spent about 1 hour on the phone about my internet dropping out last night and this morning intermitently.

I'm a bit stressed out.

[{"id":"6777b73e.596508","type":"simple-queue","z":"94b99c22.d6d97","name":"queue1","firstMessageBypass":false,"bypassInterval":"0","x":600,"y":140,"wires":[["95e6e1c9.272ca"]]},{"id":"d96e3c23.5dff8","type":"inject","z":"94b99c22.d6d97","name":"Next","topic":"","payload":"next","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":140,"wires":[["5867c7c.cd3dbb8"]]},{"id":"5867c7c.cd3dbb8","type":"change","z":"94b99c22.d6d97","name":"","rules":[{"t":"set","p":"trigger","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":140,"wires":[["6777b73e.596508"]]},{"id":"fe2f2138.31f11","type":"change","z":"94b99c22.d6d97","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":180,"wires":[["6777b73e.596508"]]},{"id":"b6dbcf5f.f58d","type":"inject","z":"94b99c22.d6d97","name":"Wipe","topic":"","payload":"wipe","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":180,"wires":[["fe2f2138.31f11"]],"icon":"node-red/alert.png"},{"id":"95e6e1c9.272ca","type":"debug","z":"94b99c22.d6d97","name":"LED COLOUR ACTIVATION SIGNAL","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":840,"y":140,"wires":[]},{"id":"6f0f85b8.1de5ac","type":"link in","z":"94b99c22.d6d97","name":"","links":["cc3e8ea8.33588"],"x":345,"y":400,"wires":[["4a5dbc9e.9a901c","a0252c2d.bc43c","e57189a8.6349d","549d0b8a.188324","74e6593f.590cb8","76fb5449.3d8ba4","b8a5fcd9.5e5f5","6de7b89f.ea9c28","2c693d65.53ea9a","6777b73e.596508"]]},{"id":"cc3e8ea8.33588","type":"link out","z":"94b99c22.d6d97","name":"","links":["11e1c2ac.41738d","574143b1.860354","6f0f85b8.1de5ac"],"x":335,"y":340,"wires":[]},{"id":"27ad72bd.f4e7ae","type":"inject","z":"94b99c22.d6d97","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":"5","x":200,"y":300,"wires":[["cc3e8ea8.33588"]]}]

Here is a couple of screen grabs showing what is happening.

Pic 1:
You see that on deploy the inject node injects a signal to invoke the true to the LEDs.
That is also sent to the queue node for later looking.

Pic 2:
This is the WiFi scanner.
You can see that two messages sneaked through before it was blocked.
No big. I am not going to fret on that.
Check times if you like. Highlighted on picture.
Then, after 'x' seconds the inject node blocks the flow of data. Again shown on picture.

So, next time I boot - and remember to look - I will check the queue node as well as the state of the LED colour screen.

I'll get back to you when that next happens.

Have you looked at the LED's using a different browser than Firefox?

Oh, sorry. Shall try to remember to do that too.

So much happening.

Hope you don't mind, but it is a problem.