Skip to content

Instantly share code, notes, and snippets.

@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 July 22, 2024 05:25
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