Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105851

List, select/reject attributes, mathematical operations

$
0
0

Hi all, thanks in advance!

Im trying to get a list of entitles, their state, and selected attributes or reject specific ones. While also doing mathematical evaluations as needed.

Sensor.baby_feeding_1 [state] 2 (oz) [attributes] time (00:30) , duration (00:30:00)
Sensor.baby_feeding_2 [state] 1.2 (oz) [attributes] time (03:30) , duration (00:42:00)
Sensor.baby_feeding_3 [state] 1.5 (oz) [attributes] time (06:30) , duration (00:35:00)
Many more entries but you get the idea

1st scenario) In the above I’d like to list feeding times between 03:30 and 06:30 without the duration attribute
2nd scenario) In the above I’d like to sum the total oz , as well as duration (total)
3rd scenario) In the above I’d like to count the total feedings for the day

I KNOW thats quite a bit, but, figured it would be better to ask all at once than separate posts.

Again, I really appreciate the assist!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105851

Trending Articles