martinarva / dynamic_energy_cost

55 stars 12 forks source link

reopen: calculated price is much to high. #37

Open kiwibenis opened 1 month ago

kiwibenis commented 1 month ago

I am facing likely the same issue; calculated price is much to high. (https://github.com/martinarva/dynamic_energy_cost/issues/18)

Version: 0.5.0 Using Tibber, price is €/kWh Measured with homematic HMIP-PSM in W Energy usage sensor on this is in Wh, so not working for me

state_class: measurement
price_level: EXPENSIVE
max_price: 0.339
avg_price: 0.254
min_price: 0.181
off_peak_1: 0.267
peak: 0.223
off_peak_2: 0.321
unit_of_measurement: EUR/kWh
icon: mdi:currency-usd
friendly_name: Tibber Pulse Home Electricity price
state_class: measurement
interface_id: homematic.HmIP-RF
address: 003AA0C9A1A7B6:6
model: HmIP-PSM-2 QHJ
entity_type: generic
parameter: POWER
function: null
value_state: valid
unit_of_measurement: W
device_class: power
friendly_name: Garage Steckdose Power

The Dynamic Energy Costs sensors for the device are looking like: grafik

With a usage of 3898,2 Wh (3,8kWh) grafik

In total the costs should be around 0,80€

_Originally posted by @kiwibenis in https://github.com/martinarva/dynamic_energy_cost/issues/18#issuecomment-2231715614_

Erwiiinst commented 1 month ago

It looks like the calculated price with a power sensor that registers import and export goes wrong. When using separated energie import and export sensors the total is different but seams also not correct.

Erwiiinst commented 1 month ago

Seams the import energy cost sensor is calculating right. Although, almost identical as the output of a commercial app. The export energy cost sensor seams to calculate high total energy production. These both sensors are generated with a total energy import en export sensor.

kiwibenis commented 1 month ago

It looks like the calculated price with a power sensor that registers import and export goes wrong. When using separated energie import and export sensors the total is different but seams also not correct.

I do not get it what you are trying to say. My Power Sensor (HMIP-PSM-2) is operating in consume-mode and not even showing that it could be operating in injection mode.