first, i am new to Node Red and therefore not an expert in this field.
I am currently trying to get a "Sensor Health" Segment for my Dashboard.
I am using the different Sensor-Values to display the health of the Sensor. For example the battery-life and signal strength.
My problem is in the Signal Strenght value (rssi). Because the rssi-Value is stored as an object in the msg.payload.rssi i cannot build an if-function which compares it to another int/float value.
For the battery health it is no problem because msg.payload.decoded.vdd returns me an integer value.
Is there a solution to get an integer value for the stored msg.payload.rssi ?
For information:When i am using the artless gauges it is no problem to show the rssi value simply by passing the object to the gauge.
But when i want a custom LED to show either red, green or orange for different rssi values it is not possible because as i said above, it comes as an object and not as a string.
If you need any more information, i can deliver
Sorry for the english, i am from germany.
Cheers and thanks a lot