i reccomend to just change the entity id back to what it was. So all your other stuff that used Nordpoo works as well. This Nordpool naming is pretty bad to be honest.
I follow this threat.
Last august Iāve also created a feature request:
In my specific case, my Vehicle charger was defect and it was switched. My entity has been changed in HA and the Entity ID in the app couldnāt be changed. Iāve configured it again, but my history has been lost now.
I hope there should be a nice feature available to have a way to change the value without loosing history.
How to keep history when replacing a device has been discussed before and there are suggested sullitions for this. I have not tried them myself, but i would create a new backup before testing this. Take a look at this thread: Replace entities and keep history (BREAKING CHANGE starting HA Core 2023.4) - #4 by e-raser
The entity changed the name because the source and the integration that uses this source gave it a new name. It is not possible for me to change the entity id back.
Hi All!
Iām sorry I havenāt maintained the integration for a while. Unfortunately canāt promise to have time in the near future as well.
Few recommendations so you arenāt so dependable of the integration logic:
- If you have enegy (kwh) sensor, use this. Only if you donāt have, use power (W) sensor. Reason is that the energy calculations are more precice
- Make a sensor with my integration and make unlimited amount of HAUtility Meter sensors for different periods you would like (all time, hourly, daily, two days, whatever you like).
I have seen all the ideas and request here and github, but just donāt have what it takes to implement these.
iām really thrilled that so many people found something, I thought was only my need , so useful. Now I feel a bit bad letting you all down not maintaining what I started. If anybody is interested in contributing and doing what needs to be done, I would gladly give all permissions in github to continue what i started. I mean, this is what opensource sould be in my view.
In my opinion this functionality is something that would be nice to see in Home Assistant core. It would make so much sense to have a cost/profit side in the energy management.
Maybe you found a solution already, but for showing previous data I use the history-explorer-card integration:
https://github.com/SpangleLabs/history-explorer-card
I had the same situation and I just found it. The config is in /config/.storage/core.config_entries
If you search for āelectricity_price_sensorā you will find your configs with your current sensor for pricing. I replaced it with new one and restarted HA and it looks okā¦
Hi everyone, Iāve setup about 27 devices (Meross Plugs) and I noticed the costs going up very quickly. Is that because Meross consumption uses Wh and this integration only works with devices using kWh? If so is there anyway to use energy consumption Devices that statistically use Wh?
Just for anyone else that had this problem. I think I solved it.
In dev tools -Statistics. I went into each sensorās settings and changed the unit from Wh to kWH. The statistics list still says Wh even after a reboot, however if you go back into the sensorās settings, you will see it has changed to kWH and the graph for the daily costs for each device is now working correctly!
Also I built an automation to zero the daily cost for all 27 devices which works a dream thanks to the service mentioned above and ChatGPT making all the typing out of 27 entities a doddle!
I like this integration but sadly it is producing lots of errors, and the cost is not updating as it should:
2025-02-24 08:05:21.055 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:21.056 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:21.056 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:21.057 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:21.057 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.570 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.571 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.572 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.572 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.573 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.573 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.588 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.589 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.590 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.590 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.591 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'
2025-02-24 08:05:23.591 ERROR (MainThread) [custom_components.dynamic_energy_cost.sensor] Failed to update energy costs due to an error: unsupported operand type(s) for +: 'decimal.Decimal' and 'floa
Any idea what the problem is? I just added the sensors (kWH) and set the price to my nordpool integration.
Have the same problem. No solution yet. I will share what i find
Hi, I finally made it work. I am not a pyton expert in any way but i looked in the file sensor.py and on line 383 the error msg is from. What I did was looking for mistakes on the try code above and could not find any wrong. What i think was the nutcracker suspecting hidden unwanted characters. I realigned line 353 so that 352 and 353 is aligned (I think it was a pipe character at line 353 that should not be there) and also I remove all trailing characters and spaces on line 354 after cost_increment. Donāt think the last did anything but any way hope it is some help for you
Hi, running into the same issue.
Am using the ENTSO-e integration to determine the hour prices from my energy supplier. Have tried both the kWh as the W sensors.
Have been trying to realign line 353 as you indicated (removing and adding all spaces upfront) but all my attemps had no success.
Could you share in more detail what you have changed?
Looking at the error, it seems more like a type cast error, but am also no Python expert.
Just discovered this integration, thanks a lot it saved me a big headache!
Is it not possible to edit the devices? I have created a template sensor to add transmission fees to the price and want to use the new sensor in my existing cost calculations, charts, and automations. I canāt see a way to edit the DEC devices or sensors to use the new price though, and that means I have to create new sensors and edit all my work
To address this, just donāt give your tariff units of $/kWh
. When it has the currency unit, HomeAssistant provides the integration a Decimal for monetary calculation accuracy, which unfortunately the integration doesnāt handle. You can also expose your tariff in a template sensor so that you can leave the units blank and have the integration work.
I cant seem to get this working. I have a sensor that is tracking my electricity costs in plain units now. I removed the $/kwh. My cost sensors arenāt accumulating data. I see them spiking when charging, but they all just report zero.
I am feeding it eat āwall_connector_session_energyā from my powerwall that is delivering energy in kwh.
any ideas where to look?
thanks!
For the ones interested: I made the dynamic pricing with Home Assistantās native functionality: Energy-Contract-Calculator/Dynamic Contract at main Ā· bvweerd/Energy-Contract-Calculator Ā· GitHub
English, Swedish, German and Dutch translation are completed.
You can now add languages through GitLocalize for the translations, click on BDVGitHub/dynamic_energy_cost | GitLocalize if you want to contribute to a translation.
Hi everyone, Iāve been looking for a functionality like this for quite a while. Great work you did! I got it to work some time ago, added an energy meter and the my hourly price and everything worked like a charm!
Recently I allowed somebody to charge their EV at my house. They asked me for the price and I thought: āgreat possibility to use the dynamic energy cost pluginā. By looking at the values and doing a quick calculation I realized the cost calculation is not correct for me. I did a spreadsheet calculation for today and can now see, that the values of the plugin are consistently higher than the spreadsheet data.
Can anyone help me to look at the values in the variables that are used by the Dynamic Energy Cost plugin?
Thank you very much!
Matthias
Hello alltogether, looking at the variable (ā¦hourly_energy_cost) I found some odd behaviour: The value rises during each hour, is being reset to zero at the full hour. but the next second it jumps up to around 4ct. and increases then steadily towards the end of the hour.
Is anyone else experiencing the same? Who can point me to the area in the code, where the reset is taking place?
Cheers Matthias