• Teléfono
  • Social
  • Comunicador
  • Computadora
  • Internet
  • Smarthome
  • Viajar
  • Teléfono
  • Social
  • Comunicador
  • Computadora
  • Internet
  • Smarthome
  • Viajar
home/Base de conocimientos/Smarthome/HA: Automatización sencilla para apagar las luces
Popular:facebook, android, Excel

HA: Automatización sencilla para apagar las luces

Escrito por guru
enero 2, 2023

Para escribir una automatización que apague la luz todos los días a las 10 PM en YAML, puede utilizar la siguiente sintaxis:

- id: 'turn_off_light'
alias: Turn off light
description: 'Turn off light every day at 10 PM'
trigger:
- platform: time
at: '22:00:00'
action:
- service: light.turn_off
entity_id: light.bedroom

Esta automatización apagará la luz con el ID de entidad light.bedroom todos los días a las 22 horas.

He aquí una explicación de cada parte de la automatización:

  • id: Un ID único para la automatización.
  • alias: Un nombre amigable para la automatización.
  • description: Descripción de la automatización.
  • trigger: Las condiciones que harán que se active la automatización. En este caso, el desencadenante es la hora, las 22.00 horas.
  • action: La acción que se realizará cuando se active la automatización. En este caso, la acción consiste en apagar la luz con el ID de entidad light.bedroom.
Tags:asistente domésticoYAML

¿Fue útil esto?

Sí  No
Related Articles
  • ¿Qué es la AirTag?
  • El robot de limpieza se atasca debajo de los muebles: la solución
Leave A Comment Cancelar la respuesta

  • Español
  • English (Inglés)
  • Deutsch (Alemán)
  • Français (Francés)
  • Polski (Polaco)
  • Українська (Ucraniano)
Articulos populares
  • Guardar plazas de aparcamiento en la navegación de Waze
  • El robot de limpieza se atasca debajo de los muebles: la solución
  • Silenciar mensajes en la aplicación de Instagram
  • Enviar fotos que desaparecen en WhatsApp
  • Abrir enlaces fuera de la aplicación de Facebook
Categorías
  • Medio social
  • Teléfono móvil
  • Computadora
  • Internet
  • Smarthome
  • Viajar
  • Comunicador
  • android
  • Facebook
  • messenger
  • WhatsApp
  • Office
  • instagram
  • Señal
  • iOS

Try To Help ME

Welcome to the website that's here to turn you from a tech-turtle to a tech-ninja! We've got all the information and instructions you need to navigate the wild world of new technologies, with a side of humour to make it less overwhelming.

Whether you're struggling with a stubborn smartphone or trying to figure out how to use that fancy new app, we've got your back (and your funny bone). So come on in, and let's get tech-savvy together!

Tags
#techsolutions #mobilesupport #socialmediamanagement #computersupport #technologytips #mobileappdevelopment #socialmediastrategies #computerrepair #techtroubleshooting #mobilenetworksolutions
Social Media
#socialmedia #socialmediamarketing #instagram #facebook #twitter #linkedin #socialmediahacks #socialmediamanagement #socialmediastrategies #socialmediatips
Social
  • Facebook
  • Twitter
  • Privacy Policy
  • Terms of Use
  • © 2020 naszanasze. All Rights Reserved.

Popular:facebook, android, Excel
  • Español
  • English (Inglés)
  • Deutsch (Alemán)
  • Français (Francés)
  • Polski (Polaco)
  • Українська (Ucraniano)