MeasureIt: Measure all you need based on time and templates!

You need to convert power to energy. If your device doesn’t provide an energy sensor, you can look into this integration.
You can then add the resulting energy sensor as a source sensor in MeasureIt to generate the sensors per day/week/month.
Hope this helps!

1 Like

I’m using MeasureIt in several areas - and I love it. Thank you @danieldotnl a lot for provding it

Since I have quite some MeasureIt counters I would like to ask:
Is there a way to see or even edit/change the template which is used for a MeasureIt counter?

I think for the timers it’s easily possible.

Thanks for the great integration.

I’m trying to use it to calculate my HVAC cooling efficiency. I have two MeasureIt sensors:

  • time (counts how long the HVAC action is ‘cooling’),
  • sensor (measures the temperature change while HVAC action is ‘cooling’).
    I then divide the two (sensor / time) in a helper to get the degrees / hour approximating the HVAC efficiency.

Everything works while the AC is running and the temperature is falling. But there are situations where after hitting the setpoint, the AC turns off. It then turns on again once the temperature rises 1 degree above the setpoint.
Unfortunately, this causes the second MeasureIt entity to jump into positive values, even though the temperature change didn’t happen while the AC was running.

I think I need to have an entity that saves the temperature when the AC turns on, checks it again once the AC turns off and saves the difference to a running tally. Sort of like MeasureIt does.

Any ideas if I can use MeasureIt or do I need to use an automation to achieve this? Or do I need to look into template sensors?

I’m interested to hear if this is possible as well, with this integration. If not, it is definitely possible with a trigger-based template sensor. Create a new post if you end up needing to go that route and I can help. I don’t want to detract from this thread.

Also shout out to the OP for his other great integration multiscrape. Keep up the great work!

1 Like

It sounds like a scenario that should work. So I tried to write a unit test that imitates your scenario but I cannot reproduce it.

Please check if the following is accurately representing what you see happening, and if not, please correct it or tell me where I’m wrong:

measureit sensor: sensor.airco_temp_change_hour
airco_set_point: 21 (i'm thinking celcius :))

current_temp = 22
airco_status = cooling

sensor.airco_temp_change_hour == 0

current_temp = 21
airco_status = standby

sensor.airco_temp_change_hour == -1

current_temp = 22
airco_status = cooling

sensor.airco_temp_change_hour == -1

current_temp = 21
airco_status = standby

sensor.airco_temp_change_hour == -2