Preferred if you have HACS installed is to search for Peaqnext there.
Otherwise you may:
- Copy
custom_components/peaqnext
folder to<config_dir>/custom_components/peaqnext/
- Restart Home assistant
- Go to Configuration > Devices & Services > Add integration
Peaqnext lets you set up sensors from config flow by giving a name, total consumption for a cycle, consumption-pattern (see below for examples) and duration of a cycle. You may also specify hours where the suggestion may not begin, or end. This can be handy for say washing machines that you may not wish to be done in the middle of the night. When this is done, the sensors will appear and give you a status on the next best cycle to run the appliance with start-time, end-time and the total expected cost in parenthesis. The state of the sensor will be cheapest cycle within 12hrs from now. It may be the cheapest overall, or may not. If you wish to see all the cycles you can open the sensor to reveal the attributes.
This integration requires Nordpool or EnergiDataService
In the configflow you are prompted with the following inputs:
Name
- The name of the sensor you are creatingConsumption-type
- The type of consumption pattern your appliance will run with. See examples belowCustom consumption pattern
- (optional) Your own custom consumption pattern if . Inputs must be numbers separated by a comma (,). If decimals, use a point (.) separator.Total consumption in kWh
- Add the expected consumption of a cycle.Total duration in minutes
- Total duration of a cycle.Nonhours start
- (optional) Check the hours in which your appliance cannot startNonhours end
- (optional) Check the hours in which your appliance cannot finishClosest cheap hour
- (optional, defaults to 12h) Change the suggested "cheapest price within x hours" as sensor-state. Set to 48 or more to ignore it.Deduct price
- (optional, defaults to 0) Should you need to deduct a fixed rate from the hourly price calculations, then add it here.Update by
- Choose if you want the sensor update every minute or in the beginning of every hour.Calculate by
- Choose if you want the sensor to calculate based on start-time or end-time.
- Flat consumption - the consumption is static througout the cycle. Example is tumble dryer
- Peak in beginning - the consumption peaks in the beginning of the cycle.
- Peak in end - the consumption peaks towards the end of the cycle. Example is washing machine
- Peak in middle - the consumption peaks in the middle of the cycle.
- Peak in beginning and end - the consumption peaks in the beginning and end of the cycle.
- Custom consumption - Custom pattern. Set your own pattern