Nice! So the data could be made available. I am kind of new to HA. But ilI think it should be a sensor. I think it should be the same as with the solar power forcast. There they also have sensors for the forecast for the coming hours.
Created a first update with the current tariff info. See version 0.0.7
Please update to version 0.0.8
Looking very nice already! Only 2 questions.
- It seems to be that all the new entities are double?
- Would it be possible to also add the tarrifs for the next X hours? In the Zonneplan app I can see the tarrifs for the next (max) 24 hours. But I think the next 8 hours should be enough for my implementation.
Not sure what happened there. Are the additional entities “broken”? What you could try to do is removing the integration and re-adding it again. That should cleanup the double entities.
Will add the forecast for the next 8 hours. We have the tariff group (low, normal and high) and a tariff value.
Just curious, what kind of automation do you have in mind using this for? Or is it just that you want to see the forecast in HA
Will try to reinstall it, the additional entities are not broken but just double. So the tariff group and value both have a “_2” entities. And the device “Usage” is double. But both seem to work and give the correct values.
I would like to use it to determine when the best moment would be to charge my electric car. So depending on overproduction on solar power and/or low tariff on energy.
Thanks you for building this integration and expanding it to my needs
FYI: the sensor.current.tariff does not have the correct unit of measure to use within the energy dashboard, see error message:
Unexpected unit of measurement
Translation Error: The intl string context variable "currency" was not provided to the string "The following entities do not have the expected units of measurement ''{currency}/kWh'', ''{currency}/Wh'' or ''{currency}/MWh'':"
* sensor.current_tariff (€)
Would be nice if that could be changed in a next version release.
I added some forecast sensors to current main version. Could you check if these work for you? GitHub - fsaris/home-assistant-zonneplan-one: Unofficial Zonneplan ONE + connect integration for Home Assistant
Regarding the currency
message. Did you set your currency on Configuration -> Settings
?
Nice! The tariff and tariff group for next 8 hours are werking great!
Now I can start to try make a nice automation arround it! Thanks again!
Regarding the unit of measure; I do have set my currency in the settings set to EUR.
I think the issue is that either Zonneplan app of yourself are adding a unit of measeure “currency” to the entity “current tariff”. The standard energy dashboard intergration in HA wants a unit of measure "currency / kWh or Wh or mWh. In this case it should be kWh.
I encountered another issue, not high priority, maybe you can look at this when you got time for it. Thx in advance.
This error originated from a custom integration.
Logger: custom_components.zonneplan_one.coordinator
Source: custom_components/zonneplan_one/coordinator.py:116
Integration: Zonneplan ONE (documentation, issues)
First occurred: 23:06:29 (2 occurrences)
Last logged: 23:06:29
Could not find highest_measured_power_value of pv_installation.0.meta.highest_measured_power_value
Could not find highest_power_measured_at of pv_installation.0.meta.highest_power_measured_at
This issue is dissolved. Thx!
yes, indeed. should be €/kWh
. I just pushed a fix for that.
Could be that you now need to “update” the statistics because of the unit change. Go to Link to Developer Tools: Statistics – My Home Assistant
This seems to be working correctly. Thanks.
Another request; could you also retrieve the price for gas? I think it should have a unit of measure €/M3.
The price for gas changes once a day, so not per hour like the energy.
Please check the new release
Installed the new version and it works! Thanks a lot again.
Now I have a complete energy monitor including all cost components.
Any way to create a sensor to keep track of the total production during 1 year, or reset the date of the yield_total sensor?
Hi minifranske,
The integration is working fine and reliable for a longer period of time now!
Is there a possibily to integrate the ‘stroomoverschot’ value? This is presented in the app but cannot find it in the integration right now.
EDIT: I think it is already in the integration if I calculate the difference between Consumtion and Average. The average value is negative whenever there is more production then consumption. Consumption is 0 when there is overproduction. So the difference between those 2 should be the ‘overschot’!
@minifranske
Ik ben op zoek naar de API van de app om middels scripting dagtotalen automatisch te loggen . Nu heb ik de HA component van github gedownload en probeer middels ‘reverse engineering’ de API te achterhalen
Is het ook mogelijk dat je mij deze info (rechtstreeks) mailt ?
Groet, John