Skip to content

Instantly share code, notes, and snippets.

@haade-administrator
haade-administrator / blueprint-zha-snzb-01p.yaml
Last active December 2, 2023 15:30
Automate Sonoff SNZB-01P switch with blueprint for Home Assistant
blueprint:
name: ZHA - Sonoff SNZB-01P
description: 'Perform actions with the Sonoff SNZB-01P Button.
You can set functions for single press, double press and hold. This allows you to assign,
e.g., a scene or anything else.'
domain: automation
input:
remote:
@haade-administrator
haade-administrator / automate-sonoff-snzb-01p.yaml
Created November 28, 2023 14:55
Automate Sonoff SNZB-01P switch with blueprint for Home Assistant
blueprint:
name: Zigbee2MQTT - Sonoff SNZB-01P Scene Switch
description: Automate your Sonoff SNZB-01P Scene Switch via Zigbee2MQTT.
domain: automation
input:
switch:
name: Tuya 1-Button Scene Switch
description: Sonoff SNZB-01P Scene Switch to use
selector:
entity:
@haade-administrator
haade-administrator / blueprint-irrigation.yaml
Created March 30, 2023 06:36
Blueprint Irrigation et meteo
blueprint:
name: Irrigation contrôlée par les conditions météorologiques
description: Basculer l'irrigation en fonction de la météo locale
domain: automation
input:
wind_sensor:
name: Capteur de vent
description: Sélectionnez un capteur de vent
selector:
entity:
@haade-administrator
haade-administrator / 4-way-ha.yaml
Last active February 27, 2023 06:28
création d'un va et vient dans homeassistant avec 4 interrupteurs
blueprint:
name: Synchronize Four States
description: Bind four entities together to act in unison (selected entites must all support the same state values)
domain: automation
input:
switch_1:
name: Entity 1
selector:
entity:
domain: switch
@haade-administrator
haade-administrator / 3-way-ha.yaml
Last active February 27, 2023 06:29
création d'un va et vient dans homeassistant avec 3 interrupteurs
blueprint:
name: Synchronize 3 Way simulate
description: Bind Three switches together to act in unison
domain: automation
input:
switch_1:
name: Switch 1
selector:
entity:
domain: switch
@haade-administrator
haade-administrator / 2-way-ha.yaml
Last active February 27, 2023 06:29
création d'un va et vient dans homeassistant entre 2 interrupteurs intégration avec Blueprint
blueprint:
name: 2 way simulate
description: Bind two switches together to act in unison
domain: automation
input:
switch_1:
name: Switch 1
selector:
entity:
domain: switch
@haade-administrator
haade-administrator / esp32-cam-frigate.yaml
Last active February 20, 2023 07:47
esp32-cam AI Thinker integration Frigate
ESP32CAM: # Name of camera
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
output_args:
detect: -f rawvideo -pix_fmt yuv420p
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
rtmp: -c:v libx264 -an -f flv
inputs:
- path: http://your-ip-address:8080
roles:
@haade-administrator
haade-administrator / esp-cam.yaml
Last active February 20, 2023 07:47
esp32-cam AI Thinker integration homeassistant esphome
substitutions:
devicename: esp-cam
friendly_name: espcam
esphome:
name: $devicename
esp32:
board: esp32cam
framework:
@haade-administrator
haade-administrator / Zoneminder.yaml
Last active September 16, 2021 12:08
Zoneminder
# Intégration des caméras
camera:
- platform: zoneminder
# Intégration remontée du nombre d'évènements
sensor:
- platform: zoneminder
include_archived: false
# Exemple changement entre deux modes dans ZM ( modes disponibles: Nodect, Mocord, Modect, Record )
@haade-administrator
haade-administrator / zigbee2mqtt.yaml
Created August 10, 2021 14:48
config /packages zigbee2mqtt
# Input select for Zigbee2mqtt debug level
input_select:
zigbee2mqtt_log_level:
name: Niveau de log
options:
- debug
- info
- warn
- error
initial: info