Hold a status constant for status

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.

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.


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.


Thanks for that. Perfect.