Skip to content

Instantly share code, notes, and snippets.

View koying's full-sized avatar

Chris Browet koying

  • Brussels, Belgium
View GitHub Profile
@koying
koying / ts004f.py
Created July 17, 2021 08:08
TS004F custom quirk
"""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 January 10, 2021 13:19
ZHA false multiple presses - RWL2021
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 September 14, 2021 06:45
Home assistant MQTT Statestream to MQTT Discovery blueprint (as of 2021.6)
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
/*
* 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>