NSPanel Lovelace UI Helpers (part 1/5, v1.0)

Thank you all for the inspiration after reading your solutions with the NS panel.

Yet I still have 2 problems, I wouldn’t name it like that, but how did you guys did the following:

  • set up a light dimmer with blockly? I find the visibility of an on-off switch (I don’t use it and would rather have it gone) ambiguous if you only want or can adjust the brightness?

  • and has anyone already dynamically adjusted the colors of the weather forecast (Openweather) on the screensaver, e.g. sun = yellow, clouds white, rain = blue? I wanted to make that with dictionary but it hasn’t really worked out so far.

Concerning the 2nd problem, I did a small test (with a card entities and an entity button) with the following blockly:

I did a test with my nspanel and it seems to work fine. You have just to adapt it to your screensaver: replace “weather-rainy” in the second block by a “get state of item” with the relevant item of your openweather thing.

Hope it helps

Hi, also regarding the 2nd Issue, not exactly what you wanted: I am colorizing the Icons based on the temperature using the ColorRangeHelper:

Maybe that’s also some option to get more colors on the panels :slight_smile: I am using this for the weather and some similar approach for room temperatures.

Best regards, Rene

Thanks,
Regarding my first question. maybe some clearer statement. I don’t like the toggle switch on the right and would like to use something more intuitive than the brightness slider to dim/switch ON-OFF our lights. How did you all do this when you used a dimmable light?


regarding my second question. I’ve now a more colorful screensaver. where I’ve assigned a color to each weather type of open weather.
Herby some snippets for others.



1 Like

Today I’ve successfully added a second NSpanel to openHAB. Every card is working except the screensaver not as intended.

I noticed that on the second panel the weather isn’t updating on the second screen.
It black below the time and date (simple screensaver).

Did I do something wrong in the screensaver update script?

Hi @Vannue ,

seems ok, I’m doing it a similar way (just additionally setting some context variables for per-display values):

No idea, maybe some issue with the update-script itself?

Regards, Rene