Skip to content

Codex/regulatory event normalization#40

Merged
samudzi merged 2 commits into
mainfrom
codex/regulatory-event-normalization
May 1, 2026
Merged

Codex/regulatory event normalization#40
samudzi merged 2 commits into
mainfrom
codex/regulatory-event-normalization

Conversation

@samudzi
Copy link
Copy Markdown
Member

@samudzi samudzi commented May 1, 2026

Summary

  • What changed:
  • Why:

Change Class

  • routine
  • normative
  • breaking
  • security

Validation

  • PYTHONPATH=src/python python3 -m unittest discover -s src/python/tests -v
  • PYTHONPATH=src/python python3 tools/transform_harness.py --mode fixture

Compatibility

  • No breaking behavior
  • Breaking behavior (migration notes included)
  • Deprecation notice included (if applicable)

Documentation

  • README/docs updated
  • Changelog updated (if release-facing)

samudzi added 2 commits May 1, 2026 09:57
- Add comprehensive YAML transform specification for Sungrow iSolarCloud API
- Include OAuth 2.0 authentication configuration
- Document 5 API endpoints (plant_list, plant_realtime, device_list, device_telemetry, historical_data)
- Define output mappings to ODS-E format for all endpoints
- Add device and plant status code mappings (16 device + 6 plant codes)
- Include calculation functions for power factor, unit conversions, and aggregations
- Define physical bounds and temporal validation rules
- Document API rate limits and usage notes
- Follow CC-BY-SA 4.0 license
- Add SungrowTransformer class to handle iSolarCloud API JSON payloads
- Support plant_realtime, device_telemetry, and historical_data endpoints
- Map device status codes (16 codes) and plant status codes (6 codes) to ODS-E error types
- Handle 3-phase AC electrical parameters with averaging/summing
- Handle multi-string DC parameters with max voltage and summed current
- Calculate power factor from active/apparent power when not directly available
- Register transformer with 'sungrow' and 'isolarcloud' source identifiers
- Follow established pattern of existing API transformers (SolarEdge, Fronius, SMA)
@samudzi samudzi merged commit cb590eb into main May 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant