# \[APP\] Easee charger - Small. Smart. Full of power

**URL:** <https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647>\
**Category:** Apps\
**Tags:** app, official\
**Created:** [June 25, 2020, 10:23am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647 "2020-06-25T10:23:32Z")\
**Posts on this page:** 20\
**Page:** 12

<div class="post-metadata">

**Author:** ![tom.hilgerink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom.hilgerink/32/30276_2.png) [@tom.hilgerink](https://community.homey.app/u/tom.hilgerink)\
**Post date:** [May 3, 2023, 7:55pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/225 "2023-05-03T19:55:55Z")

</div>

Dear all,

I’m wondering the following (and my apologies if this or something similar is asked before in advance):  
I’ve hooked up my Easee charger to my Nissan Leaf and would like to charge it as “smart” as possible obviously. As far as I can see I have to set the SoC manually in the Tibber app in order to sort of get a smart charge, but this is kind of a horrible user experience…

To make things a bit easier (in theory atleast 😇) I am wondering if it would be possible to use the Easee + Homey app in a way to set up a few flows that set the SoC that Tibber uses to determine its charging cycle.

For example, I would like to create a flow that once activated sets the SoC to 50% (in case I’d like to top up the car with 50% charge) and commands the charger to start a charging session based on this SoC. In that case I could have a few option to lets say charge the car with 20 / 50 / 80% or so without the need to constantly go into the tibber app and change the SoC.

Thank you very much in advance for any tips or pointers.

---

<div class="post-metadata">

**Author:** ![Ola\_Skjaak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ola_skjaak/32/79205_2.png) [@Ola\_Skjaak](https://community.homey.app/u/Ola_Skjaak)\
**Post date:** [July 3, 2023, 10:53am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/226 "2023-07-03T10:53:54Z")

</div>

Hello

For the last few days I have had problems with the Access token.  
Error: Access token expired (401)  
at invoke (/app/lib/Easee.js:646:35)  
at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)

Works again for a short period (hours) when I reconnect.

Anyone have a solution to this?

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 3, 2023, 7:05pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/227 "2023-07-03T19:05:43Z")

</div>

I see the same, as I have script checking the device availability - Easee charger for last 7 days or so every…2 hours or so being unresponsive…app restart solves it.

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [July 3, 2023, 7:34pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/228 "2023-07-03T19:34:41Z")

</div>

I’m trying to recreate the problem but not successful so far.  
Checked the auth token we get from Easee, and it is still valid for 24h.

Do you have any other integrations which generate tokens with the Easee API?

Then again, there is no release since 17th of May of the app, so any recent changes must be things broken on the Easee side. But no comments from the HA guys on the slack channel, and they are typically quick to comment. Then they use SignalR which we don’t - so not exactly the same usage.

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [July 3, 2023, 7:42pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/229 "2023-07-03T19:42:07Z")

</div>

@Ola_Skjaak, @Sharkys If you check the stats on the app level. App / configure. Do you see the 401 errors on only a particular API or across the board?

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 3, 2023, 8:09pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/230 "2023-07-03T20:09:33Z")

</div>

> [@Richard\_B](#):
>
> must be things broken on the Easee side

I suspect some changes on their side as well

> [@Richard\_B](#):
>
> Do you see the 401 errors

I do not, because when device (Easee) will not get updated eg. Voltage, the app will automatically get restarted via the script/check … I would need to disable it and check later

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 3, 2023, 9:05pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/231 "2023-07-03T21:05:27Z")

</div>

> [@Richard\_B](#):
>
> on the Easee side

Btw, seems they will be shutting down some old API servers… not sure if it’s just coincidence?

> **[Release New API URL and updated charger status · nordicopen/pyeasee](https://github.com/nordicopen/pyeasee/releases/tag/v0.7.53)**
>
> API URLs updated to prepare for shutdown of old servers in September.
> Charger status codes translation table updated with more information.

---

<div class="post-metadata">

**Author:** ![Ola\_Skjaak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ola_skjaak/32/79205_2.png) [@Ola\_Skjaak](https://community.homey.app/u/Ola_Skjaak)\
**Post date:** [July 4, 2023, 6:19am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/232 "2023-07-04T06:19:41Z")

</div>

Thank you for looking at this. I have flow that controls the charger after solar cell production (minus value on the meter) so there is a lot of control of the charger, especially on days with light clouds.

I don’t have any other integrations against Easee.

I have no idea about this, but I have generated a diagnostic report if that helps.  
0c707a18-935b-414a-a6b0-0b6764c0b9fa

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [July 5, 2023, 6:02am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/233 "2023-07-05T06:02:36Z")

</div>

Pushed a test version yesterday that improves the logging when we get a 401. I’m curious to see if we get 401 across all APIs or it is a particular API.

---

<div class="post-metadata">

**Author:** ![Ola\_Skjaak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ola_skjaak/32/79205_2.png) [@Ola\_Skjaak](https://community.homey.app/u/Ola_Skjaak)\
**Post date:** [July 5, 2023, 12:20pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/234 "2023-07-05T12:20:47Z")

</div>

be20f441-4872-4b29-810e-b60d932d4ed5

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 6, 2023, 9:57am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/235 "2023-07-06T09:57:04Z")

</div>

Hi Richard,

I see following in the API error log - when I restart Easee Home app, it’s OKay again for few hours…

> 2023-07-05T17:05:11.538Z  
> Error: get ‘/state/REDACTEDSN/observations?ids=31,48,109,111,112,113,114,120,121,124,182,183,184,185,194,250’: Access token expired (401)  
> at invoke (/app/lib/Easee.js:662:35)  
> at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [July 6, 2023, 11:17am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/236 "2023-07-06T11:17:10Z")

</div>

I have posted on the Easee slack channel, lets see what they say.  
I see in the diag report I got that it is across the board, all API endpoints.

Still don’t see the problem on my Homey. But what you who have the problem have in common seem to be that you do load balancing using the circuit setting.  
(I’ll actually switch away from Tibber in two weeks time and will have to do my own load balancing as well)

I can of course change the logic in the app to refresh the token each 30 mins or so. Lets see what, if anything, Easee comments on slack.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 6, 2023, 11:34am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/237 "2023-07-06T11:34:07Z")

</div>

Just maybe one additional point - this happens I guess for sure when the charger is not used,then the updates (eg. voltage) stop working - today it was 17hours without update. So far I have script, which restart app when the voltage is not updated for 1 hour and this is working fine…also I didn’t observe such issue eg. 3-4 weeks ago (or something like that), it was working flawlessly so I assume Easee changed something on their side.

And also the timeout occurs fully randomly

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [July 6, 2023, 11:45am UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/238 "2023-07-06T11:45:09Z")

</div>

A quick reply from Easee 🙂  
Tokens are no longer valid 24 hours, they are valid for 1 hour 🥶  
I must have checked the refresh\_token when I verified it to still be 24 hours, since when I check the access\_token now it is valid for only 1 hour.

Will ship a test version asap with updated timer.

---

<div class="post-metadata">

**Author:** ![proisland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/proisland/32/10370_2.png) [@proisland](https://community.homey.app/u/proisland)\
**Post date:** [July 6, 2023, 12:14pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/239 "2023-07-06T12:14:34Z")

</div>

I just updated the app, but I still get “Access token expired”. When trying to reconnect to Easee Cloud API I get ‘Could not start maintenance action’. I have tried to restart the app as well.

Error report from app: 645e6520-f05a-4d31-ac8c-72259b901ea0

---

<div class="post-metadata">

**Author:** ![Richard\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/richard_b/32/16805_2.png) [@Richard\_B](https://community.homey.app/u/Richard_B)\
**Post date:** [July 6, 2023, 12:38pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/240 "2023-07-06T12:38:17Z")

</div>

> [@proisland](#):
>
> I just updated the app, but I still get “Access token expired”

Seem to be another problem though “Username or password is invalid”

```auto
Generating new access token
Error: Login failed! Call '/api/accounts/login' failed, HTTP status code '400', and message '{
  errorCode: 100,
  errorCodeName: 'InvalidUserPassword',
  type: null,
  title: 'Username or password is invalid',
  status: 400,
  detail: '[Empty in production]',
  instance: null,
  extensions: {}
}'
    at /lib/loginHelper.js:98:39
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

```

---

<div class="post-metadata">

**Author:** ![proisland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/proisland/32/10370_2.png) [@proisland](https://community.homey.app/u/proisland)\
**Post date:** [July 6, 2023, 12:48pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/241 "2023-07-06T12:48:20Z")

</div>

Ah, makes sense. By chance I changed the password on my Easee account (and a lot of other services) while the token issue was ongoing. Changed back to the previous password for Easee now, and it started working again.

App improvement? Should be able to reconnect with new password after changing password on Easee platform.

---

<div class="post-metadata">

**Author:** ![Glenn\_Johnsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_johnsen/32/81062_2.png) [@Glenn\_Johnsen](https://community.homey.app/u/Glenn_Johnsen)\
**Post date:** [July 6, 2023, 7:38pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/242 "2023-07-06T19:38:59Z")

</div>

Hi, looking for a solution to monitor and restart app if e.g. equalizer power report has stopped updating for a given time. I have found out that to robustify my smart home power control I need to automatically restart app and/or send push notification when it hangs. Any chance you would share your script? Also my equalizer is updating with superslow interval, any solution to force update every 30 sec or so?

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 6, 2023, 7:55pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/243 "2023-07-06T19:55:14Z")

</div>

> [@A script to check sensor last update](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142/19):
>
> Thank you, a slight modification which will report devices with last update time stamps in CET time zones, in EU format, 24 hours and every device separately on it’s row… also case in-sensitive examples for filters, adjust it as you need. Please note that NotReportingThreshold unit is seconds. Latest update - [A script to check sensor last update - #25 by Sharkys](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142/25) Output example : [obrazek]

I’m using this, usually it helps me to detect problem with any devices

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 7, 2023, 9:24pm UTC](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647/244 "2023-07-07T21:24:59Z")

</div>

> [@Richard\_B](#):
>
> Will ship a test version asap with updated timer.

Thank you Richard, so far everything is okay 👍

[Previous page](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647.md?page=11)

[Next page](https://community.homey.app/t/app-easee-charger-small-smart-full-of-power/31647.md?page=13)
