Skip to content

Instantly share code, notes, and snippets.

#Something like this:
cover:
- platform: mqtt
name: "First Garage"
state_topic: "cmnd/2/POWER2" #type "SwitchTopic2 2" in the Tasmota Console
command_topic: "cmnd/FirstGarage/POWER" #your Sonoff name would be "FirstGarage"
payload_open: "ON"
payload_close: "ON"
payload_stop: "ON"
state_open: "ON"
## Automations.yaml
- alias: Poorly
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.office_wand
from: 'off'
to: 'on'
action:
- service: media_player.select_source
@Snipercaine
Snipercaine / WandBox_automation.yaml
Last active September 4, 2018 17:04
IoT Adventures WandBox and Dragon Automations
##### Automations required for the WandBox and the Dragon
- alias: Start Quest
trigger:
- platform: state
entity_id: switch.start_quest
to: 'on'
action:
- service: media_player.select_source
data:
@Snipercaine
Snipercaine / WandBox_config.yaml
Last active October 3, 2018 23:11
IoT Adventures WandBox partial HA Configuration
###### This is not a complete Configuration.yaml file; Add what's here to your config.
switch:
- platform: mqtt
name: WandBox Lock #Switch 1 & Relay 1
state_topic: "stat/Wandbox/POWER1"
command_topic: "cmnd/Wandbox/power1"
payload_lock: "ON"
payload_unlock: "OFF"
optimistic: false
qos: 1
@Snipercaine
Snipercaine / aden.dash
Created December 5, 2018 18:09
My_HA_dashboard.dash
##
## Main arguments, all optional
##
title: Main Panel
widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 10
global_parameters:
use_comma: 0
##############################################################################
# Automations for handling toggle state buttons on page 3
automation:
# Set font and text for toggle buttons on device connection
- alias: hasp_bench_p6_ToggleInit
trigger:
- platform: state
entity_id: 'binary_sensor.bench_connected'
to: 'on'
- platform: homeassistant
/*
* ESP8266_NeoPixel.ino - Simple sketch to listen for E1.31 data on an ESP8266
* and drive WS2811 LEDs using the NeoPixel Library
*
* == Requires Adafruit_NeoPixel - http://github.com/adafruit/Adafruit_NeoPixel
*
* Project: E131 - E.131 (sACN) library for Arduino
* Copyright (c) 2015 Shelby Merrick
* http://www.forkineye.com
*
switch:
- platform: gpio
name: "Left Lights"
pin: D5
id: left_lights
- platform: gpio
name: "Back Lights"
pin: D6
id: back_lights
esphome:
name: main_bathroom_shower
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
@Snipercaine
Snipercaine / wled_preset_buttons.yaml
Last active September 13, 2019 20:39
wled_preset_buttons
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- entity: input_boolean.preset_1
icon: 'mdi:numeric-1-circle'
name: Preset_1
show_state: false
tap_action:
action: call-service