Skip to content

Instantly share code, notes, and snippets.

@hectorzin
hectorzin / Air Quality PM2.5 Alert
Created June 4, 2025 15:42
Home Assistant automations to create Ulanzi Awtrix Apps
alias: Aviso calidad aire exterior PM2.5 Awtrix
description: Muestra calidad del aire exterior PM2.5 en Awtrix
triggers:
- entity_id: sensor.ws2900_v2_02_03_pm2_5_1
trigger: state
- minutes: /15
trigger: time_pattern
conditions: []
actions:
- variables:
@hectorzin
hectorzin / Cocina
Created February 6, 2025 02:49
Tarjetas de Habitación
type: custom:room-card
entity: light.luz_cocina
title: Cocina
tap_action:
action: toggle
double_tap_action:
action: more-info
icon: phu:kitchen-alt
show_icon: true
templates:
@hectorzin
hectorzin / coupons.yaml
Last active June 6, 2025 15:00
Coupons
amazon:
- code: https://amzn.to/40CBqez
description: "*10%* de descuento en productos que alguien ha devuelto, pero que están nuevos!"
expiration: "2025-11-20"
aliexpress:
- code: IFPTNNB
description: |
🇺🇸 *$5* OFF for orders over $39
🇪🇸 *5$* de descuento en pedidos superiores a 39$
@hectorzin
hectorzin / creator_affiliate.yaml
Last active June 6, 2025 14:55
Creator configuration file for botaffiumeiro
configuration:
amazon:
amazon.es: botaffiumeiro_cofee-21
amazon.com: hectorzindomo-20
amazon.com.au: hectorzindomo-22
amazon.co.uk: hectorzindomo-21
amazon.fr: hectorzindo0d-21
amazon.it: hectorzindo04-21
amazon.de: hectorzindo0e-21
@hectorzin
hectorzin / termostato.yaml
Last active September 14, 2024 10:41
Termostato para infrarrojos
#####################################
# AIRE ACONDICIONADO MODO FRÍO #
#####################################
climate:
- platform: generic_thermostat
name: "Aire acondicionado salón"
unique_id: "termostato_aire_acondicionado"
heater: switch.aire_abajo
target_sensor: sensor.termostato_calefaccion
min_temp: 22
@hectorzin
hectorzin / Luz virtual
Last active August 30, 2024 07:59
Crear interruptores virtuales para manejar bombillas y ventiladores inteligentes
light:
- platform: template
lights:
luz_virtual:
friendly_name: "Luz virtual"
value_template: >
{% if is_state('switch.interruptor_fisico', 'on') and is_state('light.luz_ventilador', 'on') %}
on
{% else %}
off
@hectorzin
hectorzin / Termostato que funciona sobre sensación térmica
Last active July 21, 2024 18:32
Sensores de sensación térmica y de confort
climate:
- platform: climate_template
name: "Aire Acondicionado Salón (Sensación térmica)"
unique_id: aire_acondicionado_salon_sensacion_termica
modes:
- "off"
- "cool"
min_temp: 18
max_temp: 30
precision: 0.5
@hectorzin
hectorzin / Automation.txt
Last active February 25, 2024 16:19
Shopping list
alias: Bring - Actualizar sensor de texto con lista de la compra
description: ""
trigger:
- platform: state
entity_id: todo.bring_todo_la_compra
action:
- service: todo.get_items
target:
entity_id: todo.bring_todo_la_compra
data:
@hectorzin
hectorzin / synchronize_todo_list.yaml
Last active March 15, 2025 23:32
Synchronize 2 Home Assistant todo list
blueprint:
name: "Synchronize 2 Home Assistant todo list"
description:
This blueprint for Home Assistant synchronizes 2 to-do lists. Originally designed to sync Google Keep lists with the Bring shopping list, its versatility allows syncing any list. Currently limited to syncing only active items, those marked as completed are removed from the lists
source_url: https://gist.github.com/hectorzin/53f9811ff2d6a673af9ff3a9801df7af
domain: automation
input:
google_list:
name: List 1
description: Select your first list to synchronize