Change Function

Hi, hoping for some guidance
i have a chart in which i have made some change fuctions
EG. if the value is 0 it Offline for the battery voltage
can i set another change value that if the voltage is more than 3 volts its online.
i have 27 meters and they all range from 3.1 to 3.66 volts, can i just set the change to anything more than 3 volts is considered online?


image

To do it that way, you will likely need to use a JSONata function.

This is a generic method of converting >+3V to Online

[{"id":"5f3702f5.b4473c","type":"inject","z":"2f1fd98b.bb0256","name":"","topic":"","payload":"3.19","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":276,"y":176,"wires":[["2b336585.bbc3ba"]]},{"id":"298c8fc6.6a996","type":"inject","z":"2f1fd98b.bb0256","name":"","topic":"","payload":"2.9","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":264,"wires":[["2b336585.bbc3ba"]]},{"id":"2b336585.bbc3ba","type":"switch","z":"2f1fd98b.bb0256","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"3","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":220,"wires":[["1bbf8008.d43bd"],["668f44f2.77ab3c"]]},{"id":"1bbf8008.d43bd","type":"change","z":"2f1fd98b.bb0256","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Online","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":674,"y":176,"wires":[["668f44f2.77ab3c"]]},{"id":"668f44f2.77ab3c","type":"debug","z":"2f1fd98b.bb0256","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":884,"y":220,"wires":[]}]