Hi all,
I’m trying to create a query to summarize energy consuption by day.
The query works fine:
SELECT mean(“mean”)*24 FROM (SELECT mean(“value”) FROM “KWh” WHERE (“entity_id” = ‘pdc_pt_in_w’) AND $timeFilter GROUP BY time(5s) fill(linear) tz(‘Europe/Rome’) ) GROUP BY time(1d) fill(0) tz(‘Europe/Rome’)
I need to consider the results only where the entity id like “acs_prod” is equal to “1”.
How can achive this goal?
Best regards