ricott / homey-no.easee

Easee app for Homey
GNU General Public License v3.0
5 stars 5 forks source link

Update price pr kWh from Tibber? #29

Closed henninglensberg closed 2 years ago

henninglensberg commented 2 years ago

Hi Will it be possible to update price pr kWh + an % or fixed value in Easee from eg. Tibber?

ricott commented 2 years ago

Hi! There is a test version, 1.4.3 with the added action Set charging price. You can use Tibber's Price changed as the trigger for a flow and the new action as action. Pass the params from the Tibber action as input. Try it out and let me know what you think.

Not sure what you mean with:

+ an % or fixed value

henninglensberg commented 2 years ago

Hi

When will 1.4.3 be released?

I will test

What I mean with + an % or fixed value is: I wan to set charging price to “Tibber price” +eg. 0,05 NOK”

Tibber price = 5,00 NOK + 0,05 NOK = Chargeprice = 5,05 NOK

henninglensberg commented 2 years ago

Hi You are close;) I don't understand why I have do set Cost pr kWh twice. both utside parantece and inside divide by VAT.

I only need to use CurrentPrice from Tibber and calculate it self before updating chargingprice.

Eg:; Set charging price to {{(Current price + 0,01)*1,25}}

The result will then be price from Tibber + 0,01 NOK + VAT (in this case = 25%)

ricott commented 2 years ago

The Tibber trigger Price changed returns these three values; total, energy, tax. The Easee API accepts these three values; costPerKWh, costPerKwhExcludeVat, vat. In my test flow, I simple mapped these three values straight off.

If you want to recalculate the energy price excl. taxes then I understand it is messy to calculate the taxes. Guess there a different types of taxes and not all are easy %.

We could drop two of the cost values and only use one, but the question is which is most useful. Most people I imagine are interested in the costPerKWh which includes taxes since that is what you will be paying. Then with Tibber you anyhow have the price guarantee of 50% lower price for charging. I guess we could a factor which by default is 100%, ie nothing happens with the value. But you can set it to 50% or whatever and the price sent to the Easee API will be decreased/increased.

Will think about it and have another go tomorrow.

henninglensberg commented 2 years ago

Hi I see, But why not make all variables so we can Calculate, and the VAT% is a fix number, so, if we can calculate all figures it might also be easy to calculate all values.. But, I think calculation is easy if we got the ppossibility for it. OR, make 2 "then" flows :)

BUT; I can see that the price is updated every hour so it works fine:) Only miss possibility to add a extra fee :)

ricott commented 2 years ago

New test version 1.4.4.

henninglensberg commented 2 years ago

Thanx :) Since you made it to text, its possible to add own calculations, so now it seems fine. The only issues if some ar using reports from Easee as invoice basis, the report misses VAT since it's not included. VAT was OK in test version.

Thanx a lot again - you have solved my issue!

/henning

ricott commented 2 years ago

I added VAT back, there is a new test version. If you don't have VAT you can set it to 0, then it won't be sent to Easee.

henninglensberg commented 2 years ago

Hi

Thanx 😉

Med vennlig hilsen / Kind regards

Henning Lensberg Sjefskonsulent – Senior Løsningsarkitekt

Mobil: +47 98 28 94 40 E-post: @.**@.>

Value Retail Consulting AS

Fra: Richard Barkestam @.> Sendt: søndag 14. august 2022 21:09 Til: ricott/homey-no.easee @.> Kopi: Henning Lensberg @.>; Author @.> Emne: Re: [ricott/homey-no.easee] Update price pr kWh from Tibber? (Issue #29)

I added VAT back, there is a new test version. If you don't have VAT you can set it to 0, then it won't be sent to Easee.

— Reply to this email directly, view it on GitHubhttps://github.com/ricott/homey-no.easee/issues/29#issuecomment-1214432738, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APPVRQDDLBDSQNJYWPRCKJLVZE75PANCNFSM55A2TPOA. You are receiving this because you authored the thread.Message ID: @.**@.>>

henninglensberg commented 2 years ago

One last question, when will the version be public, så we can stop use test version?

Med vennlig hilsen / Kind regards

Henning Lensberg Sjefskonsulent – Senior Løsningsarkitekt

Mobil: +47 98 28 94 40 E-post: @.**@.>

Value Retail Consulting AS

Fra: Henning Lensberg Sendt: mandag 15. august 2022 07:53 Til: ricott/homey-no.easee @.***> Emne: SV: [ricott/homey-no.easee] Update price pr kWh from Tibber? (Issue #29)

Hi

Thanx 😉

Med vennlig hilsen / Kind regards

Henning Lensberg Sjefskonsulent – Senior Løsningsarkitekt

Mobil: +47 98 28 94 40 E-post: @.**@.>

Value Retail Consulting AS

Fra: Richard Barkestam @.**@.>> Sendt: søndag 14. august 2022 21:09 Til: ricott/homey-no.easee @.**@.>> Kopi: Henning Lensberg @.**@.>>; Author @.**@.>> Emne: Re: [ricott/homey-no.easee] Update price pr kWh from Tibber? (Issue #29)

I added VAT back, there is a new test version. If you don't have VAT you can set it to 0, then it won't be sent to Easee.

— Reply to this email directly, view it on GitHubhttps://github.com/ricott/homey-no.easee/issues/29#issuecomment-1214432738, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APPVRQDDLBDSQNJYWPRCKJLVZE75PANCNFSM55A2TPOA. You are receiving this because you authored the thread.Message ID: @.**@.>>

ricott commented 2 years ago

Published it yesterday, Athom needs to approve it and they seem to take their time currently ... could be a week I guess.