Page 1 of 2

Where/how are tariffs defined

Posted: Monday 27 February 2017 11:58
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

Re: Where/how are tariffs defined

Posted: Monday 27 February 2017 12:11
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

Re: Where/how are tariffs defined

Posted: Monday 27 February 2017 20:16
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.

Re: Where/how are tariffs defined

Posted: Tuesday 28 February 2017 10:39
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!

Re: Where/how are tariffs defined

Posted: Wednesday 01 March 2017 12:58
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?

Re: Where/how are tariffs defined

Posted: Wednesday 01 March 2017 20:30
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...

Re: Where/how are tariffs defined

Posted: Wednesday 01 March 2017 21:14
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",

Re: Where/how are tariffs defined

Posted: Thursday 02 March 2017 8:54
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?

Re: Where/how are tariffs defined

Posted: Sunday 10 March 2019 19:11
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?

Re: Where/how are tariffs defined

Posted: Saturday 16 March 2019 11:20
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 6211 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 6211 times

Re: Where/how are tariffs defined

Posted: Thursday 22 October 2020 17:37
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

Re: Where/how are tariffs defined

Posted: Friday 23 October 2020 18:38
by salvacalatayud
I managed to do it

Re: Where/how are tariffs defined

Posted: Friday 05 March 2021 23:52
by Maciek90
I have the same problem. Can you describe how did you resolve it?

Re: Where/how are tariffs defined

Posted: Saturday 16 November 2024 19:26
by averter
The most ridiculous thing is that none of this is documented in domoticz wiki!

Re: Where/how are tariffs defined

Posted: Saturday 16 November 2024 19:57
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? ;-)

Re: Where/how are tariffs defined

Posted: Saturday 16 November 2024 23:04
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

Re: Where/how are tariffs defined

Posted: Saturday 23 November 2024 11:20
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. :)

Re: Where/how are tariffs defined

Posted: Saturday 23 November 2024 17:28
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.

Re: Where/how are tariffs defined

Posted: Sunday 24 November 2024 10:58
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 :(

Re: Where/how are tariffs defined

Posted: Sunday 24 November 2024 11:19
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.