Skip to content

Instantly share code, notes, and snippets.

@DRuggeri
Created September 4, 2025 01:20
Show Gist options
  • Select an option

  • Save DRuggeri/65d6c94de6289231d4eda114772fe91a to your computer and use it in GitHub Desktop.

Select an option

Save DRuggeri/65d6c94de6289231d4eda114772fe91a to your computer and use it in GitHub Desktop.
blueprint:
name: ZHA - TS0041 Scene Switch
description: Automate your Tuya 1-Button Scene Switch using ZHA events.
domain: automation
input:
tuya_1button_scene_switch:
name: TS0041 Switch
description: Tuya 1-Button Scene Switch to use
selector:
device:
integration: zha
manufacturer: _TZ3000_mrpevh8p
model: TS0041
button_short_press:
name: Short Press
description: Action to run on a short Press
default: []
selector:
action: {}
mode: restart
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input 'tuya_1button_scene_switch'
command: remote_button_short_press
action:
sequence: !input 'button_short_press'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment