Skip to content

Instantly share code, notes, and snippets.

View ALERTua's full-sized avatar
🇺🇦
=^.^=

Alexey ALERT Rubashёff ALERTua

🇺🇦
=^.^=
View GitHub Profile
# 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
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"
@ALERTua
ALERTua / gist:e4d8436d3ed240d27ba163f863a001b4
Created July 16, 2024 16:24
ha pyscript water heater away mode toggle via pyoverkiz
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"
@ALERTua
ALERTua / script.py
Last active September 30, 2024 14:03
ha pyoverkiz water heater set date time
# 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
@ALERTua
ALERTua / SteamWorkshopAuthorFilter.user.js
Last active August 12, 2025 11:24
Steam Workshop Author Filter: Filter Steam Workshop items by author to hide inappropriate content
// ==UserScript==
// @name Steam Workshop Author Filter
// @namespace http://tampermonkey.net/
// @version 1.0.1
// @description Filter Steam Workshop items by author to hide inappropriate content
// @author You
// @match https://steamcommunity.com/workshop/browse/*
// @grant none
// ==/UserScript==