-
Notifications
You must be signed in to change notification settings - Fork 1.1k
request for price/cost device (similar to kWh but with configurable currency code) #5544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How about using a custom sensor? |
What you might want to do is use the InfluxDB pusher and push the kWh (counter) and Price. Then you can create a chart with cost per hour/day |
No, a custom sensor is totally useless for this since after the end of the day it only shows min/max/avg and therefore can't be used for tracking costs over time. (it does not meet requirement 4 above) |
That is quite an extensive workaround. Dashticz might do the trick as well, or a python program. My point was to get it within Domoticz as a basic feature. |
Yes that's correct, that is with all sensors You can install InfluxDB/Grafana with docker compose and you be up in no time (once you have configured it) So we might need a new table to store hourly values and keep them (or keep then for xxx configurable days) |
I'm looking into this as I have exact same problem. I'm currently using incremental custom counters that update automatically when the main kwh counter update, in dzVents script:
This works well for normally incrementing kWh counters, but causes all kind of trouble if "local hinta=" result becomes negative. Instead of creating new device type, I thought I simply modify incremental counter (and perhaps regular custom counter?).. Changes needed are as listed by @WillemD61 above. |
Any progress on this ? |
Already working fine after my PR. Just create a custom sensor with your preferred unit (€, £, $) and a multiplier of 100 so you get cents... then just update with a dzvents script. Example using an incremental counter above. Incremental is perhaps slightly easier but could be a regular counter too. |
Or just "counter" or even "counter incremental", both can be set to custom. It depends on your dzVents code which is easiest to use. I'm using incremental counters. |
For Dutch users the Enever hardware in Domoticz could also be used when using a dynamic contract. |
This is an enhancement request for a dummy device that can be used to track prices and/or costs, positive and negative whereby the user can indicate the currency used.
With the increased/increasing focus on energy cost such a device is really missed in Domoticz. Currently workarounds have to be used such as storing such prices/costs on kWh devices.
It can be a simple device, i.e. no calculation based on tariffs as suggested in #2132.
Any calculation should be left to the user using dzVents scripts.
The device only needs to receive and display increasing, decreasing, positive and negative values, be able to display those in a graph and calculate daily totals for display in weekly, monthly and comparison graphs.
Currently one cannot store negative values on counter devices and the counter graphs cannot handle negative or even decreasing values. The only device that can handle it is a kWh device (General, kWh). The functionality of a kWH comes very close to the desired functionality of a cost device, but the new device should allow setting of the currency unit.
Required for a currency device ( and partly already possible on a kWh device):
This request is based on the analysis shown here https://www.domoticz.com/forum/viewtopic.php?p=296335#p296335 and the fact that I am tired of using kWh devices as workaround. It is confusing/annoying and pollutes my Domoticz setup. As said, with increasing focus on costs and increasing use of hourly electricity prices, solar power, battery storage (resulting in negative/decreasing values), I am sure many more people struggle with this.
The text was updated successfully, but these errors were encountered: