I'm working on a new MySensor plugin for HG but I'm running into a small problem with the Generic Widgets not displaying values
In older versions of HG, the Generic Widget displayed alle values beginning with 'Status.' 'Sensor.' etc. but in newer versions of HG, displaying a value is defined by the following code:
var ctx = $$.ui.GetParameterContext($$.module, parameter.Name, parameter.Value);
if (!ctx.isUnknown)
I've adapted it to the following for testing:
var ctx = $$.ui.GetParameterContext($$.module, parameter.Name, parameter.Value);
if (!ctx.isUnknown) | parameter.Name.indexOf("Sensor.") >= 0 | parameter.Name.indexOf("Meter.") >= 0 | parameter.Name.indexOf("Status.") >= 0){{
but is there a better way for value types to be 'known' to HG? Or am I better off creating a new custom widget for MySensors?