Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Browet koying

  • Brussels, Belgium
View GitHub Profile
@koying
koying / ts004f.py
Created Jul 17, 2021
TS004F custom quirk
View ts004f.py
"""Tuya 4 Button Remote TS004F"""
from zigpy.profiles import zha
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import Basic, OnOff, Identify, Ota, LevelControl, PowerConfiguration, Time, Groups, Scenes
from zigpy.zcl.clusters.lightlink import LightLink
from zhaquirks.const import (
MODEL,
BUTTON_1,
@koying
koying / zha_rwl021_events.json
Created Jan 10, 2021
ZHA false multiple presses - RWL2021
View zha_rwl021_events.json
Event 24 fired 2:05 PM:
{
"event_type": "zha_event",
"data": {
"device_ieee": "00:17:88:01:10:5f:bf:41",
"unique_id": "00:17:88:01:10:5f:bf:41:2:0xfc00",
"device_id": "ebc2f75f64752d42f6517922ceff155b",
"endpoint_id": 2,
"cluster_id": 64512,
@koying
koying / mqttstream2discover.yaml
Last active Sep 14, 2021
Home assistant MQTT Statestream to MQTT Discovery blueprint (as of 2021.6)
View mqttstream2discover.yaml
blueprint:
name: MQTT Statestream to MQTT Discovery 2021.03
description: Creates an MQTT discovery entry for every entity streamed via MQTT Statestream.
domain: automation
input:
ha_stream:
name: HA stream
description: The HA statestream topic prefix used
mode: parallel
View capture_raw_frames.c
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This program is provided with the V4L2 API
* see http://linuxtv.org/docs.php for more information
*/
#include <stdio.h>