Skip to content

fix: add discovered fields to J235 config#17

Open
srleach wants to merge 2 commits intomainfrom
fix/add-discovered-fields
Open

fix: add discovered fields to J235 config#17
srleach wants to merge 2 commits intomainfrom
fix/add-discovered-fields

Conversation

@srleach
Copy link
Copy Markdown
Owner

@srleach srleach commented Apr 9, 2026

Summary

Add fields discovered from debug data analysis to the J235 config:

Added Fields

  • pump_status: Combined pump state (offset 10) with output_map:
    • 0 = off
    • 64 = circulation
    • 128 = pump1
    • 192 = both
  • time_minutes: Minutes from spa clock (offset 11)
  • time_hour: Hour from spa clock (offset 14)

Removed

  • Incorrect pump configs using offset/shift/mask (they were pointing to wrong bytes)
  • Unused xor: 0x02 (protocol layer handles XOR decoding)

Verification

Analysis of debug_messages_old.csv confirmed:

  • Byte 5 = current temp (raw * 0.5 = °C)
  • Byte 8 = setpoint temp (raw * 0.5 = °C)
  • Byte 10 = pump state bitmask
  • Byte 11 = minutes (0-59)
  • Byte 14 = hour (0-23)

srleach added 2 commits April 9, 2026 23:32
- Phase 1: Standardize YAML config (binary_sensor: True -> type: binary_sensor)
- Phase 2: Add protocol abstraction (Protocol, PlaintextProtocol, JacuzziEncryptedProtocol)
- Phase 3: Refactor base classes (MessageFactory rename, protocol injection in Spa)
- Phase 4: Add tests and docs (17 tests, ARCHITECTURE.md)

The protocol layer now cleanly separates decoding logic from packet parsing,
making it easy to add new spa types without duplicating infrastructure.
- Add pump_status with output_map (0=off, 64=circulation, 128=pump1, 192=both)
- Add time_minutes (offset 11)
- Add time_hour (offset 14)
- Remove incorrect offset/shift/mask configs for pumps
- Remove unused xor: 0x02 (already handled by protocol layer)
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