-
Notifications
You must be signed in to change notification settings - Fork 14
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
Track power/energy usage, add config flow and more sensors #8
Conversation
I just ordered one eb 500, and i am going to use this component, i appreciate existing efforts but think this PR would be really good to merge to. Tracking the energy usage is very interesting for me as i will be building alot of automations around this :) |
I already have two EB500 wifi and planning for more, and are using those already in HA. I also wish for the energy tracking, would be super nice. |
Sorry for the late response guys. I do not have the time to test this now, but I have done the merge, so please test it out and post your results |
Stupid question maybe, I am just a HA user but want to test it. How do I test it in my HA installation? :-) |
I've done a new release now, so you should see it as an update in HACS in a bit. |
It did not work, so I deleted the release. The whole ebeco entity disappeared. Have not found anything in the logs yet. Maybe the config flow was a breaking change |
when manually testing it i get the error |
found it. I'll change it to a relative path |
new release published to HACS. Please try it out @bhr74 |
If you are using HACS or have used custom components before, you should have a custom_components directory in home assistant. You can just copy the ebeco directory with all its contents to that location and restart home assistant and you should be able to see and add the ebeco integration from the integrations page in home assistant |
Have you Added Ebeco from the integrations page and entered info in the
setup wizard.
To be clear. You add the Ebeco plugin from hacs but when that is done you
have to go to home assistants integrations page to add a new integration
where you search for Ebeco
lör 29 jan. 2022 kl. 17:15 skrev bhr74 ***@***.***>:
Tried to install it the update now and both termostats became unavailable,
also tried to uninstall and a new install but both still unavailable.
Something I missed? :-)
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACLJXP3DOYGJTQJ6NZULN3UYQHA3ANCNFSM5J4EHGYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
/Jörgen Bergström
|
Hi, done some testing now and it looks like the EB500 dont want to update changes done from HA to thermostat/APP but changes in app updates HA after some minutes. The power sensor seems to just read the installed effect it dosen reflect if the heat is on or off. The energy sensor works as expected. :-) |
Yes, sorted it minutes after I posted, so I deleted the post. Sorry :-) |
Same here regarding changing the temperature from HA. It just gets overwritten by the termostats set value some seconds later and same for me regarding the effect. |
Hm, that's weird. After that I've left it running on a schedule I set up in the regular Ebeco app, so hadn't noticed that the integration changes gets reset. But I can reproduce the issue, so I'll have a look. I created #10 for the thermostat issue and will try and get some time tomorrow. The power is just reading the installed effect, and was mostly for information. But since the API also exposes the current state of the relay, I'll change that in #9 to be a bit more dynamic. Thanks for merging and helping to fix my mistakes @joggs. Guess my coding skills weren't entirely to be trusted :) |
That was quick! Great job! 0.6.2 published |
Very nice! Works great for me, many thank's. |
Every thing seems to be working here to, great work . Thanks a lot. Maybe wrong place to ask but my two EB500 randomly lose the connection to the app, they are connected to the wifi but still no contact with the ebeco app. Happens 4-6 times each day. Anyone else that have this problem. Just to be clear this it nothing to do with this addon :-) I tried support they said this is happening because to a change in the framework from the wificard vendor. But if this the case more customer should have the problem, could it be too many api request? |
Glad to hear it 👍 @bhr74: I haven't had any WiFi issues that I've noticed. It runs on the 2.4GHz network, so Zigbee-devices around the house can cause conflicts if they aren't set up with correct channels. Those tend to cause issues with the Zigbee-devices, not WiFi in my experience, but who knows.. maybe if combined with a weak WiFi-signal. If it was happening before you installed the add-on, it shouldn't be too many requests. I don't know how often the EB500 communicates home, but any rate limits should be set way higher than what a normal device or two can manage during normal operation. The add-on has a configuration setting in
So max 30 requests per minute. This add-on should do one request per minute per device in regular operation, plus one request each time you change the target temperature or anything like that. If you have an automation that runs, that might cause you to go over. Depending on your network setup, you might be able to see the traffic to ebecoconnect.com and see how much/many requests are sent, and from where. I don't think we do any good handling of rate limits in the add-on, so if that turns out to be the problem, a solution might be to look into adding some handling and retries with back-off. |
Hi testing little bit more and its looks like the energy usage sensor will not appear in the energy dashboard, and the value is reset every night, I think this value should be accumulated. Is there something with the integration or can I config the sensor somewhere else? |
To my understanding, this is still not natively supported by ebeco, which is the reason it hasn't been added as a feature by me, but did you find a way to handle this @PerfectlyNormal ? |
It will not be automatically added, but you can add it under Configuration -> Energy -> Individual devices. My sensor is called If that's not good enough, or you want the accumulated values available elsewhere, you can look into the Utility Meter integration. I haven't personally done that yet, but it's on my list of things to do. That will be local to your installation, nothing this integration can provide, from what I can understand. I guess the readme should probably be updated with some more instructions/details, since none of this is terribly easy when getting started. Some extra details: As a sidenote to the sidenote, the API from Ebeco has some endpoints for fetching energy usage, but from what I can see they're updated once a day, so you can't get the usage for today, only up to yesterday, and there was some other limitations preventing it from being terribly useful. I guess the Ebeco-app uses the same approach we do for showing the usage for today. |
Began as an attempt to track the power/energy usage, but got a bit carried away. I understand completely if this is impossible or unwanted to merge, but thought I might share my attempts. Maybe parts could be adapted. Been running it for few days at home, both in development and my real installation without any issues I could see.
I only have a single Ebeco device installed, so the multi-device support is only theoretical and might not work well at all.
Currently only compatible with HomeAssistant 2021.12.0
This is my first attempt at writing any Python, and anything for HomeAssistant, so there's probably tons of things that could be better. Feel free to suggest and/or edit anything.