Skip to content

Instantly share code, notes, and snippets.

@elupus
elupus / #TS004 Rotary Encoder Blueprint
Last active September 30, 2022 20:37
Blueprints for TS004F rotary encoders
.
@elupus
elupus / gist:0f8f3f98eb97cba3e1dc2f20a4564fef
Last active November 8, 2022 10:42
Blueprint: IKEA Symfonisk to KNX dimmer
blueprint:
name: IKEA Symfonisk Rotary Dimmer
description: Use symfonisk as knx relative dimmer
domain: automation
input:
rotary_device:
name: Source device
selector:
device:
integration: zha
@elupus
elupus / loxji_a30_ir_codes.md
Created January 28, 2022 22:18
Loxji A30 IR Codes NEC32

Loxji A30 - NEC Extended Format

The SMSL lines of products uses these NEC32 extended format ir codes.

Remote Address
A 2222h

| Command | Hex |

@elupus
elupus / smsl_ir_codes.md
Last active October 12, 2024 19:33
SMSL IR Codes NEC32

SMSL - NEC Extended Format

The SMSL lines of products uses these NEC32 extended format ir codes.

Remote Address Address (rev)
A 3412h 482Ch
B 3512h 48ACh
C 3612h 486Ch
@elupus
elupus / ssdp.py
Last active February 25, 2021 00:47
import asyncio
from asyncio.events import AbstractEventLoop
import logging
import socket
import struct
from typing import Optional, Tuple
USER_AGENT = "HassTest"
def create_listen_socket(addrinfo_iface, addrinfo_mcast):
@elupus
elupus / 12d1:1f01
Created May 2, 2019 14:16
Setup of e3372 modem on pfsense
# /usr/local/share/usb_modeswitch/12d1:1f01
# Huawei E353 (3.se) and others
TargetVendor=0x12d1
TargetProductList="14db,14dc"
HuaweiNewMode=1
@elupus
elupus / gist:addbc44e9f7b6887c35e
Last active August 29, 2015 14:10
GL Delay Measurement
diff --git a/xbmc/rendering/gl/RenderSystemGL.cpp b/xbmc/rendering/gl/RenderSystemGL.cpp
index ae10d3e..b334d45 100644
--- a/xbmc/rendering/gl/RenderSystemGL.cpp
+++ b/xbmc/rendering/gl/RenderSystemGL.cpp
@@ -34,6 +34,7 @@
#include "utils/SystemInfo.h"
#include "utils/MathUtils.h"
#include "utils/StringUtils.h"
+#include <queue>
@elupus
elupus / gist:1030129
Created June 16, 2011 20:02
Api test for deinterlacing in codec
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodec.h b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodec.h
index 0cabbc5..87f951f 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodec.h
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodec.h
@@ -207,6 +207,20 @@ public:
*/
virtual void SetDropState(bool bDrop) = 0;
+
+ enum EFilterFlags {