Skip to content

Instantly share code, notes, and snippets.

View lennon101's full-sized avatar

lennon101 lennon101

View GitHub Profile
@lennon101
lennon101 / Wind speed and direction compass card with satellite image.md
Last active March 11, 2024 06:06
Home Asssistant wind sensor card with wind vane and satellite view

image

Steps

  1. Take a screenshot of the satellite view of your house (or location of the weather station) and save to the following directory of your HA config: `config/www/'
  2. replace <file.jpg> in the config below with the name of your image
  3. You'll need to install the compass-card
  4. win :)
@lennon101
lennon101 / area_cards.yaml
Last active March 11, 2024 06:21
Home Assistant Area Card using template mushroom cards
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: ''
alignment: center
subtitle: ROOMS
- square: false
type: grid
columns: 2
cards:
@lennon101
lennon101 / card.yaml
Created April 16, 2024 04:45
Mushroom Template Card Example 🍄
type: custom:mushroom-template-card
layout: vertical
primary: Home
icon_color: |-
{% if is_state('input_boolean.away_mode', 'off') %}
green
{% else %}
red
{% endif %}
fill_container: true
@lennon101
lennon101 / config.yaml
Last active July 8, 2024 04:54
template sensor for total power
sensor:
- platform: template
sensors:
total_energy:
friendly_name: "Total Energy"
unit_of_measurement: 'Wh'
value_template: >
{% set device_a_energy = states('sensor.device_a_energy') | float %}
{% set device_b_energy = states('sensor.device_b_energy') | float %}
{% set device_c_energy = states('sensor.device_c_energy') | float %}
@lennon101
lennon101 / cloud-cutter.md
Created October 5, 2024 23:29
Steps to flash tuya devices with esphome using cloud cutter
  • Steps to use cloud cutter:

    • Git clone cloud cutter repo logseq.order-list-type:: number
    • cd tuya-cloudcutter logseq.order-list-type:: number
      • sudo ./tuya-cloudcutter.sh -s <ssid> <pwd> logseq.order-list-type:: number
      • sudo ./tuya-cloudcutter.sh -f ESPHome-Kickstart-v23.08.29_bk7231t_app.ota.ug.bin logseq.order-list-type:: number
    • Select: By manufacturer/device name
@lennon101
lennon101 / readme.md
Last active October 21, 2024 00:56
temp and rh card with decision tree to show if it's cooler outside than it is inside

This code produces the following card in HA. Dependences include:

2024-10-21_10 46 47_ShareX Rooms_–Home_Assistant-_Google_Chrome

How to use:

  1. replace the occurance of sensor.gw1100c_outdoor_temperature with your outdoor temperature
  2. replace the occurance of sensor.bedroom_temperature with your indoor temperature