[UP TO DATE] Tahoma-gpt is an addon for tahoma by pzim-devdata for controlling Somfy Tahoma devices using ChatGPT and for getting help about tahoma by pzim-devdata
- Control Somfy Tahoma devices with a simple API written in Python 3
- Create scripts or shortcuts to controle your house from a domestic server or your computer
- With this API, you can integrate Somfy's products with other Matter-compatible devices
- Works with Somfy Connectivity Kit, Connexoon, Cozytouch, and more
- Support various Somfy's devices: alarm, shutter, plug, heater, sensors, scenes, and more
- Compatible with Windows and Linux operating systems
- 100% functional with ChatGPT
If you want to install Tahoma and Tahoma-GPT using a simple script on Linux, follow these steps:
-
Open your terminal (for Linux) or Powershell as asministrator (for Windows) and navigate to the directory where you want to download the script
install_tahoma-gpt.shfor Linux andinstall_tahoma_gpt_windows.batfor Windows.For example for Linux:
mkdir $HOME/tahoma-gptcd $HOME/tahoma-gpt
For exemple for Windows:
New-Item -ItemType Directory -Path "C:\tahoma-gpt"Set-Location -Path "C:\tahoma-gpt"Set-ExecutionPolicy RemoteSigned
-
Download the script
install_tahoma-gpt.shusing the following command:
For Linux :
wget -O "install_tahoma-gpt.sh" "https://github.com/pzim-devdata/tahoma/raw/main/install_tahoma-gpt.sh"
For Windows :
Invoke-WebRequest -Uri "https://github.com/pzim-devdata/tahoma/raw/main/install_tahoma_gpt_windows.bat" -OutFile "install_tahoma_gpt_windows.bat"
-
Make the installation script executable (Linux only) by running the following command:
chmod +x install_tahoma-gpt.sh
-
Execute the installation script in the terminal using the following command:
For Linux :
bash -c './install_tahoma-gpt.sh'
For Windows :
& "./install_tahoma_gpt_windows.bat"
-
You can now execute tahoma_chatgpt.sh for Linux or tahoma_chatgpt.bat for Windows or run tahoma-gpt.py in a vitual env (exemple for Linux):
-
cd $HOME/tahoma-gptorcd c:\tahoma-gpt(for Windows) (or go to the installed folder with the terminal) -
python3 -m venv envorpython -m venv env(for Windows) -
source env/bin/activateor.\env\Scripts\activate(for Windows) -
python3 tahoma-gpt.pyorpython tahoma-gpt.py(for Windows)If you want to run tahoma without tahoma-gpt in the same virtual environnement:
-
python3 tahoma.pyorpython tahoma.py(for Windows) and follow instructions there
-
-
You can also execute orders as arguments :
-
For Linux :
bash -c 'tahoma_chatgpt.sh could you please open the shutter in the kitchen ?'or
-
For Windows :
.\tahoma_chatgpt.bat could you please open the shutter in the kitchen ?
-
By following these steps, Tahoma and Tahoma-GPT will be installed on your Linux or Windows system in a virtual environnement.
You can execute bash -c 'tahoma_chatgpt.sh' for Linux or .\tahoma_chatgpt.bat for Windows to run it in the folder of tahoma-gpt.
You can create a vitual environnement in Python if you want to test it first. All will be installed in the tahoma-gpt directory
First you must install venv : pip install virtualenv or python3 -m pip install virtualenv or pipx install virtualenv to install vitual environnement
-
Create a directory with
tahoma-gpt.pyandrequirements_tahoma-gpt.txtinside. Download from there and there -
Open a terminal
-
cdin the directory you have just created -
Run :
python3 -m venv env(Windows :python -m venv env) -
Run :
source env/bin/activate(Windows :.\env\Scripts\activate) -
Install tahoma and configure it (if it's not already done) :
6.1. Run :
python3 -m pip install -U tahomaorpython -m pip install -U tahoma6.2 Configure tahoma :
tahoma -c6.3 Get the list of your devices :
tahoma -g -
Run :
python3 -m pip install -r requirements_tahoma-gpt.txtorpython -m pip install -r requirements_tahoma-gpt.txt -
Modify the script
tahoma-gpt.pywith a notepad to add OpenAI API key -
Run :
python3 tahoma-gpt.pyorpython tahoma-gpt.py -
Play with tahoma and ChatGPT
-
Run :
exit(to leave tahoma-gpt) -
Run :
exit()(to leave Python) -
Run :
deactivate(to deactivate the vitual environnement)
- Run :
python3 -m venv env(Windows :python -m venv env) - Run :
source env/bin/activate(Windows :.\env\Scripts\activate) - Run tahoma-gpt with tahoma :
python3 tahoma-gpt.py(Windows :python tahoma-gpt.py) - If you only wants to run tahoma without tahoma-gpt :
python3 tahoma.py(Windows :python tahoma.py) - Run :
deactivate(to deactivate the vitual environnement)
You can find explanation about tahoma.py from the original git of tahoma there
For :
Somfy Connectivity Kit Somfy Connexoon IO Somfy Connexoon RTS Somfy TaHoma Somfy TaHoma Beecon Somfy TaHoma Switch Thermor Cozytouch And more...
Supported devices : Alarm Shutter Plug Heater Sensors Scenes and more if you ask me on github :
- Licence MIT License Copyright (c) 2023 pzim-devdata
Created by @pzim-devdata - feel free to contact me!

