Shamelessly based on a fork from the wonderful https://github.com/custom-components/nordpool
If you like this, you can buy me a beer or a Ko-fi.
If you like being in control of your electricity usage, sign up for Tibber using my my referral link, and get 50 EUR off smart home gadgets in their store: https://invite.tibber.com/yuxfw0uu
PriceAnalyzer keeps your energy bill down, by analyzing the prices from Nordpool, and provides you sensors to automatically control your climate entities and hot water heater.
See the Wiki for more examples and usage instructions.
Price Analyzer creates sensor a with the recommended temperature correction for your thermostats, based on todays and tomorrows prices, between 1 and -1 degrees celcius. This is meant to work kind of like Tibbers smart control for thermostats. If the price is going up in an hour or two, it will boost the thermostat. If there is a peak, or the price is falling soon, the thermostat will ‘cool down a bit’ to save power.
The sensor looks a lot like the nordpool-sensor, with a list of todays and tomorrows prices, but also includes info about the hour like:
A sensor for the recommended thermostat setting for your smartified hot water heater with temperature monitoring. This sensor will calculate when to heat the tank to max, and when to just keep the tank ‘hot enough’, based on todays and tomorrows prices. You can provide your own temperatures for the sensor when setting up or editing the PriceAnalyzer integration. The default config is as follows:
{
"default_temp": 75,
"five_most_expensive": 40,
"is_falling": 50,
"five_cheapest": 70,
"ten_cheapest": 65,
"low_price": 60,
"not_cheap_not_expensive": 50,
"min_price_for_day": 75
}
The default config may not suit your hot water heater and use-case, and will depend on how frequent your household take showers, how big the tank is, and where the temperature sensor(s) are placed. This config has worked great for me, have never given me a cold shower.
The config can also be configured as binary on/off, if you don’t have a temperature sensor on your water heater, like this:
{
"default_temp": "on",
"five_most_expensive": "off",
"is_falling": "off",
"five_cheapest": "on",
"ten_cheapest": "on",
"low_price": "on",
"not_cheap_not_expensive": "on",
"min_price_for_day": "on"
}
Keep in mind that without temperature sensors on the heater, a cold shower can occur.
See the Wiki! https://github.com/erlendsellie/priceanalyzer/wiki
Under HACS -> Integrations, select the ‘Three dots’ icon in the top right corner, select ‘Custom Repository’, and add ‘https://github.com/erlendsellie/priceanalyzer/’ as an integration (category). It will searchable as ‘priceanalyzer’. Click it, and select ‘Download this repository with Hacs’. Then restart Home Assistant, and go to the integrations page to configure it. It will then create a new sensor, sensor.priceanalyzer in your installation.
Takes the same input as the nordpool component, except for:
Pause / Abort: Add a switch entity to abort or pause PriceAnalyzer for the rest of the day, in case you see that it miscalculates, or that you want to override it. This can always be done by templating in HA, but it should be supported natively.
For the PriceAnalyzer / thermostat sensor: Create an Input Number, to use as a target temperature for the climate-entity/thermostat you want to control with priceanalyzer. Follow this to create an input number:
Then, import this blueprint, and choose your newly created input number, the priceanalyzer sensor, and the climate entity you want to control.
Now, whenever the price goes up or down, PriceAnalyzer will change the temperature based on the price.
Blueprint for the hot water heater sensor:
Add this to your configuration.yaml to debug the component.
logger:
default: info
logs:
nordpool: debug
custom_components.priceanalyzer: debug