Skip to content

Comments

Battery Sensor fix#352

Open
MixamTheGreat wants to merge 1 commit intodamacus:mainfrom
MixamTheGreat:main
Open

Battery Sensor fix#352
MixamTheGreat wants to merge 1 commit intodamacus:mainfrom
MixamTheGreat:main

Conversation

@MixamTheGreat
Copy link

@MixamTheGreat MixamTheGreat commented Feb 19, 2026

The battery sensor was hardcoded to the default DPS code (104) which doesn't work for models using non-default codes. For example, the T2267 (Eufy L60 SES) uses code 163, causing battery to always show as unavailable.

This fixes #347

  • Query getDpsCodes() to get the correct DPS code per model
  • Add null checks to handle startup before connection established
  • Improve debug logging to show which codes are being used
  • Start sensor unavailable until data arrives from vacuum

Disclaimer: vibe coded with Claude Haiku 4.5 - including this description. Tested with my own Eufy L60 SES. No clue if this PR makes any sense for you but it works for me.

The battery sensor was hardcoded to the default DPS code (104) which
doesn't work for models using non-default codes. For example, the T2267
(Eufy L60 SES) uses code 163, causing battery to always show as unavailable.

- Query getDpsCodes() to get the correct DPS code per model
- Add null checks to handle startup before connection established
- Improve debug logging to show which codes are being used
- Start sensor unavailable until data arrives from vacuum
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.

["BUG"] Eufy L60 SES unknown battery percentage

1 participant