Skip to content

billerby/huawei-solar-ha-nodered

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

huawei-solar-ha-nodered

Description of my automation used to charge the battery during the cheapest hours, and discharge it during the most expensive.

Prerequesites

Things that should be considered

  • Use fixed ip for your inverter dongle, we do not want the connection to drop if the dhcp hands out a different ip on restart.
  • Do not configure the lowest price node to start fetching before 00:00, the data will not be accepted due to that the hours belongs to different days. I did not write the logic to split this corner case into multiple periods.

My current flow (work in progress) looks like this: image

The flow starts with a cron trigger that is set to fire each day at 14.00. It starts with a check if the prices for tomorrow have arrived, if not it waits 10 minutes and checks again (repeats unitl the prices have been updated)

It then fetches the lowest 5 hours (the time it takes for my luna to charge) prices the upcoming 24 hours and the highest prices for 14 hours (its some kind of average discharge time I've choosen). This should be changed to a dynamic config (https://powersaver.no/nodes/dynamic-config.html)

After that the two schedules for charge an discharged are combined into a payload understood by the inverter.

Grab the code and import it into your NodeRed installation

Things you need change:

The device_id of your battery should be changed to match your own.

You can find it by navigating to Developer tools -> Services -> Choose Service "Huawei Solar: Set TOU Periods: image

Then click GO TO YAML MODE and grab your device_id: image

The power region you belong to should be changed in the Read Nordpool sensor state node: image

About

Description of my automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published