Skip to content

Update client.py#31

Open
CeKl wants to merge 1 commit intoh4:masterfrom
CeKl:improve-battery-reading
Open

Update client.py#31
CeKl wants to merge 1 commit intoh4:masterfrom
CeKl:improve-battery-reading

Conversation

@CeKl
Copy link
Copy Markdown

@CeKl CeKl commented Apr 17, 2021

Optimized reading of the battery status.

Read the current voltage and calculate the battery level between 0 and 100%.
Output directly via SensorData or self.data possible. Tested with LYWSD03MMC and lywsd02 sensors.

Optimized reading of the battery status.

Read the current voltage and calculate the battery level between 0 and 100%.
Output directly via SensorData or self.data possible.  Tested with LYWSD03MMC and lywsd02 sensors.
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