Skip to content

Instantly share code, notes, and snippets.

View NV4RE's full-sized avatar
🥑
( •᷄ὤ•᷅)?

NV4RE NV4RE

🥑
( •᷄ὤ•᷅)?
  • Bangkok, Thailand
View GitHub Profile
@NV4RE
NV4RE / ZHA TS0043 - Multi-Remote Desk Control.yaml
Last active October 24, 2025 16:40
ZHA TS0043 - Multi-Remote Desk Control
blueprint:
name: Tuya TS0043 Multi Remote Controller
description: >
Control multiple Tuya TS0043 Zigbee remotes (3 buttons).
Supports short, double, and long press events on all remotes.
domain: automation
input:
remotes:
name: Remote devices
description: List of Tuya TS0043 device IDs
blueprint:
name: Time-Based Action Control
description: Execute actions at specified times with flexibility for any service or scene.
domain: automation
input:
action_open:
name: Action for Open Time
description: The action to perform at the open time.
selector:
action: {}
blueprint:
name: ZHA - Tuya 3-Button Scene Switch
description: Automate your Tuya 3-Button Scene Switch using ZHA events.
domain: automation
input:
tuya_3button_scene_switch:
name: Tuya 3-Button Scene Switch
description: Tuya 3-Button Scene Switch to use
selector:
device:
blueprint:
name: Dynamic Presence Action
description: Controls devices in the based on presence, with customizable presence and absence durations and actions.
domain: automation
input:
presence_sensor:
name: Presence Sensor
description: Sensor to detect presence in the living room.
selector:
entity:
blueprint:
name: ZHA | TS0041 Switch
description: Automate your TS0041 Wireless Switch using ZHA events.
domain: automation
input:
ts0041_switch:
name: TS0041 Switch
description: TS0041 Switch to use
selector:
device:
blueprint:
name: Zigbee2MQTT - Loratap SS600ZB / Tuya TS0043 Zigbee Wireless Switch
description: Automate your Loratap SS600ZB / Tuya TS0043 Zigbee Wireless Switch via Zigbee2MQTT.
domain: automation
input:
switch:
name: Loratap SS600ZB / Tuya TS0043 Zigbee Wireless Switch
description: Loratap SS600ZB / Tuya TS0043 Zigbee Wireless Switch to use
selector:
entity:
blueprint:
name: Motion-activated Devices
description: Turn on a switch, light, or fan when motion is detected, and off after a delay.
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
@NV4RE
NV4RE / gist:f2631596b171576dffb72f0ba81c1b28
Created January 14, 2021 09:47
extract images in videos.sh
#!/bin/sh
for FILE in /path/to/your/videos/*
do
F_NAME="$(basename $FILE)"
echo $F_NAME
echo $FILE
ffmpeg -i $FILE -vf fps=1/3 $F_NAME%03d.jpg
done