#Historical data
1 messages · Page 1 of 1 (latest)
I don't think so. You could however create a script that outputs the historical data of a temperature sensor and expose that script to Assist. Provide a good description in the script, that typically helps for AI to pick it up and use it correctly.
Here's something similar for a weather forecast.
https://community.home-assistant.io/t/weather-forecast-access-for-llm-eg-chatgpt-or-gemini/803166
Introduction Since some time Large Language Models like OpenAI/ChatGPT or Gemini can be used for voice commands, they can even control your house now. 2024.12 will even bring an option to prefer local processing of the command first, so the LLM will act as a fallback. This opens a whole new world of possibilities. If you expose a script to Assi...
Grand thank you, I’ll have a look into that tonight
At a closer look, this might not be as trivial as I thought it to be. You can only fetch historical data via the SQL integration (https://www.home-assistant.io/integrations/sql/#state-of-an-entity-x-time-ago). This makes it rather static, as you'd have to create a new SQL query sensor with a fixed input sensor and a fixed time range. Also the SQL integration is designed to output 1 value not an array of multiple values. I think that route is rather hacky.