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

Accessory to trigger automations based on battery level #47

Open
langabi opened this issue Nov 1, 2022 · 2 comments
Open

Accessory to trigger automations based on battery level #47

langabi opened this issue Nov 1, 2022 · 2 comments

Comments

@langabi
Copy link

langabi commented Nov 1, 2022

Posting as issue in case I'm missing something obvious here.

I'm trying to trigger automations based on Powerwall battery level, e.g., when battery over 95% full, turn on pool heating so as not to waste excess power.

However, I'm struggling to do this with any of the current accessories:

  • the "Battery" accessory shows in homebridge, but is listed as "unsupported" in Home app, and doesn't show in Eve as an accessory with current charge level (not sure why)
  • the "Lightbulb" accessory (where brightness is the current battery level) does show up, but the Home app doesn't allow automations based on this, and the Eve app can only do automations where the power (charge) "equals" something, not "equal or greater"
  • "Battery History" weather service accessory shows well in Eve, and the temperature characteristic works great, except: seems that Eve doesn't allow conditions on temperature for temperature great than 85degC. So I can't create rules for >=93%, only >=85%. And the hue characteristic doesn't allow "greater or equal", only equal.

So my next steps are:

  • modified the Lightbulb accessory to have saturation also set by battery charge level, and I've created Eve triggers using this, but so far they're not triggering, not sure why
  • considering creating another "Battery History" weather service accessory, where I divide power by 2 to set temperature (ie. 50degC would be 100% charge)

Before I do that ... is there anything obvious I'm missing? Thanks!

@datMaffin
Copy link
Owner

That the battery display is not supported does sound weird to me.
In the past the battery percentage was bundled in with the switch that displays whether the Powerwall is working.

I might look into this in the near future, as having logic depending on the battery state seems like an obvious thing that should be possible.

@langabi
Copy link
Author

langabi commented Nov 1, 2022

Ok great, yes that would be good! I see that on my home app, a battery accessory, but it says "This accessory is not currently supported by the Home app." - so yes, does indeed sound like there's an issue. I'll see if I can work out anything.

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

No branches or pull requests

2 participants