Example flow - enell/node-red-contrib-genetic-charging-scheduler GitHub Wiki
Example flow
An example flow to calculate and set a battery Time-of-Use schedule
Requirements:
Before you execute the flow:
- Set your Tibber home id in the "Set tibber payload" node
- Set you Huawei Solar device id in the "Set ToU period" node
Flow breakdown:
- Fetch price information for current and next day
- Modify payload to specify import and export price and add the current battery SoC
- Run the schedule calculator based on a 5 kWh battery
- Convert the result to a ToU pattern that Huawei batteries excepts
- Call the set_tou_periods service from Huawei Solar
FAQ:
How do I get my Tibber home id?
Open Tibber API Explorer and execute this query
{viewer {homes {id}}}
How do I get my battery device id?
- Go to Developer Tools-> Services
- Find "Huawei Solar: Set TOU Periods"
- Choose you battery in the drop-down
- Switch to yaml and you will see the id