Skip to content

Instantly share code, notes, and snippets.

@itayavra
itayavra / Bidirection switch and light sync.yaml
Last active July 15, 2025 18:16
Bidirection switch and light/group sync
blueprint:
name: Sync Switch or Light with Target (Bi-directional)
description: >
Keeps a switch or light (controller) in sync with another light or switch (target),
which can be a group or a single entity. Toggling either will toggle the other.
Prevents feedback loops using state checks.
domain: automation
input:
controller:
@itayavra
itayavra / ZHA - Tuya 2 buttons (TS0021).yaml
Last active June 12, 2025 18:01
Automate your Tuya with two buttons (TS0021)
blueprint:
name: ZHA - Tuya with two buttons (TS0021)
description: Automate your Tuya with two buttons (TS0021).
domain: automation
input:
tuya_button:
name: Target Tuya button device
selector:
device:
integration: zha
@itayavra
itayavra / ZHA - Cycle Tuya light brightness.yaml
Last active June 7, 2025 22:40
A callable automation blueprint that cycles a light through configurable brightness levels. If brightness is at or above the highest level, it wraps to the lowest.
blueprint:
name: Cycle Tuya light brightness
description: >
A callable automation blueprint that cycles a light through configurable brightness levels.
If brightness is at or above the highest level, it wraps to the lowest.
domain: automation
input:
target_light:
name: Light to control
description: Select the light entity whose brightness will be cycled.
blueprint:
name: ZHA - Tuya button (TS0041)
description: Automate your Tuya button (TS0041).
domain: automation
input:
tuya_button:
name: Target Tuya button device
selector:
device:
integration: zha