Repository navigation
Conversation
The console broadcasts 0x2B every 30 s or so. It wasn't in the protocol document, so every one logged an "Unknown status message type" warning. Parse it as six 4-byte sensor records (id, undecoded byte, temperature) and keep the latest readings in At2PlusClient.sensors_by_id, with add_sensor_callback for updates. Temperatures use the same encoding as AC status; 0x07FF (no reading) becomes None. 0x90 and 0x91 are consoles 1 and 2. 0x80-0x83 look like zone sensors but no capture from a system with them fitted has confirmed that. No ack is sent. Refs nathanvdh#21 Aided by Claude
Owner
|
Hey thanks for this. I'm about to be away for a few weeks so I probably won't look into this until after I'm back. My understanding is that the outcome of implementing this will be the ability to choose a different (more useful for you?) temperature sensor to show in HA? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handles the 0x2B sensor status message, as discussed in #21. Small scope: parse it, keep the readings, stop the warning.
What it does
SENSOR_STATUS = 0x2BtoControlStatusSubType.SensorStatusMessage: six 4-byte records of sensor id, an undecoded byte, and a temperature.temperature_from_value). 0x07FF (no reading) comes out asNone.At2PlusClient.sensors_by_idholds the latest reading per sensor id.add_sensor_callbackfires on each update, following the same pattern as the AC and group callbacks.Sensor ids
Tests
Parsing is tested against real captures from two systems: mine, and kieranlee1970's from #21 (which reads 22.5 °C, matching what he reported). There are also client tests for storing readings and for the callback. All 39 tests pass.
The decode matches kieranlee1970's (#21) and mattjamesaus's work on his fork.
Aided by Claude