Hi guys. I’m new to the forum coming from Home Assistant community (“Grayson Peddie” is my name) and I have a question since I can’t start my topic in “Table Panel” subforum.
I have configured my table panel with three columns: Date, Sunrise, and Sunset.
The sunrise and sunset sensors are from Home Assistant, which interfaces with InfluxDB and InfluxDB interfaces with Grafana.
My expected result should be as follows:
Date Sunrise Sunset
-----------------------------------------------
August 5, 2018 07:01
August 5, 2018 07:00 20:32
August 4, 2018 07:00 20:32
Right now, mine looks like this:
Date Sunrise Sunset
-----------------------------------------------
August 5, 2018 07:01 -
August 5, 2018 07:00 -
August 5, 2018 - 20:32
August 4, 2018 - 20:32
August 4, 2018 07:00 -
The “Date” column is customized as YYYY MM, D
in Column Styles tab.
Here are the two queries in Metrics tab:
Queue 1:
SELECT "state" AS "Sunrise" FROM "sensor.sunrise" WHERE ("entity_id" = 'sunrise') AND $timeFilter
Queue 2
SELECT "state" AS "Sunset" FROM "sensor.sunset" WHERE ("entity_id" = 'sunset') AND $timeFilter
I did notice in Home Assistant dashboard that the current sunrise time is 07:01, so it seems like the data could be this instead:
Date Sunrise Sunset
-----------------------------------------------
August 5, 2018 07:01 20:32
August 4, 2018 07:00 20:32
…although I don’t know if either Grafana or InfluxDB could update the current sunrise time given the date.
And looking at the sunset sensor, the time appears to be 20:33 which is yesterday and not 08:32 which is today. I wonder how I can fix that to be more accurate… That issue would be in a separate forum/thread.
How do I go about combining the two queues so that they can be distinct?