FlowFuse / FlowFuse/node-red-dashboard

Documentation maybe? Custom Icons on Switch. Representing changing inputs as On/Off icons

Open
#1,549 2 comments 0 reactions 0 assignees View on GitHub
needs-triage type:bug
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Current Behavior

I want to take a value from a flow and pass it to the switch as an input and then have the custom on/off icons. For example if a lock state changes from locked to unlocked or vice versus.

The documentation shows a string input on msg.payload should initiate the icon change.

I cannot get it to work. Tried string "on" and "off". Tried boolean true/false. What input format and values would make the icon change?

### Expected Behavior

_No response_

### Steps To Reproduce

![2024-12-20 10_18_37-Node-RED _ Flow 1 - Brave](https://github.com/user-attachments/assets/87bed268-4a61-4443-8870-396ea81d1e56)

### Environment

- Dashboard version: 3.6.5
- Node-RED version: 4.0.5
- Node.js version:
- npm version:
- Platform/OS: Docker on Ubuntu
- Browser:

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.