Hello Ingo and all the other
In the view “Tibber Einstellungen” from Ingo are some sensor with the unit “W”:
Überschuss
Laden wenn Überschuss kleiner als
I did not find it in any automation. And I ask myself, is it good to charge the battery with this fine level? The automation can say allways on and off…
Hi guys, i’ve been using the Tibber nodes for quite some time but now i would like to schedule the runinng of my vacuum, based on the lowest prices of the day. Is there a way to start the cycle 1 hor before the lowest hour, so that after the cycle of vacuuming, the robot gets charged within the cheapest timeframe??
My Sensor stopped working a few days ago, so i decided to spend some time to fix it today. Luckily i was able to do it.
Here is the updated code for the multiscrape-sensor:
multiscrape:
- name: HA scraper
resource: https://tibber.com/de/strompreisentwicklung
scan_interval: 3600
sensor:
- unique_id: tibber_strompreisentwicklung_website_text
name: tibber_strompreisentwicklung_website_text
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.no-padding > div > div > div > div > div > div > div > h2 > span"
attributes:
- name: tibber_price_preview_full_text
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div"
- name: tibber_price_preview_week_number
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.no-padding > div > div > div > div > div > div > div > h2 > span"
- name: tibber_price_preview_week_short_state
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.no-padding > div > div > div > div > div > p"
- name: tibber_price_preview_header_country
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div > div > h2 > div > h2 > span"
- name: tibber_price_preview_text_prices
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div > div > p:nth-child(2)"
- name: tibber_price_preview_text_background_1
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div > div > p:nth-child(3)"
- name: tibber_price_preview_text_background_2
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div > div > p:nth-child(4)"
- name: tibber_price_preview_text_background_3
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div > div > p:nth-child(5)"
- name: tibber_price_preview_text_background_4
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div > div > p:nth-child(6)"
- name: tibber_price_preview_text_summary
select: "#app-root > div.jsx-850a60188453b536.app-container > div > section > div > div:nth-child(3) > div > div > div > div.Blocks.py-xl > div > div > div > p:nth-child(7)"
I´ve created a template-switch with the following code to tell my system if it should charge from grid or not:
{% set min_price = state_attr("sensor.electricity_price_wester_esch_26b","min_price") | float(default=0) %}
{% set max_price = state_attr("sensor.electricity_price_wester_esch_26b","max_price") | float(default=0) %}
{% set price = states("sensor.electricity_price_wester_esch_26b") | float(default=0) %}
{% set price_range = max_price - min_price %}
{% set price_above_min = price - min_price %}
{% set price_below_max = max_price - price %}
{% set price_level = (price_above_min / price_range) * 100 %}
{% set price_difference_to_max = (price_below_max / price_range) * 100 %}
{% set price_min_tomorrow = (states("sensor.template_tibber_price_min_tomorrow") | float(default=0.3) * 1.2) | float(default=0) %}
{% set house_power = states("sensor.senec_house_power") | int(default=0) %}
{% set solar_power = states("sensor.senec_solar_generated_power") | int(default=0) %}
{% set solar_energy_expected = states("sensor.solar_restproduktion_heute") | float(default=0) %}
{% set charge_from_grid_below_expected_energy = states("input_number.laden_bei_restproduktion_unter") | float(default=0) %}
{% if solar_power < house_power and price_difference_to_max > 50 and solar_energy_expected < charge_from_grid_below_expected_energy and price < price_min_tomorrow %}
true
{% else %}
false
{% endif %}
The logic behind this is:
IF i get less power from solar then my house uses (so no energy would be fed into battery)
AND on a scale from min_today_price to max_to_price the current price is more then 50% away from the max_price
AND the expected solar energy for today is below an input_number-value (for me: 15 kWh)
AND the current price is lower then the lowest price tomorrow
With an automation i control my “load from grid”-switch for my battery. Sadly i have no option to control the speed that the battery charges with.