This repository was archived by the owner on Nov 19, 2026. It is now read-only.
Repository navigation
Fix LIFAair LM05 readings found on the device - #1
Merged
Merged
Conversation
Placeholder temperature and humidity zeros now return None, including the first poll after the purifier reconnects. On this device, error -5 is no longer reported as a full storage. Fan mode and speed stay as reported. CO2 400 after boot is unchanged: no other byte marks that warm-up. Co-authored-by: Piotr Paczyński <pit3k@users.noreply.github.com>
One sighting during power-cycling and pairing is not enough to call -5 pairing mode. Drop the device-specific mapping and its tests. A short comment records that the cause is unknown. Co-authored-by: Piotr Paczyński <pit3k@users.noreply.github.com>
AUTO at speed 0 and OFF at speed 50 are reported values. Drop standby and any claim about whether the fan was physically spinning. Co-authored-by: Piotr Paczyński <pit3k@users.noreply.github.com>
set_fan_mode and set_fan_speed send one argument and return the decoded SET response. MANUAL has no mode command. Reads expose purifier_online from bit 7 of the fan-state byte and ignore bit 0 when naming the mode. Co-authored-by: Piotr Paczyński <pit3k@users.noreply.github.com>
The station accepts a speed and returns the offline state, and it rejects a mode with error -5. Neither change is applied after reconnect. Co-authored-by: Piotr Paczyński <pit3k@users.noreply.github.com>
5 tasks done
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Context
Physical test of 9d46625 on an LM05 (fw 10026) on 2026-11-17. 9d46625 is unchanged.
The library turns device bytes into real state. Placeholder zeros are not forwarded as readings. Setters send one encoded argument and return the decoded response. No read-before-write, retries, or extra heuristics.
Proposed change
00 00 00returnNone, including the first poll after the purifier reconnects (fan state already online, 4 of 4 cases).purifier_onlineis bit 7 of fan-state byte 55. When it is false (observed0x01), fan mode, fan speed, temperature and humidity areNone. The offline speed byte is 0, a placeholder. Station readings stay decoded.0x80/0x84/0xA4decode as OFF/MANUAL/AUTO. It is not exposed.set_fan_modesends oneSET_FAN_MODEargument (OFF 1, AUTO 2, NIGHT 6, TURBO 7, ANTI_ALLERGY 11) and returns that response. MANUAL and UNKNOWN raiseValueErrorand send nothing. There is no MANUAL opcode; useset_fan_speed.set_fan_speedsends oneSET_FAN_SPEEDargument, 0..121, and returns that response. Values that cannot be encoded raiseValueError.get_statedocstring matches those return values.Type of change
Additional information
master.Observed on fw 10026, documented on the setters, not enforced by extra packets:
set_fan_speed, including speed 0. In OFF the speed is applied and the fan spins, but the device keeps reporting OFF.StorageError) and nothing changes. AUTO from OFF reports speed 30 and may drop to 0 a few seconds later. NIGHT starts at 10, TURBO at 121, ANTI_ALLERGY at 60.0x01),set_fan_speedsucceeds and returnspurifier_onlineFalse. The speed is not applied, neither then nor after the unit reconnects.set_fan_modeis rejected with device error -5 (StorageError). The mode is not applied after the unit reconnects either.Left unchanged, with the reason:
StorageError("The device storage is full"). It is also what the device returns for a rejected mode. No LM05-specific remap.u16 / 100. Always 0.00 on this unit; another user verified the scale. Zero stays 0.0, notNone.None.Checklist