Enabling logging does not help much:
logger:
logs:
homeassistant.components.rest: debug
2025-12-18 08:48:43.266 DEBUG (MainThread) [homeassistant.components.rest.data] Data fetched from resource: {
"dateTime": "2025-12-18T14:00:00Z",
"regionCode": "us",
"indexes": [
{
"code": "usa_epa_nowcast",
"displayName": "AQI (US)",
"aqi": 59,
"aqiDisplay": "59",
"color": {
"red": 1,
"green": 1
},
"category": "Moderate air quality",
"dominantPollutant": "pm25"
}
],
"pollutants": [
{
"code": "o3",
"displayName": "O3",
"fullName": "Ozone",
"concentration": {
"value": 14.74,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Ozone is created in a chemical reaction between atmospheric oxygen, nitrogen oxides, carbon monoxide and organic compounds, in the presence of sunlight.",
"effects": "Ozone can irritate the airways and cause coughing, a burning sensation, wheezing and shortness of breath. Additionally, ozone is one of the major components of photochemical smog."
}
},
{
"code": "pm10",
"displayName": "PM10",
"fullName": "Inhalable particulate matter (\u003c10µm)",
"concentration": {
"value": 36.57,
"units": "MICROGRAMS_PER_CUBIC_METER"
},
"additionalInfo": {
"sources": "Main sources are combustion processes (e.g. indoor heating, wildfires), mechanical processes (e.g. construction, mineral dust, agriculture) and biological particles (e.g. pollen, bacteria, mold).",
"effects": "Inhalable particles can penetrate into the lungs. Short term exposure can cause irritation of the airways, coughing, and aggravation of heart and lung diseases, expressed as difficulty breathing, heart attacks and even premature death."
}
},
{
"code": "pm25",
"displayName": "PM2.5",
"fullName": "Fine particulate matter (\u003c2.5µm)",
"concentration": {
"value": 13.89,
"units": "MICROGRAMS_PER_CUBIC_METER"
},
"additionalInfo": {
"sources": "Main sources are combustion processes (e.g. power plants, indoor heating, car exhausts, wildfires), mechanical processes (e.g. construction, mineral dust) and biological particles (e.g. bacteria, viruses).",
"effects": "Fine particles can penetrate into the lungs and bloodstream. Short term exposure can cause irritation of the airways, coughing and aggravation of heart and lung diseases, expressed as difficulty breathing, heart attacks and even premature death."
}
},
{
"code": "co",
"displayName": "CO",
"fullName": "Carbon monoxide",
"concentration": {
"value": 300.13,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Typically originates from incomplete combustion of carbon fuels, such as that which occurs in car engines and power plants.",
"effects": "When inhaled, carbon monoxide can prevent the blood from carrying oxygen. Exposure may cause dizziness, nausea and headaches. Exposure to extreme concentrations can lead to loss of consciousness."
}
},
{
"code": "so2",
"displayName": "SO2",
"fullName": "Sulfur dioxide",
"concentration": {
"value": 0.41,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Main sources are burning processes of sulfur-containing fuel in industry, transportation and power plants.",
"effects": "Exposure causes irritation of the respiratory tract, coughing and generates local inflammatory reactions. These in turn, may cause aggravation of lung diseases, even with short term exposure."
}
},
{
"code": "no2",
"displayName": "NO2",
"fullName": "Nitrogen dioxide",
"concentration": {
"value": 14.55,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Main sources are fuel burning processes, such as those used in industry and transportation.",
"effects": "Exposure may cause increased bronchial reactivity in patients with asthma, lung function decline in patients with Chronic Obstructive Pulmonary Disease (COPD), and increased risk of respiratory infections, especially in young children."
}
}
]
}
2025-12-18 08:48:43.269 WARNING (MainThread) [homeassistant.components.rest.util] JSON result was not a dictionary or list with 0th element a dictionary
2025-12-18 08:48:43.271 DEBUG (MainThread) [homeassistant.components.rest.data] Data fetched from resource: {
"dateTime": "2025-12-18T14:00:00Z",
"regionCode": "us",
"indexes": [
{
"code": "usa_epa_nowcast",
"displayName": "AQI (US)",
"aqi": 59,
"aqiDisplay": "59",
"color": {
"red": 1,
"green": 1
},
"category": "Moderate air quality",
"dominantPollutant": "pm25"
}
],
"pollutants": [
{
"code": "o3",
"displayName": "O3",
"fullName": "Ozone",
"concentration": {
"value": 14.74,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Ozone is created in a chemical reaction between atmospheric oxygen, nitrogen oxides, carbon monoxide and organic compounds, in the presence of sunlight.",
"effects": "Ozone can irritate the airways and cause coughing, a burning sensation, wheezing and shortness of breath. Additionally, ozone is one of the major components of photochemical smog."
}
},
{
"code": "pm10",
"displayName": "PM10",
"fullName": "Inhalable particulate matter (\u003c10µm)",
"concentration": {
"value": 36.57,
"units": "MICROGRAMS_PER_CUBIC_METER"
},
"additionalInfo": {
"sources": "Main sources are combustion processes (e.g. indoor heating, wildfires), mechanical processes (e.g. construction, mineral dust, agriculture) and biological particles (e.g. pollen, bacteria, mold).",
"effects": "Inhalable particles can penetrate into the lungs. Short term exposure can cause irritation of the airways, coughing, and aggravation of heart and lung diseases, expressed as difficulty breathing, heart attacks and even premature death."
}
},
{
"code": "pm25",
"displayName": "PM2.5",
"fullName": "Fine particulate matter (\u003c2.5µm)",
"concentration": {
"value": 13.89,
"units": "MICROGRAMS_PER_CUBIC_METER"
},
"additionalInfo": {
"sources": "Main sources are combustion processes (e.g. power plants, indoor heating, car exhausts, wildfires), mechanical processes (e.g. construction, mineral dust) and biological particles (e.g. bacteria, viruses).",
"effects": "Fine particles can penetrate into the lungs and bloodstream. Short term exposure can cause irritation of the airways, coughing and aggravation of heart and lung diseases, expressed as difficulty breathing, heart attacks and even premature death."
}
},
{
"code": "co",
"displayName": "CO",
"fullName": "Carbon monoxide",
"concentration": {
"value": 300.13,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Typically originates from incomplete combustion of carbon fuels, such as that which occurs in car engines and power plants.",
"effects": "When inhaled, carbon monoxide can prevent the blood from carrying oxygen. Exposure may cause dizziness, nausea and headaches. Exposure to extreme concentrations can lead to loss of consciousness."
}
},
{
"code": "so2",
"displayName": "SO2",
"fullName": "Sulfur dioxide",
"concentration": {
"value": 0.41,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Main sources are burning processes of sulfur-containing fuel in industry, transportation and power plants.",
"effects": "Exposure causes irritation of the respiratory tract, coughing and generates local inflammatory reactions. These in turn, may cause aggravation of lung diseases, even with short term exposure."
}
},
{
"code": "no2",
"displayName": "NO2",
"fullName": "Nitrogen dioxide",
"concentration": {
"value": 14.55,
"units": "PARTS_PER_BILLION"
},
"additionalInfo": {
"sources": "Main sources are fuel burning processes, such as those used in industry and transportation.",
"effects": "Exposure may cause increased bronchial reactivity in patients with asthma, lung function decline in patients with Chronic Obstructive Pulmonary Disease (COPD), and increased risk of respiratory infections, especially in young children."
}
}
]
}
One thing I missed to mention: it works for “constants”, like $.pollutants[?(@.code == "pm25")], but doesn’t work for “variables”: $.pollutants[?(@.code == @root.indexes[0].dominantPollutant)]
Guess this is some limitation of underlying parsing library.