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

To achieve this, you don’t need the template sensor but instead create 3 measureit time configurations.
You would name the first one ‘Glucose low’ and use this template as a condition:

 {{ states('sensor.emily_glucose_value') | float < 5.5 }}

Then create similar configs for InRange and High.

This is a great measuring tool!
But can we nest/combine (multiple) conditions?

I can not make it work for 2 conditions:

attr(‘media_player.vsx933’, ‘source’ == ‘Video 2’)
and
attr(‘media_player.vuduo2’, ‘source’ == ‘That Channel’)
Only when both are met the counter may get activated.

How can I make this work?

Yes you can, I suggest to test your templates in the Template under Developer Tools.
I guess it should be something like this:

{{ state_attr('media_player.vsx933', 'source') == 'Video 2' and state_attr('media_player.vuduo2', 'source') == 'That Channel' }}
1 Like

Great!

I think the quotes did not play nice on me, it is working now.

Thank you.

:santa: Santa is coming :christmas_tree:and 2025 :partying_face:

@danieldotnl
Many thanks for your handy MeasureIt integration, and for the support throughout the year.
Merry Christmas and all the best for the New Year!

1 Like