Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat poll profalux remote battery #8877

Merged
merged 6 commits into from
Feb 24, 2025
Merged

Conversation

ghoz
Copy link
Contributor

@ghoz ghoz commented Feb 23, 2025

Profalux remotes do not report battery state, they do however support reading voltage.
As the remote is otherwise chatty (lots of OTA requests amongs others) , polls the battery at most once a day, when receiving a message .

Tested on the wallmounted version, the portable remotes should work too as it is the same electronic in a different case

Note : the % is estimated based on voltage, the remote stops working at 2.25v, but reports a min voltage of 2.0v
'genPowerCfg': {"batteryVoltThres1":22,"batteryVoltThres2":25,"batteryVoltMinThres":20,"batteryVoltage":29}

Slight problems :

  • can't get the power source to appear as a battery in the UI, it is still a question mark
  • using the modernExtend for the battery, both voltage and calculated % allow get, not sure if it makes sense, and how to override the access to STATE only

ghoz added 2 commits February 23, 2025 20:58
as they are quite chatty (OTA requests, poll CTRL),
read the battery voltage once in a while

for translating to percent the remote reports the following thresholds
`` 'genPowerCfg': {"batteryVoltThres1":22,"batteryVoltThres2":25,"batteryVoltMinThres":20,"batteryVoltage":29}``
in practice at 2.2v it stops working.
@Koenkk
Copy link
Owner

Koenkk commented Feb 23, 2025

Profalux remotes do not report battery state, they do however support reading voltage.

Does the voltage reporting also not work?

@ghoz
Copy link
Contributor Author

ghoz commented Feb 23, 2025

No reporting of voltage...
Just checked , it fails

@ghoz
Copy link
Contributor Author

ghoz commented Feb 23, 2025

Is there anything else to do for the power source to show as battery in the UI ?
I expected the forcePowerSource to do that...

@Koenkk Koenkk merged commit 86e7d12 into Koenkk:master Feb 24, 2025
3 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Feb 24, 2025

Thanks!

@ghoz ghoz deleted the feat-profalux-battery branch February 25, 2025 07:36
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.

2 participants