Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domoticz Dummy sensortype usage #3

Closed
RikBast opened this issue Sep 25, 2022 · 359 comments
Closed

Domoticz Dummy sensortype usage #3

RikBast opened this issue Sep 25, 2022 · 359 comments

Comments

@RikBast
Copy link

RikBast commented Sep 25, 2022

Do we need to use only the dummy sensor with sensor type custom sensor?
Would be nice to have also diagrams besides the graph, with sensor type electric or usage we can generate diagrams.

@MichelRabozee
Copy link

MichelRabozee commented Sep 25, 2022

Personally, I modified a bit the code in order to send data to a virtual sensor "Electric (Instant + Counter)": it requires 2 values: an instant value (in Watts) and a total value (in WattsHour); I also have a generic (simple) custom virtual sensor for "today production" and another one for "total production".
image

To be able to retrieve the instant power generated, the code needs to call the "getDevRealKpi" API call (hence, you need to have the "inverter" device ID (you may get that with a "getDevList" API call, the inverter is the device with type "38"), and to call "getStationRealKpi" for the total power produced value.

You need the code to cope with "too many API calls in a small amount of time", amount of time which is quite ramdom for the getDevRealKpi call (varies from max 1 call every minute to max 1 call every 8 minutes, go figure...).

I attach the "HuaweiSolar.env" and "HuaweiSolar_API.sh" I modified. What I use for the "Electric (Instant + Counter)" is "HuaweiSolar_API.sh InverterRealTime".

HuaweiSolar_API.sh.txt
HuaweiSolar.env.txt

Here is my crontab:

*/4   *    *    *    *     HuaweiSolar_API.sh InverterRealTime >/dev/null 2>&1
7     *    *    *    *     HuaweiSolar_API.sh Hour     >/dev/null 2>&1
8     0    *    *    *     HuaweiSolar_API.sh Day      >/dev/null 2>&1
9     0    *    *    *     HuaweiSolar_API.sh Year     >/dev/null 2>&1

@RikBast
Copy link
Author

RikBast commented Sep 25, 2022

Thx for this, it seems my "devTypeId": 1 for the Inverter and the is "id": , that's the one I need for the .env file?
But how to export to Domoticz, is there an extra entry needed in the HuaweiSolar.env File to refer to the DomoticzID?

And I can't get to refresh the token anymore

@MichelRabozee
Copy link

My inverter has an ID = 1000000035294540.

Normally, calling "HuaweiSolar_API.sh Devices" should give you the info, like this:

Device Type: 62, Device ID: 1000000035294539, Device name: "Dongle-1"
Device Type: 38, Device ID: 1000000035294540, Device name: "Inverter-1"

Regarding the token, this is the code I have (and which works):

#!/bin/bash

mydir=`dirname $0`
myTempFile=$mydir/results.$$
myTokenFile=$mydir/last.token
source $mydir/HuaweiSolar.env

curl -i -s -X POST -H 'Content-Type:application/json' -d "{\"userName\":\"$userName\",\"systemCode\":\"$systemCode\"}"  $baseURL/login >$myTempFile
export myToken=$(cat $myTempFile|grep token|cut -d ' ' -f 2)

echo $myToken
echo $myToken > $myTokenFile
cat $myTokenFile
rm $mydir/*.$$

@RikBast
Copy link
Author

RikBast commented Sep 25, 2022

Running that command gives this error: ./HuaweiSolar_API.sh: line 73: gdate: command not found

But I do get a list of devices.

@MichelRabozee
Copy link

Oh, yes, gdate is gnu date, required to be able to handle the "+%s%3N" format to get milliseconds. I am on MacOS, and the builtin "date" is not the GNU one. If your system is like a Raspberry, just remove the 'g' of gdate.

@RikBast
Copy link
Author

RikBast commented Sep 25, 2022

Ok. One last issue: how to get the data to domoticz? In the .env file there is no entry to refer to the DomoticzID sensor.
For the Electric sensor I mean

@MichelRabozee
Copy link

MichelRabozee commented Sep 25, 2022

Oops, right, I included an old .env file :-( I updated my message above. And please take again the "HuaweiSolar_API.sh" as well, I corrected it as per your comments about gdate.

The ID for the Electrical virtual sensor must be filled in here

# Domoticz ID for variable real time/total production
DomoticzHuaweiGeneratedRealTime=ChangeMe

@RikBast
Copy link
Author

RikBast commented Sep 25, 2022

I will change it, I noticed after 25 min you cannot get a new token anymore with the new .sh file.
The old script refreshed the token with no issue

@MichelRabozee
Copy link

If you run the get_token.sh script by hand, what is happening ?

@RikBast
Copy link
Author

RikBast commented Sep 25, 2022

get_token.sh: 6: get_token.sh: source: not found

I run command: sh get_token.sh

Hope that is the correct way

@MichelRabozee
Copy link

MichelRabozee commented Sep 25, 2022

get_token.sh and HuaweiSolar.env must be executable (chmod +x ) and in the same directory.

./get_token.sh should run the script.

If it runs, maybe comment out the line "rm $mydir/.$$" and look at the created "results." files and the last.token file

@RikBast
Copy link
Author

RikBast commented Sep 25, 2022

It generated 3 results files:

Seems a 0 length token?

{
"result" :
[
{
"LastUpdate" : "2022-09-25 21:54:05",
"Name" : "Huawei_XSRF_token_epoch",
"Type" : "2",
"Value" : "1664135645",
"idx" : "1"
}
],
"status" : "OK",
"title" : "GetUserVariable"

HTTP/1.1 200 OK
Server: product only
Date: Sun, 25 Sep 2022 21:00:01 GMT
Content-Length: 0
Connection: keep-alive

HTTP/1.1 200 OK
Server: product only
Date: Sun, 25 Sep 2022 21:00:06 GMT
Content-Length: 0
Connection: keep-alive

@MichelRabozee
Copy link

No "last.token" file in the directory ?

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

There is last.token file in the same directory. It’s empty, maybe it also needs to be executable?

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

image

@MichelRabozee
Copy link

There is last.token file in the same directory. It’s empty, maybe it also needs to be executable?

no, last.token does not have to be executable.

Just to be sure: you have put the new lines from "HuawaiSolar.env.txt" into "HuaweiSolar.env", correct ? (the files I have put here had the ".txt" extension because it is not allowed to upload ".sh" or ".env" files).

The file sizes I have are:
HuaweiSolar_API.sh => 9861
get_token.sh => 409

Can you try to execute "get_token.sh" in debug mode ?
use:
bash -x get_token.sh

@MichelRabozee
Copy link

I also see in your screen shot that some results are 218 bytes, other 121. If all were the results of the get_token script, the ones with 121 bytes should be the ones notifying an error (without XSRF token), but the ones with 218 bytes should contain the XSRF token.

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

There is last.token file in the same directory. It’s empty, maybe it also needs to be executable?

no, last.token does not have to be executable.

Just to be sure: you have put the new lines from "HuawaiSolar.env.txt" into "HuaweiSolar.env", correct ? (the files I have put here had the ".txt" extension because it is not allowed to upload ".sh" or ".env" files).

Yes, I manually edited the .txt file and renamed it to .env

The file sizes I have are: HuaweiSolar_API.sh => 9861 --> my Device ID = 1 instead of 38

get_token.sh => 409

Can you try to execute "get_token.sh" in debug mode ? use: bash -x get_token.sh

I get all the data, can't post it here (You will then have full access to my API account etc). So I put only the last part. myToken seems empty

  • export MyToken =

  • myToken =

  • echo

  • echo

  • cat ./last.token
    +rm ./results.30193

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

This is the results file. Old token, it will not update

{
"result" :
[
{
"LastUpdate" : "2022-09-25 21:54:05",
"Name" : "Huawei_XSRF_token_epoch",
"Type" : "2",
"Value" : "1664135645",
"idx" : "1"
}
],
"status" : "OK",
"title" : "GetUserVariable"

@MichelRabozee
Copy link

That result file is the update of the Domoticz Huawei_XSRF_token_epoch variable, not one from get_token.

For instance, this is a result file from a successful get_token execution.

HTTP/1.1 200 OK
Server: product only
Date: Mon, 26 Sep 2022 09:24:01 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 68
Connection: keep-alive
x-trace-enable: false
x-frame-options: SAMEORIGIN
x-download-options: noopen
x-parent-id: 8726933996551503978
strict-transport-security: max-age=31536000; includeSubDomains
set-cookie: XSRF-TOKEN=x-bvcavy2lqpvw7ws6vzrsbvenjwtc5hg5vzc93yardjdhjzbvk8qodio8dhhcvs6n9f7tjsc6bsir9ejzmkrwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;Path=/;Secure
x-trace-id: 0
x-span-id: 8726933996551503978
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
xsrf-token: x-bvcavy2lqpvw7ws6vzrsbvenjwtc5hg5vzc93yardjdhjzbvk8qodio8dhhcvs6n9f7tjsc6bsir9ejzmkrwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

{"data":null,"success":true,"failCode":0,"params":{},"message":null}

I do not have much more idea to help you :-(

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

I can get new token via Postmaster app as suggested by Huawei manual from there support website

Running ./HuaweiSolar_API.sh InverterRealTime Y on the PI just gives me output that the token is >25 min old and it won't retrieve a new token. So strange it won't update the token

@MichelRabozee
Copy link

Maybe that is because the Huawei_XSRF_token_epoch variable in Domoticz is wrongly updated ? The HuaweiSolar_API.sh relies on the stored value of that variable in Domoticz to decide if the get_token.sh script needs to be called or not (for instance, mine was updated around 11:52 - it is now 11:58 here - and the variable contains 1664185920).

Can you check the value of the variable in Domoticz, and use an epoch converter (like: https://www.epochconverter.com ) to check the time it represents ?

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

Will do that tonight, no acces to Domoticz at the moment.

I just used the original HuaweiSolar_API.sh and the original HuaweiSolar.env, not your edited versions and the token is retrieved with no issue. I am breaking my head here, why that is :-(

Hopefully Domoticz variable issue

@MichelRabozee
Copy link

It runs fine here, I do not see what can go wrong :-( BTW, I put in my post above a new version of the "HuaweiSolar_API.sh".

Regarding token refreshing, as far as I know, the only thing I touched in the CheckToken() mechanism is the line "myEpoch=$EPOCHSECONDS" because EPOCHSECONDS is only available in bash from version 5 (and my OS still runs bash version 3.2.57(1), hence I merely used "myEpoch=$(date +%s)" which should run everywhere.

Also, regarding InfluxDB injection, I changed

  influx -username $myInfluxUser -password $myInfluxPass -host $myInfluxHost -database $myInfluxDB -precision=ms -execute "insert $1 value=$2 $3"

with

  influx write --bucket "SolarPanels" --precision=ms "$1 value=$2 $3"

because I use InfluxDB version 2.

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

I feel stupid...found a typo in the username in the .env file, after correction it started working fine.
Sorry for all the inconvenience.

Let me try and look tonight in Domoticz at the data and see what more data we can utilize (for instance the battery)

I will have a closer look at the _API.sh file if I can edit myself for battery data. But probably need some help with this .

@MichelRabozee
Copy link

No problem, I got my share of such typos during my own tries :-)
As said earlier, I put a new version of the "HuaweiSolar_API.sh" this morning (around 9:30 West European time). Beware of the InfluxDB write modification I mentioned for InfluxDB v2.

I am still waiting for the installation of the batteries (Luna 2000 10kWh), so your work will be appreciated in a very near future :-)

If it may be of use, this is the V6 API reference:
iMaster NetEco V600R022C00 Northbound Interface Reference-V6 (SmartPVMS).pdf

Michel

@RikBast
Copy link
Author

RikBast commented Sep 26, 2022

Yes, typos are so easily overlooked. I already use the new HuaweiSolar_API.sh.
I don't use InfluxDB (who knows maybe something in the future)

A 10kWh battery is big! Why you chose 10 if I may ask? I have 5 kWh, and with this weather it will never be fully charged.
And now with injection prices higher then retrieval prices of electricity I should sell my battery :-D

I hope I can figure out how to make it work for the battery data.
thx for the API reference

Rik

@MichelRabozee
Copy link

MichelRabozee commented Sep 26, 2022

In Belgium, since last year, the "prosumers" (the ones producing more than they consume) even have to pay a tax (we have a strange kind of ecologists here... They even make the nuclear power plants to stop and replace them with gaz turbines, because they still have "nuclear no thank you" motto from the last decades. Even the kWh reinjected to the grid are not bought by the power company, it is like we offer them that energy. Anyway.
My home is quite heavily equipped with domotics, handled by computers, I have my storage on 2 NAS devices, and a pond with require constant flowing. I have a permanent power need of 800 Watts :-( I do not have much more consumption than that (only cooking, all the house is equipped with low consumption LEDs, and I do not use electricity for the heating).

With the solar panels (I have them since this September 2, 2022, with a 3.2 kWc capacity), and I already see they produce more than 2 kWh during 3-4 hours, over the 800 Wh I need, even with a cloudy weather. Hence, seeing that, I really prefer to self-consume a maximum of energy rather than offering it graciously to the energy company, and I immediately ordered the battery. Regarding the capacity, 10 kWh, if filled in, would suffice to cover the night needs, and I guess if the summers are even less sunny than the last one, the 10 kWh will be almost filled each day.

I already saw that without the battery, I consume 1/3 less than before from the grid, with the batteries, it may go to 1/2 my normal consumption at least. I expect to have a return of investment in less than 4 years.

Michel

@RikBast
Copy link
Author

RikBast commented Sep 27, 2022

Michel, Do you also have negative values?
IMG_7640

@MichelRabozee
Copy link

MichelRabozee commented Sep 27, 2022

Not for several days, but I have seen that when I was using another way to get the total energy produced value (not using an openAPI account, but relying on the normal customer account). It never happened since I use the (modified) Goumjer script.

To explain what was happening with my old way to get the data: around after midnight, the value of the previous day "energy produced" was subtracted from the "total energy produced" value, leading to a negative value when the Domoticz graphing system sees that artefact. As I said, with the modified Goumjer script, this subtraction never occurred again (the values of the total energy produced keep increasing). But to check why (for next night) you may add the line

  echo `date` "Current (kW): "$myCurrentkW "kW, Current (W): "$myCurrentW "W, Total: "$myTotalWh "Wh, Today: "$myTodaykWh "kWh" >> realtime_inverter_data.txt

at the end of the "InverterRealTime ()" function, and look at the values at the time the negative data happens.

If the issue is a temporary backwards value in the "total produced energy", there is a way to cope with it by always comparing the currently read total value to the previous one and ignore a backwards value, like with a code like this:

	PreviousTotalEnergyFile="~/previous_total_energy.txt"
	# make sure the total energy value keeps growing
	if [ -r $PreviousTotalEnergyFile ]
	then
		previousTotalEnergy=`cat $PreviousTotalEnergyFile`

	if [ $previousTotalEnergy -gt $myTotalWh ]
		then
			myTotalWh=$previousTotalEnergy
		fi
	fi
	echo $myTotalWh > $PreviousTotalEnergyFile

(code to put after the line myTotalWh=$(echo "scale=0; ${myTotalkWh} * 1000 / 1" | bc | sed 's/^./0./') )

I however think this may be a one time issue due to the fact that yesterday was the first day you filled in the data for that sensor. The way the data are processed by Domoticz graphing system is still a black box to me (I use that system since 1 week only now :-) )

@MichelRabozee
Copy link

Btw I have synology NAS :-)

So you may use in the File Station the functionality to share a file or a folder (Action Menu -> Share) or to request a file (Action menu -> Create file request) (that is how I did it :-) )

@RikBast
Copy link
Author

RikBast commented Nov 21, 2022

I see that yes, a lot of time, several panels are fully shadowed because of the surrounding buildings. Having 1 panel completely in the dark, without optimiser, would render inefficient the whole string to which it is connected to.

Yes, my guess optimizers should help here to boost output, in summer they don't add anything, but I don't need extra power then.

But in winter, it is normal to have the sun very low. I guess in spring, the shadows will be much less an issue.

In the summer it's indeed almost gone.

👍🏻

But look at my east-west roof, that day completely in the sun. It was November 13th. Also my south angled roof is in the sun all the time. So that's why I am thinking of maybe move the panels. As said I need an expert here 😅

If the roof up left on the image is yours, yes that would be the better place !!!

image

This part? Can install 2 panels

All to the left is another house

@MichelRabozee
Copy link

This part? Can install 2 panels

OK, not easy from here to see the dimensions; but even it is only 2 panels, it is already 800 W more stable. So, where do you want to move (some) of the panels then ?

@RikBast
Copy link
Author

RikBast commented Nov 21, 2022

This part? Can install 2 panels

OK, not easy from here to see the dimensions; but even it is only 2 panels, it is already 800 W more stable. So, where do you want to move (some) of the panels then ?

image

image

That's East-West.

Or move the current array a bit more South-West add optimizers and add 2 extra panels on the south roof.

I doubt so much in this, my installer says this south based is the best....I don't know...

@MichelRabozee
Copy link

The only thing sure (but only in my own opinion, I am not expert at all) is that where they are now, the panels are in the shadows in winter. Which is less to happen if they are on a slope roof in height, not on a flat roof boxed between walls.

@RikBast
Copy link
Author

RikBast commented Nov 24, 2022

Ah well, it's winter now and don't want to get to critical.

I have the idea that my converter is not running very efficient at the moment. 3 phase inverter, if I calculate Power = U * I and then take the PowerInverter value from the inverter and divide it PInverter/P * 100% I get around 86% at the moment. So maybe add this domoticz and calculate realtime. The efficiency API call is always 100%, Huawei is looking into it.

@RikBast
Copy link
Author

RikBast commented Nov 25, 2022

Another info from Huawei

active power - AC-side power of the inverter
mppt power -PV side input power of the inverter

@MichelRabozee
Copy link

And, as I see since several days, the "day_power" from getStationRealKpi is same value as the daily "yield":

image

image

@RikBast
Copy link
Author

RikBast commented Nov 26, 2022

And, as I see since several days, the "day_power" from getStationRealKpi is same value as the daily "yield":

image image

Yes, the same with me. However we want the 'electricity domoticz meter' to show the same, but still I have 4 different values.

MPPT total cap I would say is the yield for the PV, but according daily yield that value is to optimistic. Still not sure about these API values.

Scherm­afbeelding 2022-11-26 om 08 53 21

@RikBast
Copy link
Author

RikBast commented Dec 8, 2022

If you charge your battery from the grid at night you get free yield 🙄

image

@MichelRabozee
Copy link

MichelRabozee commented Dec 8, 2022

Hmmm... Interesting

By the way, I wanted to go that way (charging during night at the low rate price), but as I can get the installer password, no way for me to configure that temporarily (seems they refuse to give me the password and they will charge 100 € to do the config change, each time (so also for returning at the Max Auto-consumption settings when the sun will be there fully again). I hate that "job protection" concept.

@RikBast
Copy link
Author

RikBast commented Dec 8, 2022

Hmmm... Interesting

By the way, I wanted to go that way (charging during night at the low rate price), but as I can get the installer password, no way for me to configure that temporarily (seems they refuse to give me the password and they will charge 100 € to do the config change, each time (so also for returning at the Max Auto-consumption settings when the sun will be there fully again). I hate that "job protection" concept.

You can do it from the app, under Dongle you can set TOU and under battery how far you want to charge.

What energy supplier to you have?

@MichelRabozee
Copy link

Oh, yes, today, I have access to TOU. 2 days ago, it said something like "this functionality has been disabled by the Installer".

As energy supplier, Engie Electrabel. Why ?

@RikBast
Copy link
Author

RikBast commented Dec 8, 2022

Oh, yes, today, I have access to TOU. 2 days ago, it said something like "this functionality has been disabled by the Installer".

So, you try 😌

As energy supplier, Engie Electrabel. Why ?

To share our surplus energy :-) I have now Eneco, it's possible in Belgium

@MichelRabozee
Copy link

I set up this:
UNADJUSTEDNONRAW_thumb_f3fe

Should be OK, isn't it ?

In Wallonia, till 2030, the production is subtracted from the consumption (like it was with an analogue power meter with the wheel running backwards). In Brussels and Flanders, if I have the correct information, it is no more possible, thus your sharing system may come handy (otherwise you need to "sell" the extra energy to the grid at a lower price).

@RikBast
Copy link
Author

RikBast commented Dec 8, 2022

I set up this:

UNADJUSTEDNONRAW_thumb_f3fe

Should be OK, isn't it ?

Yes, I have something similar, but only for today, because Fluvius was working on the grid today and I did not want to be shut off, so I charged my battery last night to cover the shut off of the power grid.

In Wallonia, till 2030, the production is subtracted from the consumption (like it was with an analogue power meter with the wheel running backwards). In Brussels and Flanders, if I have the correct information, it is no more possible, thus your sharing system may come handy (otherwise you need to "sell" the extra energy to the grid at a lower price).

That's like in NL it seems, but then a battery is not necessary?
Yes in Flanders there is an injection reward which is very low in price. Next year invest in extra battery, but I am waiting for my digital meter in order to get government reward money for the install of my PV system and buy extra battery

@MichelRabozee
Copy link

MichelRabozee commented Dec 8, 2022

I prefer to have a battery, because, who knows if they will not change their mind before 2030 ;-) It happened before.

Yes, I have something similar, but only for today, because Fluvius was working on the grid today and I did not want to be > shut off, so I charged my battery last night to cover the shut off of the power grid.

Do you mean the inverter can power your house even if the grid is down ? Because normally, this kind of autonomous working requires a special additional module.

I have a question: in TOU mode, if the PV produce more energy than required in the house during the day (so outside the "charging from the grid period", they will recharge the battery (if it is not yet full) ? Or this occur only in "max auto consumption" mode ?

@RikBast
Copy link
Author

RikBast commented Dec 10, 2022

I prefer to have a battery, because, who knows if they will not change their mind before 2030 ;-) It happened before.

Yes, I have something similar, but only for today, because Fluvius was working on the grid today and I did not want to be > shut off, so I charged my battery last night to cover the shut off of the power grid.

Do you mean the inverter can power your house even if the grid is down ? Because normally, this kind of autonomous working requires a special additional module.

I have a question: in TOU mode, if the PV produce more energy than required in the house during the day (so outside the "charging from the grid period", they will recharge the battery (if it is not yet full) ? Or this occur only in "max auto consumption" mode ?

You can choose in the TOU settings what you want then: charge battery or inject into the grid

Huawei did an update, last API value are off and seem to be corrected later, however Domoticz has now big negative and positive values (To compensate). Maybe remove them in Domoticz?

@MichelRabozee
Copy link

You can choose in the TOU settings what you want then: charge battery or inject into the grid

Yes, in fact, I set that correctly (by accident ;-) ), see my screen shot ! Arf, I feel stupid to have asked.

Huawei did an update, last API value are off and seem to be corrected later, however Domoticz has now big negative
and positive values (To compensate). Maybe remove them in Domoticz?

I had such issues each time they do their maintenance. I had bad results after removing the "wrong" data the first time. Hence now, I do not change anything, the daily strange values are only visible during 1 day. Afterwards, things go back to normal.

@RikBast
Copy link
Author

RikBast commented Dec 10, 2022

Thinking of adding another 5 kWh battery are you happy with your 2x 5kWh?
In february I switch from Eneco to Engie

@RikBast
Copy link
Author

RikBast commented Dec 10, 2022

You can choose in the TOU settings what you want then: charge battery or inject into the grid

Yes, in fact, I set that correctly (by accident ;-) ), see my screen shot ! Arf, I feel stupid to have asked.

Why? ;-) I sometimes oversee things also

Huawei did an update, last API value are off and seem to be corrected later, however Domoticz has now big negative
and positive values (To compensate). Maybe remove them in Domoticz?

I had such issues each time they do their maintenance. I had bad results after removing the "wrong" data the first time. Hence now, I do not change anything, the daily strange values are only visible during 1 day. Afterwards, things go back to normal.

@MichelRabozee
Copy link

Thinking of adding another 5 kWh battery are you happy with your 2x 5kWh?
In february I switch from Eneco to Engie

I am quite happy with the 10 kWh battery, certainly now that I configured the TOU, I will have most of the day consumption at low rate (my hourly consumption is 1 kWh steady during the entire 24h day). In the spring, I will see if is is better to limit the night charge to 80 or 70 % to make room for the PV production, and then 50 % or disable it in April-May and go back to max self-consumption. It will require some tuning thus (the night charge if good in order to pay the low price instead of the high price, but when the sun will be there, the battery must not be too full already :-) ).

@RikBast
Copy link
Author

RikBast commented Dec 10, 2022

Thinking of adding another 5 kWh battery are you happy with your 2x 5kWh?

In february I switch from Eneco to Engie

I am quite happy with the 10 kWh battery, certainly now that I configured the TOU, I will have most of the day consumption at low rate (my hourly consumption is 1 kWh steady during the entire 24h day). In the spring, I will see if is is better to limit the night charge to 80 or 70 % to make room for the PV production, and then 50 % or disable it in April-May and go back to max self-consumption. It will require some tuning thus (the night charge if good in order to pay the low price instead of the high price, but when the sun will be there, the battery must not be too full already :-) ).

You have big difference between day and night tariffs?
So every night you charge battery with lower tariff electricity?

@RikBast
Copy link
Author

RikBast commented Dec 10, 2022

image

These values I got today, it now says that dec has generated 975 kWh

image

@MichelRabozee
Copy link

I got similar weird things:
image

You have big difference between day and night tariffs?

Low price is like 33 % economy with respect to the high price (Engie Easy 1 year recurrent contract).

So every night you charge battery with lower tariff electricity?

Since 2 days, yes

@RikBast
Copy link
Author

RikBast commented Dec 11, 2022

You should go for dynamic price contract with Engie and develop your own script when to charge your battery with the P1 data from your meter. Plus when to sell electricity when price is high (feed into the grid). Is that something you could make?

I don't know if there is an API to retrieve the hourly electricity prices and adapt your battery system accordingly.

bliq.energy has this (it's in dutch only), but we should we not be able to write a smart script for this :-)

@RikBast
Copy link
Author

RikBast commented Dec 11, 2022

You should go for dynamic price contract with Engie and develop your own script when to charge your battery with the P1 data from your meter. Is that something you could make?

I don't know if there is an API to retrieve the hourly electricity prices and adapt your battery system accordingly.

@RikBast RikBast closed this as completed Dec 11, 2022
@MichelRabozee
Copy link

You should go for dynamic price contract with Engie and develop your own script when to charge your battery with the P1 data from your meter. Plus when to sell electricity when price is high (feed into the grid). Is that something you could make?

I don't know if there is an API to retrieve the hourly electricity prices and adapt your battery system accordingly.

No problem to get the periods of the low prices from the P1 Smart Meter; more difficult is to send commands to the Huawei Inverter, the API is only capable of retrieving data, not sending settings as far as I know.

@RikBast
Copy link
Author

RikBast commented Dec 11, 2022

Ah yes, somehow it seems possible as there is a commercial solution already. But you pay 299 euro for the box and 7euro monthly fee for it.

I don't know if Huawei support has a solution for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants