Skip to content

Instantly share code, notes, and snippets.

@victorlin
victorlin / ge_zw4005.yaml
Last active May 21, 2026 05:11 — forked from shannonfritz/ge_zw4005.yaml
GE 14291 / ZW4005 Home Assistant Blueprint
blueprint:
name: GE 14291 / ZW4005 Switch (Z-Wave JS) v0.01
description: Create automations for the GE Switches using the Z-Wave JS integration.
domain: automation
input:
ge_jasco:
name: Switch Device
description: 'List of available GE 14291 / ZW4005 switches
NOTE: This device does not have Z-Wave event for Single Tap up or down'
blueprint:
name: Inovelli LZW30-SN Hue Dimmer
description: >-
Use an Inovelli LZW30-SN Z-Wave JS switch to control Hue lights through
the philips-hue-smooth-dimmer custom integration.
domain: automation
input:
zwave_device:
name: Inovelli switch
description: The Inovelli LZW30-SN device from Z-Wave JS.
@victorlin
victorlin / 1_longest_tokens.py
Last active October 26, 2024 21:40 — forked from ctlllll/longest_chinese_tokens_gpt4o.py
Longest tokens per language in gpt4o
import iso639
import json
import langdetect
import tiktoken
REQUIRED_LANGUAGES = ["zh-cn"]
# Minimum for required languages
# Maximum for optional languages
TOKENS_PER_LANGUAGE = 20