• Téléphone
  • Communauté
  • Ordinateur
  • Internet
  • Smarthome
  • Voyage
  • Téléphone
  • Communauté
  • Ordinateur
  • Internet
  • Smarthome
  • Voyage
home/knowledge base/Smarthome/HA : Automatisation simple pour éteindre les lumières
Recherche fréquent:facebook, android, Excel

HA : Automatisation simple pour éteindre les lumières

Napisane przez guru
janvier 2, 2023

Pour écrire une automatisation pour éteindre la lumière tous les jours à 22 heures en YAML, vous pouvez utiliser la syntaxe suivante :

- 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

Cette automatisation éteindra la lumière avec l’entité ID light.bedroom tous les jours à 22 heures.

Voici une explication de chaque partie de l’automatisation :

  • id: Un identifiant unique pour l’automatisation.
  • alias: Un nom convivial pour l’automatisation.
  • description: Une description de l’automatisation.
  • trigger: Les conditions qui provoqueront le déclenchement de l’automatisation. Dans ce cas, le déclencheur est l’heure, soit 22 heures.
  • action: L’action qui sera exécutée lorsque l’automatisation est déclenchée. Dans ce cas, l’action consiste à éteindre la lumière avec l’entité ID light.bedroom.
Tags:assistant à domicileYAML

Était-ce utile ?

Oui  Non
Related Articles
  • Qu’est-ce que l’AirTag ?
Leave A Comment Annuler la réponse

  • Français
  • English (Anglais)
  • Deutsch (Allemand)
  • Español (Espagnol)
  • Polski (Polonais)
  • Українська (Ukrainien)
Popular Articles
  • Blocs Facebook – combien de temps cela dure-t-il ?
  • Comment supprimer un compte facebook
  • Comment marquer les lieux importants dans Google Maps ?
  • Comment configurer Chrome comme navigateur par défaut dans Windows 10
  • Compte Facebook bloqué
KB Categories
  • Téléphone
  • Voyage
  • android
  • Communauté
  • facebook
  • Ordinateur
  • Internet
  • Smarthome
  • Bureau
  • Communicateurs
  • messager
  • 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.

Recherche fréquent:facebook, android, Excel
  • Français
  • English (Anglais)
  • Deutsch (Allemand)
  • Español (Espagnol)
  • Polski (Polonais)
  • Українська (Ukrainien)