Skip to content

Instantly share code, notes, and snippets.

#sensor:
- platform: xbox_live
api_key: xxxxxxxxxxxxxxxxxxxxxx
xuid:
- 25xxxxxxxxxx17 #DrZzs
- 25xxxxxxxxxx02 #Zerp
- 25xxxxxxxxxx58 #BearBait
#sensor:
- platform: history_stats
binary_sensor:
- platform: mqtt
state_topic: "tele/RF_Bridge/RESULT"
name: 'Garage Motion'
value_template: '{{value_json.RfReceived.Data}}'
payload_on: 'D54C1E'
off_delay: 10
device_class: motion
qos: 1
retain: false
#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_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 / 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 / Broadlink.yaml
Created September 27, 2018 18:18
Broadlink IR and Home Assistant - Examples for Config and Automations
#ThermoZztat
# These are example segments meant to be copied into the 3 main files.
############### Examples for Configuration.yaml ###############
switch:
- platform: mqtt
name: "Upstairs Fan"
command_topic: "cmnd/ThermoZztat/POWER1"
state_topic: "stat/ThermoZztat/POWER1"
qos: 1
- alias: holiday_lights
initial_state: True
trigger:
platform: time
at: "20:40:00"
# platform: sun
# event: sunset
action:
service: input_select.select_option
entity_id: input_select.holiday
############## Configuration.yaml ###################
konnected:
access_token: !secret konnected_token
api_host: http://192.168.1.71:8123
devices:
- id: dc4ggggb4c4
binary_sensors:
- zone: 1
type: door
name: Front Door