Using AI tools with Domoticz, anyone given it a go?
Moderators: leecollings, remb0
Using AI tools with Domoticz, anyone given it a go?
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!
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!
- waltervl
- Posts: 5979
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
I would suggest you ask AI for that.... 
The answer I got was:

The answer I got was:
I see no use case for myself except for "Detect anomalies in energy usage or temperature trends."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.
---
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 623
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
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) 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.
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) 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.
Last edited by HvdW on Tuesday 29 July 2025 16:04, edited 1 time in total.
Bugs bug me.
- waltervl
- Posts: 5979
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
This will let your database grow rapidly!! check the Light/Switches log settings to minimize this (default 30 days)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 623
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
Thanks Walter.
Tbh I didn't realize that.
Set it to 10 days.
Tomorrow I'll see the size difference of my domoticz.db
Last edited by HvdW on Tuesday 29 July 2025 17:14, edited 1 time in total.
Bugs bug me.
- FireWizard
- Posts: 1907
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
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
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
- Varazir
- Posts: 459
- Joined: Friday 20 February 2015 22:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
I have created few dzVents script using Gemini, some times you need to wrestle with the AI to get to work 

Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
Several IKEA devices/z-wave devices
-
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
Nice to see.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.
NOWADAY? Erg benieuwd naar je script.. Dit zou ook met regen kunnen?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 623
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
I write English for the sake of this forum.
Regen ook. 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.
Regen ook. 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.
Bugs bug me.
-
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
sorry i now English.. only my dutch is better 
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
- gizmocuz
- Posts: 2577
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
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
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
Quality outlives Quantity!
- kiddigital
- Posts: 439
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Using AI tools with Domoticz, anyone given it a go?
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.)
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.)
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
Who is online
Users browsing this forum: No registered users and 1 guest