Closed timmathews closed 6 years ago
@timmathews how does this affect the multi-phase stuff? That's unchanged, if I read this correctly?
Unfortunately a lot of the sections in electrical including those changed here have non compliant meta properties (eg. warnUpper etc.) Since the changes proposed here are breaking but do not fix the meta issues I'm not sure it's worth committing and forcing a new version.
Also when the time comes we could do with some passing and failing tests for this.
@bkp7 agreed, good points. @timmathews I'll mark it WIP.
@timmathews @fabdrol I would suggest this be moved to the schema cleanup branch where I anticipate fixing the meta issues in electrical v soon. We can then add these changes too.
@timmathews I'm closing this for lack of activity. Please re-submit when you have more time!
This PR comes out of the discussion at https://github.com/SignalK/n2k-signalk/issues/16.
Three-phase systems need a way to represent average values and it doesn't make much sense to nest single phase systems values all the way under
electrical.ac.<device>.phases.single.*
.In split and poly-phase electrical systems, it is common to monitor the average voltage and current for all phases of the circuit. Typical monitoring equipment will provide these values as separate from the per-phase values.
This removes the
single
key underphases
and addsaqQualities
fields at the same level asphases
under individual AC monitoring devices in the schema.The following new paths are added:
and these are removed: