Page 1 of 1
Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 29 July 2025 13:29
by Jordi1005
Hi all,
I’m fairly new to Domoticz and working on a little home automation setup. Lately, I’ve come across loads of AI tools, like language models and image/text generators, and I’m wondering if anyone here has tried plugging any of those into Domoticz to boost automation or sensor management?
Does it make sense to use AI for things like analysing surveillance data, automating responses, or creating smart reports directly within Domoticz? If anyone’s had a dabble, even just a simple setup, I’d be really interested to hear how you got on.
I’m keen to know how you’d marry a solid home automation system with these new AI bits without making things overly complicated or unstable.
Cheers in advance for any advice!
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 29 July 2025 15:13
by waltervl
I would suggest you ask AI for that....

The answer I got was:
That’s a great question, Walter! Integrating AI with **Domoticz** can definitely open up some powerful possibilities, especially for:
###

Surveillance Analysis
Using AI models (like YOLO, OpenCV, or even cloud-based services) to:
- Detect people, vehicles, or unusual activity in camera feeds.
- Trigger Domoticz events (e.g., turn on lights, send alerts) based on detection.
- Filter out false positives (e.g., pets, shadows) to reduce noise.
###

Automated Responses
AI can help:
- Adjust heating, lighting, or blinds based on learned patterns or weather forecasts.
- Respond to voice commands more intelligently (e.g., via Home Assistant + Domoticz bridge).
- Predict and preemptively act on sensor data (e.g., water leak detection triggering shutoff valves).
###

Smart Reporting
You could use AI to:
- Summarize sensor logs into daily/weekly reports.
- Detect anomalies in energy usage or temperature trends.
- Generate natural language summaries (e.g., “The living room was unoccupied for 80% of the day”).
---
###

How to Get Started
If you're curious to experiment, here are a few entry points:
- **Node-RED**: Acts as a bridge between Domoticz and AI services (like OpenAI, TensorFlow, or Hugging Face).
- **Python scripts**: Domoticz supports scripting, so you can run AI models locally or via API.
- **MQTT**: Use it to send sensor data to an external AI service and receive actionable insights.
---
I see no use case for myself except for "Detect anomalies in energy usage or temperature trends."
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 29 July 2025 15:51
by HvdW
I'm using AI for all my dzVents solutions nowadays.
Even more, nowadays when I find an API I ask AI if it can write a script to display the data.
Lately I display data in text sensors.
Here is an example for data from meteoserver.nl which is queried every 2 hours (free)

- Screenshot_20250616_235534_Firefox.jpg (358.64 KiB) Viewed 750 times
It calculates the expected sun radiation using a formula that accounts for low, medium and high cloud coverage.
All made up by AI.
Is it necessary? No.
Is it fun? Yes
From the first setup to completion like I wanted it took a bit more than 1 hour.
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 29 July 2025 16:03
by waltervl
HvdW wrote: ↑Tuesday 29 July 2025 15:51
Lately I display data in text sensors.
This will let your database grow rapidly!! check the Light/Switches log settings to minimize this (default 30 days)
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 29 July 2025 16:08
by HvdW
waltervl wrote: ↑Tuesday 29 July 2025 16:03
HvdW wrote: ↑Tuesday 29 July 2025 15:51
Lately I display data in text sensors.
This will let your database grow rapidly!! check the Light/Switches log settings to minimize this (default 30 days)
Thanks Walter.
Tbh I didn't realize that.
Set it to 10 days.
Tomorrow I'll see the size difference of my domoticz.db
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 29 July 2025 16:25
by FireWizard
Hi,
A couple of years ago I used Tensorflow in combination with intrusion detection.
This was a Node-RED application with a MQTT link to Domoticz.
Domoticz presented the "Alerts", if a person on camera had been detected in a specific area and was responsible for
activation/deactivation of specific (camera) zones.
See a brief description:
viewtopic.php?p=268132&hilit=intrusion#p268132
This can also be used, if you want to use "Baby Monitoring" or similar things.
In general, AI combined with camera's, is quite common nowadays.
I abandoned the project, because I used it in a Node-RED instance, installed in a FreeBSD (TrueNAS) jail.
Unfortunately newer versions of Tensorflow did not support FreeBSD.
Regards
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 29 July 2025 21:44
by Varazir
I have created few dzVents script using Gemini, some times you need to wrestle with the AI to get to work

Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Wednesday 30 July 2025 15:05
by Derik
HvdW wrote: ↑Tuesday 29 July 2025 15:51
I'm using AI for all my dzVents solutions nowadays.
Even more, nowadays when I find an API I ask AI if it can write a script to display the data.
Lately I display data in text sensors.
Here is an example for data from meteoserver.nl which is queried every 2 hours (free)
Screenshot_20250616_235534_Firefox.jpg
It calculates the expected sun radiation using a formula that accounts for low, medium and high cloud coverage.
All made up by AI.
Is it necessary? No.
Is it fun? Yes
From the first setup to completion like I wanted it took a bit more than 1 hour.
Nice to see.
NOWADAY? Erg benieuwd naar je script.. Dit zou ook met regen kunnen?
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Wednesday 30 July 2025 16:22
by HvdW
I write English for the sake of this forum.
Regen ook.

- Screenshot_20250224_155141_Firefox.jpg (108.75 KiB) Viewed 635 times
This is for one hour.
Just what I need to know if it is safe to go out shopping without a coat.
https://gpsgadget.buienradar.nl/data/ra ... xx&lon=yyy
Written in dzVents, author DeepSeek
Time to get this was less than an hour.
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Wednesday 30 July 2025 16:52
by Derik
sorry i now English.. only my dutch is better

Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Tuesday 05 August 2025 16:33
by gizmocuz
I don't think this was the original question.
There are (lightweight) c++ libraries that we can use to train our own model, and feed it with data (temp/power/solar/wind/lux etc etc)
And with this we could make predictions
When you have a system that has been running for some time (like months/years), you could initialy train the model with this data as well
You can also train a model for a light. When someone turns the light on manually always around 6.30am on Monday/Friday, this could be predicted and done automatically
If you known at night your house used 0.7kWh, you could make sure that a battery keeps a minimum load of xx %
and so on...
I tried some coding against 'mlpack', but had issues getting this to work on my main dev machine (cross platform)
I do think this could be a great library to use
Re: Using AI tools with Domoticz, anyone given it a go?
Posted: Saturday 09 August 2025 8:30
by kiddigital
I see 2 ways for Domoticz where AI might be relevant.
First, using ‘traditional Machine Learning’ to make predictions for sensors. One could train an ML-model based on the historical data of a sensor and with such a model predict a few values in the future for such a sensor. Might be interesting for (light)switches to automatically turn things on or off without the need of a schedule. Just based on historical behavior. For more difficult predictions like weather, the small set of local measurements is insufficient to create a model that has some accuracy. Better use the predictions from already available hardware in Domoticz like Buienrader or OpenweatherMap which offer predictions already.
Second one is making Domoticz ‘accessible ‘ via an LLM like Claude, ChatGPT, Gemini, etc. This way a Chat/Agent gets understanding of the Domoticz setup by providing relevant context to the Chat/Agent. And provide methods for the Chat/Agent to have Domoticz perform actions.
(This second option is one I am currently trying to develop within Domoticz using the Model Context Protocol. Hope to release a Beta in the coming weeks).
Question: what would be actions that one would like to have performed in Domoticz by a (chat)Agent? (Next to the obvious control of switches, sensor setters, reading current sensor values, etc.)