Skip to content

Instantly share code, notes, and snippets.

cards:
- artwork: cover
entity: media_player.justin_s_echo_show
hide_power: true
tts:
entity_id: media_player.justin_s_echo_show
platform: alexa
type: 'custom:mini-media-player'
- cards:
- entity: media_player.justin_s_echo_show
- platform: command_line
name: "NAS CPU Temperature"
scan_interval: 60
command_timeout: 30
command: "ssh [email protected] '( sensors )' > /tmp/cpu_nas && cat /tmp/cpu_nas | head -3 | tail -1 | cut -c15-22"
unit_of_measurement: "°C"
value_template: "{{ value }}"
- platform: command_line
#include <SimpleTimerA.h>
#include <PubSubClient.h>
#include <Ethernet.h>
#include <SPI.h>
//USER CONFIGURED SECTION START//
const char* mqtt_server = "192.168.1.27";
const int mqtt_port = 1883;
const char *mqtt_user = "MQTT";
const char *mqtt_pass = "xxxxxxx";
@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
@Snipercaine
Snipercaine / lovelacefloorplan.yaml
Created September 9, 2019 19:48
Lovelacefloorplan
resources:
- type: js
url: /community_plugin/plan-coordinates/plan-coordinates.js
#views:
- cards:
- cards:
- type: 'custom:plan-coordinates'
- elements:
- entity: switch.4336784084f3eb5d6215
state_filter:
esphome:
name: main_bathroom_shower
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
- alias: lower mountian room shades in the morning
id: lowermountainroomshadesinthemorning
trigger:
- platform: numeric_state
entity_id: sun.sun
value_template: "{{ state.attributes.elevation }}"
above: 8.0
# - platform: time
# at: "21:00:00"
# the shades have to NOT be closed, in order for the "close" automation to run
esphome:
name: mountain_windows_left
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
esphome:
name: main_bathroom
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
switch:
- platform: gpio
name: "Left Lights"
pin: D5
id: left_lights
- platform: gpio
name: "Back Lights"
pin: D6
id: back_lights