I am looking for a way to export the current state of my house in a human readable format. So something like (but not limited to):
In the Living room are 3 lights on, the television is on and is playing Netflix.
The temperature in the living room is 18 degrees celsius.
In the bedroom the lights are off
I want to use this as a pre-prompt for a Large Language Model and be able to ask questions about my house. I have no idea where to start from a Home Assistant perspective. I thinking about a way to get an export of specific entities from my house in a yaml format and process it from there to something more suitable for an LLM.
I was searching for the exact same thing! My goal was also to use Large Language Models (LLMs) to help generate automations. I couldn’t find an existing solution, so I ended up writing a small script that might be just what you’re looking for.
The script connects to Home Assistant (API), allows you to select specific entities/endpoints (like states, services, or events), and exports the data into JSON format. It’s designed to make your home data easy to process and feed into an LLM for further analysis or automation suggestions.