# Hold a status constant for status

**URL:** https://discourse.nodered.org/t/hold-a-status-constant-for-status/12112
**Category:** General
**Created:** [12 June 2019 12:04 UTC](https://discourse.nodered.org/t/hold-a-status-constant-for-status/12112 "2019-06-12T12:04:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lozzer65](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@lozzer65](https://discourse.nodered.org/u/lozzer65)
#### Post date: [12 June 2019 12:04 UTC](https://discourse.nodered.org/t/hold-a-status-constant-for-status/12112/1 "2019-06-12T12:04:12Z")

</div>

I am trying to show the status of a button using grafana via Influxdb using the discrete plugin.

I use the background to set the colour of the button from other nodes.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/ed9cc4cb431836fb12da74d7d890b67525335462.png)

The problem I have is sending a constant value to influxdb, for the status to hold in grafana.

So if the button is green for example send 1's to the database, and if red send 0's.

Any ideas how to achieve this.

Thanks  
Laurie

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 June 2019 12:59 UTC](https://discourse.nodered.org/t/hold-a-status-constant-for-status/12112/2 "2019-06-12T12:59:34Z")

</div>

Do you mean you want to regularly send the value even though it has not changed? If so then you can use node-red-contrib-msg-resend.

---

<div class="post-metadata">

### Author: ![lozzer65](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@lozzer65](https://discourse.nodered.org/u/lozzer65)
#### Post date: [12 June 2019 13:31 UTC](https://discourse.nodered.org/t/hold-a-status-constant-for-status/12112/3 "2019-06-12T13:31:13Z")

</div>

Colin

Thanks for that. Perfect.

Regards  
Laurie
