Daily Energy usage cost

Moderator: leecollings

MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Daily Energy usage cost

Post by MikeF »

Run it at the command line (e.g., python </path to script/>energy_cost.py ) and see if you get any errors.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Daily Energy usage cost

Post by EdwinK »

When I run the script from command line there are no errors.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Daily Energy usage cost

Post by EdwinK »

These are the costs I find at the Eneco site.

fixed = 0 # fixed cost in euro
unit = 0.2032 # unit cost in eurocents
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Daily Energy usage cost

Post by MikeF »

Wow, that's cheap! :o
My unit rate is 13.94p = 16.03 cents (approx.)
- are you sure your rate isn't 20.32 cents? (my script divides by 100, to convert to pounds / euros)

Mike
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Daily Energy usage cost

Post by EdwinK »

Yes, you are right.

€ 0,2271 Per kwh High
€ 0,2130 Per kwh Low
Fixed costs € 3,46 month
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Daily Energy usage cost

Post by astrapowerrr »

Edwink
I have also toon can i copy your script so i can change it to my own costs.
I am very interested in using daily cost just like toon.
And use this in dashticz too.

Can you help me with this one?
garethiowc
Posts: 28
Joined: Sunday 03 December 2017 23:02
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Daily Energy usage cost

Post by garethiowc »

Hi All,

recently rebuild my computer and have run into the following problem -

Code: Select all

/usr/bin/python2.7  energy_cost.py
Traceback (most recent call last):
  File "energy_cost.py", line 36, in <module>
    kW = domoticzread(OwlIdx, 'CounterToday')
  File "energy_cost.py", line 32, in domoticzread
    jsonData = json.loads(response.text)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
any ideas?
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Daily Energy usage cost

Post by simon_rb »

This looks good.

I am looking for a way to calculate the cost which takes into account dual tariffs like Economy 7? Some how add a time calculation into the equation or rely on a dummy switch/VAR which could be timed with the ECO 7 timings?

Would also love the monthly cost also..

Any help would be great.

Many Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest