Skip to content

Instantly share code, notes, and snippets.

@hectorzin
hectorzin / script.yaml
Created October 31, 2025 10:06
HALLOWEEN
alias: 🎃 Halloween Jardín Show
mode: restart
max_exceeded: silent
sequence:
- target:
entity_id: light.luces_jardin
data:
rgb_color:
- 255
- 69
@hectorzin
hectorzin / configuration.yaml
Last active November 4, 2025 16:04
Create lights over IR devices
input_boolean:
luz_lagrima_state:
name: Estado Luz IR
initial: false
input_number:
luz_lagrima_level:
name: Luz lágrima – brillo
min: 1
max: 10
@hectorzin
hectorzin / v1
Last active August 26, 2025 06:56
Panel calidad del aire
type: vertical-stack
cards:
- type: custom:button-card
name: Calidad del aire exterior
entity: sensor.o_1pst_temperatura
double_tap_action:
action: more-info
entity: sensor.o_1pst_humedad
show_state: true
show_icon: false
@hectorzin
hectorzin / Automation
Created July 10, 2025 21:03
Tracking Aliexpress
alias: Añadir tracking Aliexpress por telegram
description: ""
triggers:
- event_type: telegram_command
event_data:
command: /aliexpress
trigger: event
id: Nuevo tracking
- trigger: event
event_type: aliexpress_package_data_updated
@hectorzin
hectorzin / Air Quality PM2.5 Alert
Last active July 21, 2025 12:51
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 December 28, 2025 22:11
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: IFP0VKXQ
description: |
🇺🇸 *$2* OFF for orders over $15
@hectorzin
hectorzin / creator_affiliate.yaml
Last active December 28, 2025 22:09
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 September 12, 2025 06:54
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