This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |