Skip to content

Instantly share code, notes, and snippets.

View SonoraTechnical's full-sized avatar

Peter ODwyer SonoraTechnical

View GitHub Profile
@SonoraTechnical
SonoraTechnical / README.md
Last active October 16, 2023 07:06
Multi-State Toggle Examples using UI-Template and CCS Overrides

This is a set of Multi-State UI Toggles that are useful in Automation and Control Scenarios.

They are based off of the work of the Forum User HotNIPI. Here's a link to the NodeRED Forum where I initiated the request..and while still discussing it... other users jumped in to help.

https://discourse.nodered.org/t/feature-request-off-auto-on-toggle/40837

Perhaps someday an actual UI Node will be developed based on this work.(see update at bottom of this readme) For now it is easy to implement with a UI Template to perform a few Cascade Style Sheet Overrides for these new Toggle Classes and of course a UI template to define and implement each of the 3 new toggle classes.

This flow contains the raw work done by HotNIPI, with the exception that I have changed the formatting so that they render very nicely in a compact form on the Standard 7" 800x480 Official RaspberryPi TouchLCD Display.