# How can I change the color of a button without changing the output?

**URL:** https://discourse.nodered.org/t/how-can-i-change-the-color-of-a-button-without-changing-the-output/45225
**Category:** General
**Created:** [5 May 2021 13:48 UTC](https://discourse.nodered.org/t/how-can-i-change-the-color-of-a-button-without-changing-the-output/45225 "2021-05-05T13:48:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tmollow](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@tmollow](https://discourse.nodered.org/u/tmollow)
#### Post date: [5 May 2021 13:48 UTC](https://discourse.nodered.org/t/how-can-i-change-the-color-of-a-button-without-changing-the-output/45225/1 "2021-05-05T13:48:27Z")

</div>

I'm trying to implement a webradio with a Raspberry Pi, node-red and MPC, that can be controlled with a LIRC IR window control.  
The station selection should indicate the current station in color.  
I have found an example with led display.  
[[https://flows.nodered.org/flow/a7f16a3f276ac5cb51e5c760572afd8e](https://flows.nodered.org/flow/a7f16a3f276ac5cb51e5c760572afd8e)]

My modification changes the color of the button, but the station changes shortly and then only station 1 is played.  
[flows(1).json](https://discourse.nodered.org/uploads/short-url/yXqwaaAtnOh3J1GXkvuHpoULfMg.json) (17.3 KB)

 ![Node-red_TMRadio](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/0/b01895a8ab4ff4661a90590ccf34caab597ed13e.jpeg)  
 ![node-red_MPD](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4c8afe34908f26ad43414f0a833fa3af76a022f5.jpeg)

I was looking for an example here where buttos change color without changing the output. None of them I understood for my application.  
It would be nice if someone could help me.

---

<div class="post-metadata">

### Author: ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)
#### Post date: [6 May 2021 06:43 UTC](https://discourse.nodered.org/t/how-can-i-change-the-color-of-a-button-without-changing-the-output/45225/2 "2021-05-06T06:43:30Z")

</div>

I don't know if you have [seen this topic](https://discourse.nodered.org/t/examples-of-colour-change-button-and-switch/3650), but it would seem to provide a good starting point for your problem.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [6 May 2021 06:58 UTC](https://discourse.nodered.org/t/how-can-i-change-the-color-of-a-button-without-changing-the-output/45225/3 "2021-05-06T06:58:09Z")

</div>

> [@tmollow](#):
>
> I was looking for an example here where buttos change color without changing the output

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/4/34c9cd485039d80b157c40fc902c8f8b580ab6e8.png)

If you have older dashboard, this may be labelled differently (like pass through msg)

---

<div class="post-metadata">

### Author: ![tmollow](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@tmollow](https://discourse.nodered.org/u/tmollow)
#### Post date: [6 May 2021 13:40 UTC](https://discourse.nodered.org/t/how-can-i-change-the-color-of-a-button-without-changing-the-output/45225/4 "2021-05-06T13:40:44Z")

</div>

Only in station 1 I find:  
 ![node-red-click](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/2/22722e9c81c7fbcacc590449a1444abec65e9b55.jpeg)

after removal my little internet radio runs perfectly.  
Thanks for the help  
Thomas

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [20 May 2021 13:40 UTC](https://discourse.nodered.org/t/how-can-i-change-the-color-of-a-button-without-changing-the-output/45225/5 "2021-05-20T13:40:57Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
