Since a few weeks we have solar panels added to our house. We’re monitoring energy / gas / water usage and production using the P1 Monitor integration which is working great!
The optimizer is the Solar Edge and this has been integrated in HA with the mod bus integration via HACS.
All is working fine so far! The panels are installed on the 21st of September but the return to grid costs are 0 that day. The entity is showing that it is returning solar to the grid but the return costs are set to 0. From the 5th of October the return to grid costs are showing fine.
Today is working fine as you can see in above image.
I’ve also checked the History from the Energy Production Price - High entity and this hasn’t been 0 from the 21st of September till the 4th of October:
With the limited information my best guess is you used an entity for the price per kWh that failed and HA could not estimate the price. You may be able to fix the data by going to the statistics tab in the developer tools menu. Look at the far right column for a little ramp.
That depends. If your electric price is static then I would just use the option to set a static price. Otherwise I would set something to notify me if the entity had any “unusual” values. If you decide not to use a static price shoEDIT:w us the yaml for the price entity. Then we can see if there are any possible issues.
EDIT: My GAS prices come from scraping data from a web page. I haven’t had issues but since the way I get data might not be reliable I created a helper value. Then I created an automation to update the helper value whenever the state of the scrape sensor is updated. I added a few conditions in an attempt weed out unreliable values such as “Unavailable”, “None”, and 0. I don’t believe those conditions are needed but I didn’t want to find out the hard way. Now I use the helper as the price entity for gas.
alias: HVAC GAS set helper value
description: ""
trigger:
- platform: state
entity_id:
- sensor.mi_gas_cost_scrape
condition:
- condition: template
value_template: "{{ states.sensor.sensor.mi_gas_cost_scrape.state |float !=0 }}"
- condition: not
conditions:
- condition: state
entity_id: sensor.mi_gas_cost_scrape
state: unavailable
- condition: state
entity_id: sensor.mi_gas_cost_scrape
state: unknown
action:
- service: input_number.set_value
data:
value: "{{ states.sensor.mi_gas_cost_scrape.state |float }}"
target:
entity_id: input_number.gas_cost_usd_ft3_helper
mode: single