oh2th / com.go-e.charger

Homey app for the go-e Home and Gemini family of EV chargers
GNU General Public License v3.0
1 stars 2 forks source link

Electric current - 1 phase #25

Closed NCVervaet closed 11 months ago

NCVervaet commented 11 months ago

Hello Tapio, first of all, thanks for the great go-e app for homey, I am exploring it, being the owner of go-e charger (gemini 4th gen).

I have a nissan leaf (2012), which I have charge at 1 phase, 3 phases is not possibl. When I use the 'when-card' 'the electric current changed' and connect it with a timeline card with the present current, it seems to work incorect: it returns 1/3 of the present current. So for instance, if the current set is 6 amperes, the 'tag' current returns 2A. Is there something I do wrong? Or is this really a bug? Thanks, Norbert

oh2th commented 11 months ago

Thank you for your report. I will check this as it should come from the device directly as is.

Meanwhile, when you have the car next time connected and charging, with your browser fetch 'http://ip_of_goe/api/status?filter=sse,fna,car,alw,acs,frc,trx,err,wh,pha,nrg,eto,tma,amp,ama,cbl,fsp' and reply here with the output, preferably put the output in a code block in the message editor.

NCVervaet commented 11 months ago

Hello Tapio,

I hope you can see my screenshots below.

To support the case, I manually set the EV-Charger to 6A (Single phase), the Android app Go-E Charger reports 5,9A. In the Homey app I see 1,98A. See the pictures in the table below.

I will do an experiment, setting the charging phases to 3, see what happens.

Norbert

Go-E charger android app

Homey app

Screenshot_20231125_123450_Homey Screenshot_20231125_123508_go-eCharger Screenshot_20231125_123513_go-eCharger Screenshot_20231125_140252_go-eCharger

I hop

Van: Tapio Heiskanen @.> Verzonden: zaterdag 25 november 2023 09:54 Aan: oh2th/com.go-e.charger @.> CC: NCVervaet @.>; Author @.> Onderwerp: Re: [oh2th/com.go-e.charger] Electric current - 1 phase (Issue #25)

Thank you for your report. I will check this as it should come from the device directly as is.

— Reply to this email directly, view it on GitHub https://github.com/oh2th/com.go-e.charger/issues/25#issuecomment-1826257910 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP6KB37ZX2KKS5JXWLWW233YGGWZ3AVCNFSM6AAAAAA7ZGN3L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGI2TOOJRGA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AP6KB3ZBGGOAQRGKWOVVYRTYGGWZ3A5CNFSM6AAAAAA7ZGN3L6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTM3J57M.gif Message ID: @. @.> >

NCVervaet commented 11 months ago

Thank you for your report. I will check this as it should come from the device directly as is.

Meanwhile, when you have the car next time connected and charging, with your browser fetch 'http://ip_of_goe/api/status?filter=sse,fna,car,alw,acs,frc,trx,err,wh,pha,nrg,eto,tma,amp,ama,cbl,fsp' and reply here with the output, preferably put the output in a code block in the message editor.

Hello Tapio, present I am charging at 16A, Single phase. I get returned:

{"alw":true,"sse":"220618","eto":1213072,"ama":16,"amp":16,"fna":"EV Charger ","fsp":true,"acs":0,"frc":0,"car":2,"err":0,"cbl":32,"pha":[true,false,false,true,true,true],"wh":1221.832,"trx":null,"tma":[20.5,17.5],"nrg":[230.95,237.46,237.77,4.03,16.112,0,0,3629.91,0,0,0,3629.91,97.55027,0,0,100]}

oh2th commented 11 months ago

The pha value is the one that shows us that the source is single phase, however output mode is three phases. Are you using the schuko adapter? So far there hasn't been any user with such connection.

But indeed, there is some level of a bug, as fsp is true, meaning that single phase mode has been selected. Need to check the logic.

NCVervaet commented 11 months ago

Hello Tapio,

To add on it, the EV-charger is type 2, whereas the Nissan Leaf is type 1. The charging cable is from type 2 (input, into the EV-Charger) to type 1 (into the Nissan Leaf). I think that is the reason that three phases are detected, whereas only one can become active (due to the car). My guess that that holds for all cars charging at 1 phase. So I think you’re right, changing the logic will help, by I quess adding up the three current-rates for the three phases. I hope you can read that from the charger.

Hope you manage to fix it.

Norbert

Van: Tapio Heiskanen @.> Verzonden: zaterdag 25 november 2023 15:53 Aan: oh2th/com.go-e.charger @.> CC: NCVervaet @.>; Author @.> Onderwerp: Re: [oh2th/com.go-e.charger] Electric current - 1 phase (Issue #25)

The pha value is the one that shows that there is three phases available, but active is one. I think I will need to change the logic a little.

— Reply to this email directly, view it on GitHub https://github.com/oh2th/com.go-e.charger/issues/25#issuecomment-1826350966 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP6KB37N65PDTJAHSRTQEM3YGIA4DAVCNFSM6AAAAAA7ZGN3L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGM2TAOJWGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AP6KB32MTMSJPZRMLVPNZVTYGIA4DA5CNFSM6AAAAAA7ZGN3L6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTM3PTXM.gif Message ID: @. @.> >

oh2th commented 11 months ago

There is a fix on how active phases are counted for the current calculation. Could you test the test version from: https://homey.app/a/com.go-e.charger/test/

NCVervaet commented 11 months ago

Hello Tapio,

Seems to be a good fix, I’ve set the current limit to 6 Amperes, and the current reads just below it, which is right.

I’ve also checked with 12 Amperes, it the current reads 12A. So ok!

Thanks, I think you can publish the testversion to production.

Norbert

Van: Tapio Heiskanen @.> Verzonden: zondag 3 december 2023 06:59 Aan: oh2th/com.go-e.charger @.> CC: NCVervaet @.>; Author @.> Onderwerp: Re: [oh2th/com.go-e.charger] Electric current - 1 phase (Issue #25)

There is a fix on how active phases are counted for the current calculation. Could you test the test version from: https://homey.app/a/com.go-e.charger/test/

— Reply to this email directly, view it on GitHub https://github.com/oh2th/com.go-e.charger/issues/25#issuecomment-1837380331 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP6KB3ZGZVFA3532ORDCVM3YHQIJLAVCNFSM6AAAAAA7ZGN3L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4DAMZTGE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AP6KB35W763NBWJAEWJWQXTYHQIJLA5CNFSM6AAAAAA7ZGN3L6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTNQQZOW.gif Message ID: @. @.> >

NCVervaet commented 11 months ago

Hallo Tapio,

Thanks for the fix again, appreciated! I’ve got another one, not about the electric current, but voltage. For single phase charging sessions, the go-e charger homey app adds up all available voltages provided by the Go-E charger. That would be something like 700 to 710V, which is odd. See the screenshot of the Go-e charger app in Homey. Voltage in single phase should be in the range of about 225-240V. I think this can be solved by retrieving the phase (L1,L2 or L3) where there is (or was in previous charging sessin) a electric current present.

For charging at three phases, 700-710V is not corrent either. It is a bit more complicated to get it right, it should typically be in the range of about 380-410V. A suggestion how to fix it: You can roughly calculate the correct voltage by mutliplying an active single phase by the square root of 3 (approximately 1,73). As an example:

234V * 1,73 = 405V (L1-phase)

When there are three phase active, you can take roughly calculate the mean of the three voltages and multiply it by 1,73. As an example the voltages in the screenshot of the original android Go-E charger app:

((234V+239+239)/3 ) * 1,73 = 410,6V.

Can the voltages in your go-e charger homey app be fixed for sinlge and three phases charging?

Thanks,

Norbert

Van: Tapio Heiskanen @.> Verzonden: maandag 4 december 2023 05:30 Aan: oh2th/com.go-e.charger @.> CC: NCVervaet @.>; Author @.> Onderwerp: Re: [oh2th/com.go-e.charger] Electric current - 1 phase (Issue #25)

Closed #25 https://github.com/oh2th/com.go-e.charger/issues/25 as completed via #26 https://github.com/oh2th/com.go-e.charger/pull/26 .

— Reply to this email directly, view it on GitHub https://github.com/oh2th/com.go-e.charger/issues/25#event-11133934508 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP6KB36XP2VDUUCBKD7S2XTYHVGTDAVCNFSM6AAAAAA7ZGN3L6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGEZTGOJTGQ2TAOA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AP6KB33DSSCC2ZDGSYYZYUTYHVGTDA5CNFSM6AAAAAA7ZGN3L6WGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAFF5CLOWA.gif Message ID: @. @.> >