Number PressureSensor “Pressure (MySensors) [%s mmHg]” {mysensors=“10;0;V_PRESSURE”}
I’ve created hpa2mmhg.js but cannot guess what will the the right syntax in my .items file - adding :JS(hpa2mmhg.js) brings only errors. Please advise!
The mysensors binding would have to support performing transforms of the remote data. The documentation for the binding ought to show the syntax and how to configure transforms if it’s supported in the binding.
Otherwise, you might have to use a proxy item and a rule to do the math on the incoming value.