Skip to content

Instantly share code, notes, and snippets.

@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
#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";
- 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
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
cards:
- hold_action:
action: call-service
service: homeassistant.restart
icon: 'mdi:reload'
icon_height: 75px
name: Restart HA
tap_action:
action: call-service
service: homeassistant.check_config
[{"id":"f4a2cd.0d31bd3","type":"tab","label":"Cube Media Player","disabled":false,"info":""},{"id":"f6a19daf.6e603","type":"server-events","z":"f4a2cd.0d31bd3","name":"Deconz","server":"93e2a4eb.23bc48","event_type":"deconz_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":110,"y":140,"wires":[["476186c0.508f88"]]},{"id":"476186c0.508f88","type":"switch","z":"f4a2cd.0d31bd3","name":"Cube","property":"payload.event.id","propertyType":"msg","rules":[{"t":"eq","v":"switch_13","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":150,"y":240,"wires":[["75031d1c.369954"]]},{"id":"75031d1c.369954","type":"switch","z":"f4a2cd.0d31bd3","name":"Right Twist","property":"payload.event.gesture","propertyType":"msg","rules":[{"t":"eq","v":"7","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":250,"y":380,"wires":[["6c7e09b9.beca78"]]},{"id":"e90c78e0.6e37e8","type":"function","z":"f4a2cd.0d31bd3","name":"Volume Up","func":"var data = msg.
entity: sensor.adensville_charging_status
icon: 'mdi:car'
show_state: false
spin: false
state:
- color: yellow
spin: true
value: charging
- color: green
value: plugged
title: Solar Power
type: 'custom:bar-card'
entities:
- entity: sensor.energy_generation
icon: 'mdi:white-balance-sunny'
min: 0
max: 65
severity:
- color: Green
from: 45
[{"id":"2992fdbc.05aa42","type":"tab","label":"Kids Phones","disabled":false,"info":""},{"id":"1a34c66b.e5132a","type":"inject","z":"2992fdbc.05aa42","name":"Biggles","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"05 00 * * *","once":false,"onceDelay":0.1,"x":100,"y":60,"wires":[["63e2aeb6.15d8f","6e431546.9bb8bc","807145f3.684828"]]},{"id":"63e2aeb6.15d8f","type":"api-current-state","z":"2992fdbc.05aa42","name":"Zach Phone","server":"93e2a4eb.23bc48","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"device_tracker.life360_zach","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":310,"y":100,"wires":[["6d828da6.02c764"]]},{"id":"6d828da6.02c764","type":"switch","z":"2992fdbc.05aa42","name":"charging state","property":"data.attributes.battery_charging","propertyType":"msg","rules":[{"t":"false"},{"t":"true"}],"checkall":"true",
[
{
"id": "64e44a9e.afc6a4",
"type": "subflow",
"name": "TTS Button",
"info": "",
"category": "",
"in": [
{
"x": 120,