[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.sh
for Linux andinstall_tahoma_gpt_windows.bat
for Windows.For example for Linux:
mkdir $HOME/tahoma-gpt
cd $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.sh
using 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-gpt
orcd c:\tahoma-gpt
(for Windows) (or go to the installed folder with the terminal) -
python3 -m venv env
orpython -m venv env
(for Windows) -
source env/bin/activate
or.\env\Scripts\activate
(for Windows) -
python3 tahoma-gpt.py
orpython tahoma-gpt.py
(for Windows)If you want to run tahoma without tahoma-gpt in the same virtual environnement:
-
python3 tahoma.py
orpython 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.py
andrequirements_tahoma-gpt.txt
inside. Download from there and there -
Open a terminal
-
cd
in 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 tahoma
orpython -m pip install -U tahoma
6.2 Configure tahoma :
tahoma -c
6.3 Get the list of your devices :
tahoma -g
-
Run :
python3 -m pip install -r requirements_tahoma-gpt.txt
orpython -m pip install -r requirements_tahoma-gpt.txt
-
Modify the script
tahoma-gpt.py
with a notepad to add OpenAI API key -
Run :
python3 tahoma-gpt.py
orpython 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!