This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install python 3.12 | |
# create a file with any name and this contents. for example script.py | |
# https://gist.github.com/ALERTua/b6201c4ecf01e63d57cab822a3d83894 | |
# edit this file, fill the USERNAME and PASSWORD with your Cozytouch username and password | |
# execute the script using python script.py in the folder of the script file. | |
# the script authenticates in Cozytouch using your credentials, retrieves your devices, takes the first device and sends setdatetime command with the current date and time and prints the result | |
import asyncio | |
import datetime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
from pyoverkiz.const import SUPPORTED_SERVERS | |
from pyoverkiz.client import OverkizClient | |
from pyoverkiz.enums import Server | |
from pyoverkiz.models import Command | |
USERNAME = "overkiz_username" | |
PASSWORD = "overkiz_password" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import datetime | |
from pyoverkiz.const import SUPPORTED_SERVERS | |
from pyoverkiz.client import OverkizClient | |
from pyoverkiz.enums import Server, OverkizState | |
from pyoverkiz.models import Command | |
from pyoverkiz.enums.command import OverkizCommandParam | |
USERNAME = "COZYTOUCH_USERNAME" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/custom-components/pyscript | |
# https://github.com/ALERTua/ha_pyscript_modules | |
from imports import * | |
DEFAULT_BOOST_TEMP_DIFFERENCE = 1.2 | |
DEFAULT_TEMP_TOLERANCE_UP = 0.5 | |
DEFAULT_TEMP_TOLERANCE_DOWN = 0.5 | |
DEFAULT_HOLD = constants.HOLD_1M | |
PRECISION = 0.5 | |
MIN_TEMP = 18 |