HousePanel 2 Node Version

AI in dashboards is finally here! I have successfully integrated Chat GPT into HousePanel using the Open AI API. The code keeps a rolling context window of the last 25 events (or however many you set in the config file) and feeds that for context. In the customizer you add a new AI field to any tile and a TEXT field named “response”. The value of the AI field is set to the prompt and chat GPT will populate the response field. Behind the scenes I keep a second rolling context for noisy motion sensors and track the count and latest active motion. Finally I wired up the tools function to learn how to call the Hubitat hub to get info directly and to optionally control devices per the prompt.

In my early testing this worked great - I asked for a 4 sentence summary of activity in the home and “voila” I got it. Here's the screenshot of my custom tile outfitted with the AI features:
image

Here's another one where I asked for all devices associated with my office presented in a html table.

The action testing is still underway. This is next level stuff folks and I can’t wait to share it with the Hubitat world. My next post will show you some screen shots of how it works. The GitHub repo hasn’t yet been updated because I need to do more testing but I just couldn’t wait to tell everyone this is coming. To use it you’ll need an Open AI api key since this uses the bring your own key model. For now I use gpt-5.2 as the model with reasoning set to low. This gives fast results that are also very thoughtful.

Much more to come!

2 Likes