CharlesGillanders / alphaess

This Python library logs in to www.alphaess.com and retrieves data on your Alpha ESS inverter, photovoltaic panels, and battery if you have one.
MIT License
22 stars 9 forks source link

Library broken because api new signature was added by update #9

Closed bnc-rainman closed 1 year ago

bnc-rainman commented 1 year ago

2022-10-16 AlphaCloud V5.0.0.2 New Signature verification and anti-crawl data functionality are added in all APIs of AlphaCloud.

---- New Request headers--- authsignature: al8e4s2c6c8e91af3e3......... authtimestamp: 1665929281

ElevenFan commented 1 year ago

I am the developer of the AlphaCloud platform, and we plan to develop a version of Api for customers to use. I've been watching you for a long time.

dehsgr commented 1 year ago

@ElevenFan that sounds really, really good. We (the whole community) would really appreciate it!

bnc-rainman commented 1 year ago

I am the developer of the AlphaCloud platform, and we plan to develop a version of Api for customers to use. I've been watching you for a long time.

Welcome to our little discussion group. We already thought that this repository is being watched (see SorX14's post above). I hope for an open constructive work by your appearance here, in which the technically best solution is reached to the satisfaction of both parties.

Thank you already for the announcement of a customer API. This is very good news. You will enable your customers to behave in an environmentally conscious manner in a simple and uncomplicated way by means of solutions such as those shown in the attached photo.

(@All: Off topic again. Shame on me. But I would be interested in your solutions)

Display

ElevenFan commented 1 year ago

I need to know what APIs you are using?

SorX14 commented 1 year ago

@bnc-rainman I'm interested in peoples setups. Here is one mine during development: image

Doesn't yet have a nice 3D printed case like yours.

@ElevenFan For me I'm using ESS/GetLastPowerDataBySN called every 10 seconds to fill up a local database with energy statistics, then one or more of the above displays shows usage.

That is all I need - live stats and battery level.

I'd expect others with a battery would want a method to set charging behavour - force discharge, force recharge etc - but I'll let them speak for themselves.

dehsgr commented 1 year ago

I think all APIs for fetching (live and historical) data would be a got first shot. Afterwards we should talk about APIs for getting/setting options. ;-)

ElevenFan commented 1 year ago

GetLastPowerDataBySN this Api can be opened,The data of PowerData is very large, and the save time will not be very long。

petekelly commented 1 year ago

I make a call every 5 minutes during daylight hours to check the battery level and current charging rate - This is purely so I can decide to turn on or turn off the car chargers to stop any export to the grid while maintaining as much charge as possible in the battery itself to run the house.

On 14 Nov 2022 at 08:39:53, dehsgr @.***> wrote:

I think all APIs for fetching (live and historical) data would be a got first shot. Afterwards we should talk about APIs for getting/setting options. ;-)

— Reply to this email directly, view it on GitHub https://github.com/CharlesGillanders/alphaess/issues/9#issuecomment-1313287786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI7STJAMJUH5KGH2IRIGSLWIH3FTANCNFSM6AAAAAARGLWJ7Y . You are receiving this because you commented.Message ID: @.***>

ElevenFan commented 1 year ago

GetCustomMenuESSlist and SticsSummeryDataForCustomer are you use?Other this week's update will not update the key。

SorX14 commented 1 year ago

@ElevenFan Thank you for involving the community (and thanks to CharlesGillanders for allowing it to grow in this issue)

If it helps here is the list of possible calls this project will make along with an explanation of what they're used for. This is just a summary of code comments.

Authentication

Get a list of available devices on account

Get live power details

Get daily averages

Get system statistics

Get settings by serial number

Get system ID from serial

Set battery charge/discharge

CharlesGillanders commented 1 year ago

@ElevenFan thats very good to hear. It would be great to know that customers can fairly work with their own data from their own systems.

@SorX14 also thanks for pulling the various calls out of the source.

crowdstrike-steve commented 1 year ago

I use DataDog to push metrics for yearly cost/ usage analysis. image

coupled with forecasting data to predict how much to charge the battery at night rate image

without this - the benefit of solar is missed

matt-oneill commented 1 year ago

It's great to see how everyone's using the data for automations & displays. @ElevenFan thanks for joining the discussion, a public API would be amazing, please keep us updated!

ElevenFan commented 1 year ago

Hi All,This is our github address,https://github.com/alphaess-developer/alphacloud_open_api If you have any ideas, you can give us suggestions,including procedural questions。It is still under construction, everyone is welcome to join, and more functions will be opened in the future。

SorX14 commented 1 year ago

Awesome that we'll have an official API soon but if you're looking for ModBus instead, I've created a repo here: https://github.com/SorX14/alphaess_modbus.

I'm not the best Python developer, and its not a pip package yet, but should be good enough to get started.