sunspec/models

303 TmpBOM Scalefactor: -1

Opened this issue · 3 comments

andig commented

Seems this should be a string value? What does a fixed integer scale factor mean? Are the JSON models passing JSON schema validation?

andig commented

Seems they don‘t: #62

andig commented

Same with models 304 and 63001.

According to the schema ( https://github.com/sunspec/models/blob/master/json/schema.json#L104 ) it is either the name of a point that contains the scale factor value OR it is a hardcoded value in the schema.

I wrote some code to verify this all ( #243 ) and this all passes.