Skip to content

Instantly share code, notes, and snippets.

View lennon101's full-sized avatar

lennon101 lennon101

View GitHub Profile
@lennon101
lennon101 / Fertiliser-Due
Created September 19, 2025 12:23
Fertiliser Due
1. Create a template sensor
Put this in your configuration.yaml or under Helpers → Template in the UI:
```yaml
template:
- sensor:
- name: "Fertiliser Due"
state: >
{% set last_tap = states('tag.lemon_liquid_feed') %}
@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 / 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 / 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 / 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 / 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 :)