Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Zigbee2MQTT - Tuya 4-Button Scene Switch Fixed
description: Automate your Tuya 4-Button Scene Switch via Zigbee2MQTT.
domain: automation
input:
mode:
name: Automation Modes
description: "https://www.home-assistant.io/docs/automation/modes/"
default: parallel
selector:
@azizmb
azizmb / mandrill-sync.py
Created November 22, 2015 10:50
Simple script to sync templates across two mandrill accounts.
import optparse
from mandrill import Mandrill
from mandrill import UnknownTemplateError
def sync_templates(source_key, destination_key, update_existing=True, dry_run=False):
def perform_action(action):
'''Simple wrapper to skip actaully doing anything if dry run is enabled.