Where/how are tariffs defined Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Bostjan
Posts: 24
Joined: Thursday 21 January 2016 19:54
Target OS: Windows
Domoticz version:
Contact:

Where/how are tariffs defined

Post by Bostjan »

Hi,

I looked everywhere but I can't seems to find how to define the schedule for tariff 1 and tariff 2. Like higher tariff should be active in working days between 6:00 and 22:00 and lower tariff between 22:00 and 6:00 and weekends.

Thanks,
Bostjan Erzen
elmortero
Posts: 247
Joined: Sunday 29 November 2015 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9639
Location: Spain
Contact:

Re: Where/how are tariffs defined

Post by elmortero »

in webconsole:
Setup -> Settings -> Meters/Counters
There you can set the price per unit.
I don't know where to change the hours when to use T1 and T2
Bostjan
Posts: 24
Joined: Thursday 21 January 2016 19:54
Target OS: Windows
Domoticz version:
Contact:

Re: Where/how are tariffs defined

Post by Bostjan »

I was also able to found and define costs per kWh for lower and higher tariff, but still don't know how are tariffs defined, in time matter.
DomoHouse
Posts: 7
Joined: Thursday 03 November 2016 11:53
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Where/how are tariffs defined

Post by DomoHouse »

Hi,

In my case the tariff is reported by the smart electricity meter:

Usage1 = Power usage during night and weekends
Usage2 = Power usage during daytime

I suppose the same applies to your setup. Hope this helps!
Bostjan
Posts: 24
Joined: Thursday 21 January 2016 19:54
Target OS: Windows
Domoticz version:
Contact:

Re: Where/how are tariffs defined

Post by Bostjan »

Hi,

So tariff system in Domoticz is limited only for usage with smart electricity meter? Individual power meters throughout the house like wall switches that report energy counters to Domoticz can not use tariff system? But logs and graphs for such devices not only report energy usage, but also costs. Which tariff does then Domoticz use for that calculation, lower or higher?
Bostjan
Posts: 24
Joined: Thursday 21 January 2016 19:54
Target OS: Windows
Domoticz version:
Contact:

Re: Where/how are tariffs defined

Post by Bostjan »

In addition to my previous post.
I did calculation based on Domoticz info about usage and cost (screenshot) and figure out that costs are calculated using only T1...
Attachments
Capture.JPG
Capture.JPG (23.6 KiB) Viewed 5337 times
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Where/how are tariffs defined

Post by EdwinK »

Bostjan wrote:In addition to my previous post.
I did calculation based on Domoticz info about usage and cost (screenshot) and figure out that costs are calculated using only T1...
Too bad. I have a two phase meter (smart meter) and want to see the usage from both T1 and T2 (if possible the totals too), but when checking the json output for the meter I get this:

"Data" : "414644;450137;0;0;174;0",
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Bostjan
Posts: 24
Joined: Thursday 21 January 2016 19:54
Target OS: Windows
Domoticz version:
Contact:

Re: Where/how are tariffs defined

Post by Bostjan »

EdKo66 wrote:
Bostjan wrote:In addition to my previous post.
I did calculation based on Domoticz info about usage and cost (screenshot) and figure out that costs are calculated using only T1...
Too bad. I have a two phase meter (smart meter) and want to see the usage from both T1 and T2 (if possible the totals too), but when checking the json output for the meter I get this:

"Data" : "414644;450137;0;0;174;0",
You probably mean two tariff, not two phase meter. Anyway, the data you get from meter looks fine to me, usage in T1 is 414644 and T2 is 450137, while current power is 174.
But tariffs in your case are fundamentally part of smart meter's data, they are two independent data, that is why you have two tariffs right. My problem is that I thought that Domoticz can "divide" received usage data from wall switches etc. from single data (kWh) into T1 and T2. Or if not divide it in database level, at least do all calculations based on time schedule for T1 and T2.

Was I wrong and Domoticz can't do that or is it a bug?
salvacalatayud
Posts: 112
Joined: Monday 26 June 2017 21:16
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Spain
Contact:

Re: Where/how are tariffs defined

Post by salvacalatayud »

I've been searching and seems there is no way of changing what time and day is T1 and T2. In Spain night tariff starts at diferent time depending on what company you are, and weekend is not cheap.

Any idea?
kimot
Posts: 104
Joined: Saturday 25 November 2017 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: Where/how are tariffs defined

Post by kimot »

I think it's not such a difficult task.
Use the Electricity dummy P1 smart meter.
Then you must specify that the T1 or T2 tariff is currently running.

By LED on your electricity meter or use time plan for normal switch like me if your energy distributor use fixed times:
( I am sending this status to my sensor node )


2019-03-16-110131_1920x1080_scrot.png
2019-03-16-110131_1920x1080_scrot.png (167.67 KiB) Viewed 4053 times


Then your sensor must send USAGE1 or USAGE2 according current tarif.


Code: Select all

Electricity P1 smart meter

/json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=USAGE1;USAGE2;RETURN1;RETURN2;CONS;PROD

    IDX = id of your device (This number can be found in the devices tab in the column "IDX")
    USAGE1= energy usage meter tariff 1, This is an incrementing counter
    USAGE2= energy usage meter tariff 2, This is an incrementing counter
    RETURN1= energy return meter tariff 1, This is an incrementing counter
    RETURN2= energy return meter tariff 2, This is an incrementing counter
    CONS= actual usage power (Watt)
    PROD= actual return power (Watt)

USAGE and RETURN are counters (they should only count up).
For USAGE and RETURN supply the data in total Wh with no decimal point.
(So if your meter displays f.i. USAGE1= 523,66 KWh you need to send 523660)

You can see cost in report tab.

2019-03-16-110538_1920x1080_scrot.png
2019-03-16-110538_1920x1080_scrot.png (111.49 KiB) Viewed 4053 times
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
salvacalatayud
Posts: 112
Joined: Monday 26 June 2017 21:16
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Spain
Contact:

Re: Where/how are tariffs defined

Post by salvacalatayud »

kimot wrote: Saturday 16 March 2019 11:20 I think it's not such a difficult task.
Use the Electricity dummy P1 smart meter.
Then you must specify that the T1 or T2 tariff is currently running.

By LED on your electricity meter or use time plan for normal switch like me if your energy distributor use fixed times:
( I am sending this status to my sensor node )



2019-03-16-110131_1920x1080_scrot.png



Then your sensor must send USAGE1 or USAGE2 according current tarif.


Code: Select all

Electricity P1 smart meter

/json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=USAGE1;USAGE2;RETURN1;RETURN2;CONS;PROD

    IDX = id of your device (This number can be found in the devices tab in the column "IDX")
    USAGE1= energy usage meter tariff 1, This is an incrementing counter
    USAGE2= energy usage meter tariff 2, This is an incrementing counter
    RETURN1= energy return meter tariff 1, This is an incrementing counter
    RETURN2= energy return meter tariff 2, This is an incrementing counter
    CONS= actual usage power (Watt)
    PROD= actual return power (Watt)

USAGE and RETURN are counters (they should only count up).
For USAGE and RETURN supply the data in total Wh with no decimal point.
(So if your meter displays f.i. USAGE1= 523,66 KWh you need to send 523660)

You can see cost in report tab.


2019-03-16-110538_1920x1080_scrot.png
I see what you mean, but I can't find how to do it.

Created a p1 virtual meter but I don't know how to send the data from my "real" counter and how to set the timer

Thanks
salvacalatayud
Posts: 112
Joined: Monday 26 June 2017 21:16
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Spain
Contact:

Re: Where/how are tariffs defined

Post by salvacalatayud »

I managed to do it
Maciek90
Posts: 19
Joined: Friday 05 March 2021 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Where/how are tariffs defined

Post by Maciek90 »

I have the same problem. Can you describe how did you resolve it?
averter
Posts: 39
Joined: Thursday 24 February 2022 8:32
Target OS: Linux
Domoticz version: 2024.4
Contact:

Re: Where/how are tariffs defined

Post by averter »

The most ridiculous thing is that none of this is documented in domoticz wiki!
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Where/how are tariffs defined

Post by jvdz »

averter wrote: Saturday 16 November 2024 19:26 The most ridiculous thing is that none of this is documented in domoticz wiki!
Since you seem to have such a strong opinion about this: What's holding you back? ;-)
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Where/how are tariffs defined

Post by waltervl »

averter wrote: Saturday 16 November 2024 19:26 The most ridiculous thing is that none of this is documented in domoticz wiki!
When you react on an old topic you sometimes miss something... The most ridiculous thing is you did not see this part of the wiki
https://wiki.domoticz.com/Application_S ... r_Dividers
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
averter
Posts: 39
Joined: Thursday 24 February 2022 8:32
Target OS: Linux
Domoticz version: 2024.4
Contact:

Re: Where/how are tariffs defined

Post by averter »

@waltervl
Have seen it and sorry to say this but I still think that for the noninitiated it is extremely unclear. There's not even a web link to the P1 smart meter device so that one can become familiar with its internal structure that separates tariff1 vs 2.
It might be helpful to explain what was going through my mind as I was trying to use this feature. After looking at the "meter" settings I was expecting to be able to input "time" information about when T1/T2 started and ended, in addition to "costs" information. It seemed logical to me since it was tailored for a high vs low tariff. It never crossed my mind that the information about time had to be incorporated in a particular domoticz device.
I think that the process to calculate these costs is complex/depends of several factors that might vary from one user to another, such as type of tariff, how energy is being calculated inside of domoticz (including the type of device and if it is estimated or read directly), and how the price information will be obtained and sent to domoticz, etc. I think that the whole topic deserves a section with more diagrams, examples and perhaps even videos.
I know that this is a relatively new feature, so apologies for lashing out; I need to remind myself NOT to post comments after having spent hours trying to solve a problem; best to leave it cool down until the next day. :)
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Where/how are tariffs defined

Post by waltervl »

For a P1 meter the time for tarif change is defined by the energy supplier. So you do not have to do anything in Domoticz. When T1/T2 change is there T2 data is sent by the smart meter. instead of T1 data.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
averter
Posts: 39
Joined: Thursday 24 February 2022 8:32
Target OS: Linux
Domoticz version: 2024.4
Contact:

Re: Where/how are tariffs defined

Post by averter »

waltervl wrote: Saturday 23 November 2024 17:28 For a P1 meter the time for tarif change is defined by the energy supplier. So you do not have to do anything in Domoticz. When T1/T2 change is there T2 data is sent by the smart meter. instead of T1 data.
You see, that's again a difference between how you and I are interpreting a P1 smart meter inside of domoticz. You're probably referring to a physical device which can be interrogated via wifi and sent to domoticz?
While I am using a dummy virtual device https://wiki.domoticz.com/Dummy_for_vir ... mart_meter which receives data from a plugin which interrogates my solax inverter (see the "total grid energy" device here https://github.com/saidlm/Domoticz-Solax-plugin). The plugin is not set correctly, as it sends all of the energy to T1/R1. I've managed to fix it though using a dzvents script.
Although I'm now able to correctly see consumption and costs using this P1 smart meter, the plugin also has separate electrical counter devices, https://wiki.domoticz.com/Dummy_for_vir ... d_counter), which display energy consumed and sent to the grid, but these are either "usage" or "return" and so there is no way to specify if they're in T1/R1 or T2/R2 :(
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Where/how are tariffs defined

Post by waltervl »

If the Solar device is also monitoring your grid connection it should be the plugin that should have configuration attributes for changing T1/T2 times. So dont blaim core Domoticz for that... :-)

Also normal counters are not able to differentiate in T1/T2 tariffs.

T1/T2 tariffs are probably going to be unused in the future due to dynamic tariffs energy companies are promoting. Then you can use the dynamic price calculation.

Thinking of that: You can use dynamic price calculation now also. If you only have a fixed T1/T2 tarif you can make a virtual custom sensor and switch the tariff to T1 or T2 in that sensor with a dzvents script. Set that device as tariff device for dynamic cost calculation Then every energy sensor will use current tariffs. No need to split T1 and T2 in the P1 sensor.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest