Skip to content

Instantly share code, notes, and snippets.

esphome:
name: esphome-web-e70e3c
friendly_name: D2G Voice Beta
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
# Find and Replace all "wled" with the name of your wled device "Server description".
# Find and Replace all "media_player.office" with the name of your HA media player.
# Find and Replace all "climate.floor_heat" with the name of your climate entity.
# Find and Replace all "sensor.temperature" with the name of your room temperature sensor.
# Replace lanbone with the name of your lanbon device
lanbon:
objects:
- obj: "p2b103" # switch reverse, checkbox or btn with toggle true
properties:
"val": '{{ 1 if is_state("switch.wled_nightlight", "on") else 0 }}'
@Snipercaine
Snipercaine / DrZzs_lovelace_11_1_2020.yaml
Created November 1, 2020 19:28
Full Lovelace Config
animated_background:
default_url: 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'
enabled: false
entity: weather.dark_sky
state_url:
clear-night:
- 'https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4'
- 'https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4'
- 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'
- 'https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4'
[{"id":"64e44a9e.afc6a4","type":"subflow","name":"TTS Button","info":"","category":"","in":[{"x":120,"y":120,"wires":[{"id":"6039cb4c.6a1364"},{"id":"a138c58a.af06c8"}]}],"out":[{"x":460,"y":160,"wires":[{"id":"a138c58a.af06c8","port":0}]}],"env":[{"name":"message","type":"str","value":"example message"}],"color":"#DDAA99"},{"id":"a138c58a.af06c8","type":"change","z":"64e44a9e.afc6a4","name":"Sign Off Message","rules":[{"t":"set","p":"payload","pt":"msg","to":"message","tot":"env"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":160,"wires":[[]]},{"id":"6039cb4c.6a1364","type":"delay","z":"64e44a9e.afc6a4","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":260,"y":100,"wires":[["14d77c71.3dae44"]]},{"id":"14d77c71.3dae44","type":"api-call-service","z":"64e44a9e.afc6a4","name":"input off","server":"93e2a4eb.23bc48","version":1,"debugenabled":false
[
{
"id": "64e44a9e.afc6a4",
"type": "subflow",
"name": "TTS Button",
"info": "",
"category": "",
"in": [
{
"x": 120,
[{"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",
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
entity: sensor.adensville_charging_status
icon: 'mdi:car'
show_state: false
spin: false
state:
- color: yellow
spin: true
value: charging
- color: green
value: plugged
[{"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.
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