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

Alternative ip5306 battery level handling #49

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

MichaKersloot
Copy link

for issue #45 this would be the proposed changes and some HA integration optimizations for just the ip5306 custom component.

@@ -40,8 +40,7 @@ void IP5306::loop() {
case 0x80: value = 75; break;
case 0x00: value = 100; break;
}
if (!this->battery_level_->has_state() || (this->battery_level_->state != value))
this->battery_level_->publish_state(value);
this->battery_level_->publish_state(value);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be indented a little bit more?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Fixed it in my fork, but not sure how to 'republish' this in this pull request.

@landonr
Copy link

landonr commented Feb 12, 2023

👍

@landonr
Copy link

landonr commented Sep 17, 2023

the esp32 camera stuff should be in a different branch

@MichaKersloot
Copy link
Author

I'm afraid i've got no idea how to split branches AND keep the stuff working for me. Git is not my thing i'm afraid.

@landonr
Copy link

landonr commented Sep 18, 2023

you can make a branch off of this branch (to hold onto esp32 cam stuff), and then just delete the esp32 cam folder from this branch.

or you could cherry pick the esp32 cam commits onto a new branch, and then checkout commit 49788b3 (i think thats the last ip5306 one) and force push that

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.

3 participants