Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Virtualsensor with hourly Price (e.g. Tibber) #923

Open
Thmas47051 opened this issue Jan 26, 2023 · 2 comments
Open

Virtualsensor with hourly Price (e.g. Tibber) #923

Thmas47051 opened this issue Jan 26, 2023 · 2 comments

Comments

@Thmas47051
Copy link

How to configure a virtual sensor to calculate the costs in a specific time? Like Power Consumption does.
I made a virtual sensor with val(in1)*val(in2) with in1=Power and in2=Price per kWh
The total consumtion (total price expected) is not calculated as expected.
any hints?
Example: https://www.photovoltaikforum.com/thread/191811-verst%C3%A4ndnisfrage-dynamischer-strompreis/?postID=2956600#post2956600
in VirtualInterpreter.php/generateData evaluates the formula, multiplied by the time, so i would expext the cumulated cost.
An hints?

@frankrichter
Copy link
Contributor

frankrichter commented Jan 26, 2023 via email

@Thmas47051
Copy link
Author

habe für heute minütlich die Preise gepusht - keine Änderung.
Merkwürdig: wenn ich als Formel nur val(in1) eingebe (aktuelle Leistung Haus), würde ich erwarten, dass der virtuelle Kanal exakt dem Kanal folgt. Es kommt aber nur Unsinn heraus.

mh-er added a commit to mh-er/volkszaehler.org that referenced this issue Apr 27, 2023
…zero"

I improved the solution due to the comment of andig.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants