joggs / home_assistant_ebeco

Integration for Ebeco thermostats
29 stars 14 forks source link

Energy monitor #6

Closed jonaslorander closed 3 years ago

jonaslorander commented 3 years ago

With the new energy dashboard in Home Assistant it would be useful to expose the totalConsumption property from the endpoint /api/services/app/Devices/GetUserDeviceEnergyData

This way the energy consumption of the floor heater could be analysed in Home Assistant.

joggs commented 3 years ago

Hi Jonas, I am not 100% updated in what formats the new energy dashboard can handle energy data. The Ebeco total consumption endpoint requires a from- and to date as input parameters to get the energy consumption for that date span, so I don't think you can poll the api for the current consumption, which I suppose is the required form of input data for the new energy management function in home assistant? Or is it possible to import the total consumption for yesterday? If so, I suppose I could create a property called something like totalconsumptionyesterday

On Fri, Aug 6, 2021 at 5:26 PM Jonas Lorander @.***> wrote:

With the new energy dashboard in Home Assistant it would be useful to expose the totalConsumption property from the endpoint /api/services/app/Devices/GetUserDeviceEnergyData

This way the energy consumption of the floor heater could be analysed in Home Assistant.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joggs/home_assistant_ebeco/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLJXNZKMAVBE7Y4INXPTLT3P5LZANCNFSM5BWDSMLQ . 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&utm_campaign=notification-email .

--

/Jörgen Bergström

jonaslorander commented 3 years ago

Hi,I can look into it a bit more. Perhaps I can make a PR myself. Hälsningar JonasHämta Outlook för Android

joggs commented 3 years ago

Toppen! Please get back to me if you get any good ideas how to implement it. I'll have a look as well when I get the time.

Den fre 6 aug. 2021 19:25Jonas Lorander @.***> skrev:

Hi,I can look into it a bit more. Perhaps I can make a PR myself. Hälsningar JonasHämta Outlook för Android

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/joggs/home_assistant_ebeco/issues/6#issuecomment-894405829, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLJXONWOU72DRNZN2OQ3DT3QLG5ANCNFSM5BWDSMLQ . 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&utm_campaign=notification-email .

TurboJonte commented 3 years ago

I've looked at the API and it seems like it's not possible to get energy data for the current day, only previous days and the highest resolution is 24 hours for a maximum of 90 days.

jonaslorander commented 3 years ago

I just looked at it too and it doesn't look very useful as it is now. I wasn't even able to get the usage for yesterday. The newest data I could get was for two days ago. Too bad, it would have been a nice addition to get an overview of what consumes energy!

TurboJonte commented 3 years ago

I think it could be possible to make something using the attribute "todays_on_minutes". To bad it's not possible to get the configured power rating, so it will require some additional steps in HA.