Explicación paso a paso del código
A continuación, se explica por secciones el archivo configurations.yaml (ACTUALIZADO 27/12/2022)
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
homeassistant:
allowlist_external_dirs:
- "/tmp"
# Text to speech
tts:
- platform: google_translate
language: es
# Example configuration.yaml entry
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
############ TELEGRAM ################
# Example configuration.yaml entry for the Telegram Bot
telegram_bot:
- platform: polling
api_key: # AQUÍ VA EL TOKEN DEL BOT #
allowed_chat_ids:
- -#AQUÍ VA CON EL ID DEL CHAT (TIENE UN MENOS DELANTE)#
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
binary_sensor:
- platform: template
sensors:
sensor_puerta_garaje_status:
value_template: "{{ is_state('binary_sensor.puerta_garaje', '1') }}"
delay_on:
seconds: 5
friendly_name: "Puerta garaje"
# ALARM CONTROL PANEL
alarm_control_panel:
- platform: manual
name: home_alarm
code: "#AQUÍ VA EL CÓDIGO DE LA ALARMA DE CUATRO DÍGITOS"
code_arm_required: false
disarm_after_trigger: false
arming_time: 0
delay_time: 10
trigger_time: 600
disarmed:
trigger_time: 0
armed_home:
arming_time: 0
delay_time: 0
notify:
- name: papas
platform: group
services:
- service: mobile_app_redmi_note_6_pro
- service: mobile_app_ipad_de_carlos
- service: mobile_app_mcarmen
- name: hijos
platform: group
services:
- service: mobile_app_movil_carlos
- service: mobile_app_movil_jaime
- name: familia
platform: group
services:
- service: mobile_app_movil_carlos
- service: mobile_app_movil_jaime
- service: mobile_app_redmi_note_6_pro
- service: mobile_app_ipad_de_carlos
- platform: telegram
name: Bot_Home_Assistant
chat_id: -#AQUÍ VA CON EL ID DEL CHAT (TIENE UN MENOS DELANTE)#
camera:
- platform: mjpeg
name: my cam
mjpeg_url: http://192.168.18.65:2123/video
still_image_url: http://192.168.18.65:2123/picture/1/current/
username: pinos
password: A*****11 #CONTRASEÑA ACCES0#
#PARA ESP32, YA SE HA QUITADO LA CÁMARA
android_ip_webcam:
- host: 192.168.18.65
port: 2123
username: pinos
password: A*****11
sensors:
- audio_connections
- battery_level
- battery_temp
- battery_voltage
- light
- motion
- pressure
- proximity
- sound
- video_connections
switches:
- exposure_lock
- ffc
- focus
- gps_active
- motion_detect
- night_vision
- overlay
- torch
- whitebalance_lock
- video_recording
config:
- hacs.disable(HacsDisabledReason.RATE_LIMIT) return True
# Example configuration.yaml entry
browser:
input_datetime:
encender_pie:
name: encender_pie
has_time: true
initial: '18:20:00'
apagar_pie:
name: apagar_pie
has_time: true
initial: '23:50:00'
favicon:
title: Los Pinos
icon_path: /local/favicons/
lovelace:
mode: yaml
resources:
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /local/custom-lovelace/weasley-card.js
type: module
- url: /hacsfiles/lovelace-time-picker-card/time-picker-card.js
type: module
- url: /hacsfiles/scheduler-card/scheduler-card.js
type: module
light:
- platform: mqtt
name: “Lampara fotos”
schema: json
command_topic: "office/rgb1/light/switch"
brightness: true
rgb: true
switch:
- platform: mqtt
name: "motor lampara"
command_topic: "office/rgb1/motor/switch"