Skip to content

Instantly share code, notes, and snippets.

View GuySie's full-sized avatar

Guy Sie GuySie

View GitHub Profile
@GuySie
GuySie / s3box-ma-coverart.yaml
Last active April 19, 2025 10:17
Espressif S3box Music Assistant covert art display
## Change Music Assistant entity to track in line 8, mediaplayer_entity, below:
substitutions:
name: s3box-ma-kitchen
friendly_name: "Kitchen Music Assistant"
project_name: "Guy Sie.Kitchen Music Assistant"
project_version: "0.1.0"
mediaplayer_entity: media_player.ma_homepod_kitchen
api_key: !secret api_key
ota_password: !secret ota_password
@GuySie
GuySie / cyd-lvgl-test.yaml
Last active April 16, 2025 20:07
CYD LVGL test
# ============================================================
# Edit substitutions for your naming, devices, and passwords here.
substitutions:
name: cyd-lvgl-test
friendly_name: "CYD LVGL Test"
api_key: !secret api_key
ota_password: !secret ota_password
# ap_password: !secret ap_password
wifi_ssid: !secret wifi_ssid
@GuySie
GuySie / cyd-thermostat.yaml
Created November 23, 2023 11:50
ESPHome CYD Thermostat example
# ============================================================
# Edit substitutions for your naming, devices and passwords here.
#
# This code assumes you have a climate thermostat entity and a separate temperature sensor. If you want to use the temperature sensor in your thermostat you need to change the code.
# thermostat_entity: Your climate entity that this device will control.
# temperature_entity: Your thermometer sensor that measures the current temperature in the room. Only used for graph and display.
substitutions:
name: cyd-thermostat
friendly_name: "CYD Thermostat Control"
@GuySie
GuySie / HA-ESPhome-IKEA-vindriktning.txt
Last active November 28, 2023 15:21
IKEA vindriktning ESPhome Home Assistant
esphome:
name: vindriktning
platform: ESP8266
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
@GuySie
GuySie / HA-corner-temperature-complication.txt
Last active October 2, 2023 06:19
Home Assistant corner temperature complication
{{ "🛏️ " }}{%- if states("sensor.bedroom_temperature") != 'unavailable' %}{{ (states("sensor.bedroom_temperature"))|round(1) }}{{ "°" }}{% else %}{{ "N/A" }}{% endif %}
{{ " 💻 " }}{%- if states("sensor.studio_temperature") != 'unavailable' %}{{ (states("sensor.studio_temperature"))|round(1) }}{{ "°" }}{% else %}{{ "N/A" }}{% endif %}
{{ "🛋️ " }}{%- if states("sensor.livingroom_temperature") != 'unavailable' %}{{ (states("sensor.livingroom_temperature"))|round(1) }}{{ "°" }}{% else %}{{ "N/A" }}{% endif %}
{%- set raindata = state_attr("sensor.nodered_rain_buienalarm","data")["precip"] %}
{%- for fifteenminutes in raindata|batch(3) %}
{%- if loop.index > 8 %}{{""}}
{%- else %}
{%- set rainintensity = fifteenminutes|max %}
{%- if rainintensity < 0.1 %}{{"▁"}}
{%- elif 0.1 <= rainintensity < 0.5 %}{{"▂"}}
{%- elif 0.5 <= rainintensity < 1 %}{{"▃"}}
{%- elif 1 <= rainintensity < 1.5 %}{{"▄"}}
{%- elif 1.5 <= rainintensity < 2 %}{{"▅"}}
@GuySie
GuySie / ui-lovelace.yaml
Last active July 10, 2023 18:54
My setup for the HA Minimalist UI theme framework https://github.com/UI-Lovelace-Minimalist/UI
---
button_card_templates: !include_dir_merge_named "../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"
title: "UI Lovelace Minimalist"
theme: "minimalist-desktop"
background: "var(--background-image)"
# views: !include_dir_merge_list "views/"
views:
- title: "Home View"
path: 0
@GuySie
GuySie / ep1.yaml
Created February 25, 2023 15:12
Everything presence one 1.1.3
substitutions:
name: "everything-presence-one-123abc"
room: "Living Room"
friendly_name: "Everything Presence One"
project_name: "Everything Smart Technology.Everything Presence One"
project_version: "1.1.3"
temperature_offset: "-3"
humidity_offset: "5"
temperature_update_interval: "60s"
illuminance_update_interval: "30s"
@GuySie
GuySie / NodeRED-HA-musicbutton-flows.txt
Created January 24, 2023 22:36
NodeRED - Music shortcut/dimmer button flows
[{"id":"7c7232fd8e42c51c","type":"server-events","z":"4dfc0988.b18588","name":"Filter Deconz events","server":"","version":2,"eventType":"deconz_event","exposeToHomeAssistant":false,"eventData":"","haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"},{"property":"event_type","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"}],"x":130,"y":2960,"wires":[["e4a3ebeb785f3bab"]]},{"id":"e4a3ebeb785f3bab","type":"switch","z":"4dfc0988.b18588","name":"Select switch","property":"payload.event.unique_id","propertyType":"msg","rules":[{"t":"eq","v":"b4:e3:f9:ff:fe:5a:a0:da","vt":"str"},{"t":"eq","v":"b4:e3:f9:ff:fe:86:34:d1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":2960,"wires":[["c9cc6ebbc55d8438"],["
@GuySie
GuySie / NodeRED-HA-Buienradar-and-Buienalarm-sensors.txt
Last active January 21, 2023 10:01
NodeRED - Dynamic sensors for Home Assistant Apple Watch Buienradar + Buienalarm Complication
[{"id":"7a281822.950da8","type":"change","z":"7ce23c23.7ea124","name":"Get location data to 2 decimals","rules":[{"t":"set","p":"latitude","pt":"msg","to":"$round(data.attributes.latitude, 2)","tot":"jsonata"},{"t":"set","p":"longitude","pt":"msg","to":"$round(data.attributes.longitude, 2)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":100,"wires":[["f2faa1b4.b7939"]]},{"id":"a080c47a.c59908","type":"http request","z":"7ce23c23.7ea124","name":"Get Buienradar data","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://gpsgadget.buienradar.nl/data/raintext?lat={{{latitude}}}&lon={{{longitude}}}&c={{{random}}}","tls":"","persist":false,"proxy":"","authType":"","x":920,"y":100,"wires":[["6d1cadcf19a2edfd"]]},{"id":"f2faa1b4.b7939","type":"random","z":"7ce23c23.7ea124","name":"Add random number","low":1,"high":"999999999999999","inte":"true","property":"random","x":700,"y":100,"wires":[["a080c47a.c59908"]]},{"id":"f42baf1e.07df","type":"poll-state","z":"7ce23c23.7ea12