smartenergycontrol-be / home-assistant-smappee-charging-profiles

GNU General Public License v3.0
4 stars 1 forks source link

Not working? #4

Open driesvandamme opened 2 days ago

driesvandamme commented 2 days ago

I'm trying to execute the service through the helper in HomeAssistant

However, I get an error.. Not sure if I'm doing something wrong?

--> Actie smappee_charging_profiles.set_charging_mode kon niet worden uitgevoerd. Unknown error

scruysberghs commented 2 days ago

are you sure you used the correct serial number in the action call? Should be a 10 digit number that starts with a 6. You can find it in the smappee app or trough the "Get metering configuration" api call https://smappee.atlassian.net/wiki/spaces/DEVAPI/pages/916422661/Get+metering+configuration

lieven121 commented 1 day ago

I get an error too but seems (for me) to be related to the refresh token, as when i setup the integration it works for a while but then stops working

driesvandamme commented 1 day ago

My bad! Was using wrong serial number :)

Could you update the docs to see which modes are available?

lieven121 commented 1 day ago

image here util docs have it :)

driesvandamme commented 1 day ago

In the app there is also the option to switch to "Injection-based charging" (if you have solar panels) Is there an option to switch back to that?

I'd like to make Smappee charge automatically when there is enough solar energy predicted (before Home battery is full)

Would be ideal if I could make it switch between NORMAL/INJECTION based charging like this :-)

scruysberghs commented 1 day ago

I get an error too but seems (for me) to be related to the refresh token, as when i setup the integration it works for a while but then stops working

a fix for that was comiitted a couple af days ago but haven't had the chance to test myself. Update/redownload the integration trough hacs and let me know i

lieven121 commented 1 day ago

In the app there is also the option to switch to "Injection-based charging" (if you have solar panels) Is there an option to switch back to that?

I'd like to make Smappee charge automatically when there is enough solar energy predicted (before Home battery is full)

  • Since smappee's "injection mode" only starts after the Home Battery is full, it starts charging quite late..

Would be ideal if I could make it switch between NORMAL/INJECTION based charging like this :-)

This mode is called SOLAR but isnt officialy supported, since mine isn't working right now maybe you can try and set SOLAR as mode and see if it works

lieven121 commented 1 day ago

I get an error too but seems (for me) to be related to the refresh token, as when i setup the integration it works for a while but then stops working

a fix for that was committed a couple af days ago but haven't had the chance to test myself. Update/redownload the integration trough hacs and let me know i

i tried this, this is the 'version' i use image image

lieven121 commented 1 day ago

In the app there is also the option to switch to "Injection-based charging" (if you have solar panels) Is there an option to switch back to that? I'd like to make Smappee charge automatically when there is enough solar energy predicted (before Home battery is full)

  • Since smappee's "injection mode" only starts after the Home Battery is full, it starts charging quite late..

Would be ideal if I could make it switch between NORMAL/INJECTION based charging like this :-)

This mode is called SOLAR but isnt officialy supported, since mine isn't working right now maybe you can try and set SOLAR as mode and see if it works

@driesvandamme Sadly it doesnt work image

driesvandamme commented 1 day ago

Indeed / Had the same result when I tested.

Not sure how responsive they are, but seems they are missing quite some functionality compared to other brands :-(

You never know...

scruysberghs commented 1 day ago

Indeed / Had the same result when I tested.

* I sent an email to smappee support earlier today asking if they could add it / if they have a reason not to expose that functionality over their API. (I don't think it should take them very long to implement it) + It works in the app, so I don't see why they wouldn't allow it ..

Not sure how responsive they are, but seems they are missing quite some functionality compared to other brands :-(

You never know...

are you sure this isn't what "SMART" charging is supposed to do? (don't know as there is no solar where I am testing the Smappee charging)

driesvandamme commented 1 day ago

Indeed / Had the same result when I tested.

* I sent an email to smappee support earlier today asking if they could add it / if they have a reason not to expose that functionality over their API. (I don't think it should take them very long to implement it) + It works in the app, so I don't see why they wouldn't allow it ..

Not sure how responsive they are, but seems they are missing quite some functionality compared to other brands :-( You never know...

are you sure this isn't what "SMART" charging is supposed to do? (don't know as there is no solar where I am testing the Smappee charging)

Maybe.. But as far as I know there is no way that Smappee can tell how full my home battery is.. So it would always be guessing.

Somehow I trust my own automation/logic more than whatever the "SMART" algorithm does. In the app you have options: NORMAL / SMART / SOLAR (Injection based, to feed all "overproduction" into your car) - Unfortunately you don't get any overproduction until the battery is full...

scruysberghs commented 1 day ago

but using the action call in this integration you can make your own logic trough home assistant automations. No need for the Smappee charging station to be SMART at all. Just let Home Asssitant be the master. I use EMHASS to do day ahead planning/optimizations looking at solar forecast and dynamic pricing. It makes a day ahead schedule for deferable loads (water heating, heat pump, swimming pool etc), car charging and house battery charging and discharging. Add the evcc.io add-on and integration to the mix and get rid of the Smappee app alltogether :-)

lieven121 commented 23 hours ago

Ooh i use epex spot + solar forecast + a sonnen home battery but for now its a very manual process for me which i hope to automate

What does the evcc.io addon do and how does it communicate with smappee?

scruysberghs commented 23 hours ago

evcc.io addon gives you a nice ui/ux to set the charging modes, planning charging sessions etc (for example I need to drive 300 kilometers tomorrow). It can't talk to Smappee directly at the moment (it could trough ocpp but then you need to get your service whitelisted trough Smapee support) but it can talk to anything in Home Assistant. It has support to read SoC from many car brands and chargers (more than Home Assistant has)