Skip to content

Instantly share code, notes, and snippets.

@sigmaprojects
sigmaprojects / zha-moes-zigbee-rotary-smart-knob.yaml
Created March 23, 2026 00:43 — forked from blizzrdof77/zha-moes-zigbee-rotary-smart-knob.yaml
ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
blueprint:
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
description: Control lights with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, and rotating left/right will change the brightness smoothly of the selected light.
domain: automation
source_url: https://gist.github.com/blizzrdof77/0f686e66db30c871e362e24388c3f8fa
input:
remote:
name: Remote
description: Moes Tuya Smart Knob Device to use
linked_entity_id:
# This is a blocklist to block samsung smart tv's sending meta data at home.
# Please help to collect domains!
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident.
device-metrics-us.amazon.com
samsungacr.com
samsungcloudsolution.com
samsungcloudsolution.net
pavv.co.kr
samsungotn.net
<cfscript>
function boolean is_authorized(username, password) {
if(username == "admin" && password == "password"){
return true;
}
else
return false;
}
function deleteRecord(id) {