<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Archives des automaisation - La programmation sur le web</title>
	<atom:link href="https://programmation.surleweb-france.fr/tag/automaisation/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmation.surleweb-france.fr/tag/automaisation/</link>
	<description>La programmation gratuite pour tous</description>
	<lastBuildDate>Thu, 08 Apr 2021 17:47:31 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2023/08/cropped-19518430-icone-de-programmation-pour-votre-site-web-mobile-presentation-et-conception-de-logo-gratuit-vectoriel.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>Archives des automaisation - La programmation sur le web</title>
	<link>https://programmation.surleweb-france.fr/tag/automaisation/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">176210735</site>	<item>
		<title>Home Assistant, créer sa première automatisation</title>
		<link>https://programmation.surleweb-france.fr/home-assistant-creer-sa-premiere-automatisation/</link>
					<comments>https://programmation.surleweb-france.fr/home-assistant-creer-sa-premiere-automatisation/#respond</comments>
		
		<dc:creator><![CDATA[Zigomato]]></dc:creator>
		<pubDate>Thu, 08 Apr 2021 17:47:30 +0000</pubDate>
				<category><![CDATA[Domotique]]></category>
		<category><![CDATA[ampoule]]></category>
		<category><![CDATA[automaisation]]></category>
		<category><![CDATA[blueprint]]></category>
		<category><![CDATA[capteur]]></category>
		<category><![CDATA[Home Assistant]]></category>
		<category><![CDATA[lampe]]></category>
		<category><![CDATA[mouvement]]></category>
		<guid isPermaLink="false">https://programmation.surleweb-france.fr/?p=893</guid>

					<description><![CDATA[<p> mon but est d'allumer la lumière de ma cuisine lorsqu'une personne y est présente. Pour ce faire, tu as bien sûr une installation d'Home Assistant fonctionnelle (sur un Raspberry Pi 4, suit ce lien) et surtout, tu vas avoir besoin d'un capteur et d'une lampe</p>
<p class="continue-reading-button"> <a class="continue-reading-link" href="https://programmation.surleweb-france.fr/home-assistant-creer-sa-premiere-automatisation/">Continuer la lecture<i class="crycon-right-dir"></i></a></p>
<p>L’article <a href="https://programmation.surleweb-france.fr/home-assistant-creer-sa-premiere-automatisation/">Home Assistant, créer sa première automatisation</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Tout d&rsquo;abord, mon but est d&rsquo;allumer la lumière de ma cuisine lorsqu&rsquo;une personne y est présente. Pour ce faire, tu as bien sûr une installation d&rsquo;Home Assistant fonctionnelle (sur un Raspberry Pi 4, suit ce <a href="https://programmation.surleweb-france.fr/installer-home-assistant-sur-raspberry/" target="_blank" rel="noreferrer noopener">lien</a>) et surtout, tu vas avoir besoin d&rsquo;un capteur et d&rsquo;une lampe, pour ma part, j&rsquo;ai pris sur Amazon, ces deux produits :</p>



<ul class="wp-block-list"><li>Le capteur de mouvement : <a href="https://amzn.to/3uAiPN2" target="_blank" rel="noreferrer noopener">Xiaomi Mi Motion Sensor</a></li><li>L&rsquo;<a href="https://amzn.to/3s3yliJ" target="_blank" rel="noreferrer noopener">ampoule Led compatible Aqara</a></li></ul>



<p>La prise en compte de ces deux produit se fait très facilement en utilisant <a href="https://programmation.surleweb-france.fr/installer-et-configurer-la-pizigate-sur-pi-4/" target="_blank" rel="noreferrer noopener">l&rsquo;intégration ZHA</a>.</p>



<h2 class="wp-block-heading">Création de l&rsquo;automatisation</h2>



<p>Dans Home Assistant, pour créer une automatisation, il y a plusieurs solutions :</p>



<ul class="wp-block-list"><li>directement dans le fichier<strong> automations.yaml</strong>, cette méthode n&rsquo;est pas la plus simple pour des néophytes, à l&rsquo;heure de la rédaction de cet article, j&rsquo;en suis un, plus j&rsquo;apprends et plus je me rends compte que je ne sais rien.</li><li>une méthode guidée qui est bien plus simple que la précédente mais demande encore un peu plus de réflexion</li><li>l&rsquo;utilisation de <em>blueprint</em>, en quelque sorte, il s&rsquo;agit d&rsquo;un calque ou modèle sur lequel, tu vas intégrer tes entités, éléments&#8230; Je vois l&rsquo;informatique comme un moyen de se simplifier la vie.</li></ul>



<p>Pour faire simple et le plus instructif possible, je vais partir sur l&rsquo;utilisation d&rsquo;un Blueprint.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Tu pourras trouver des Blueprints sur internet, par exemple sur le forum de la <a href="https://community.home-assistant.io/c/blueprints-exchange/53" target="_blank" rel="noreferrer noopener">communauté Home Assistant.</a></p></blockquote>



<p>Revenons à notre projet d&rsquo;allumer la lumière de la cuisine quand une présence y est détecté.</p>



<p>Commences par ajouter une automatisation en cliquant sur « <strong>Ajouter une automatisation</strong> » :</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="1024" height="460" src="//i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/01-creer-sa-premiere-automatisation-1024x460.png" alt="" class="wp-image-894" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/01-creer-sa-premiere-automatisation.png?resize=1024%2C460&amp;ssl=1 1024w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/01-creer-sa-premiere-automatisation.png?resize=300%2C135&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/01-creer-sa-premiere-automatisation.png?resize=768%2C345&amp;ssl=1 768w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/01-creer-sa-premiere-automatisation.png?resize=780%2C350&amp;ssl=1 780w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/01-creer-sa-premiere-automatisation.png?resize=150%2C67&amp;ssl=1 150w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/01-creer-sa-premiere-automatisation.png?w=1366&amp;ssl=1 1366w" sizes="(max-width: 900px) 100vw, 900px" /></figure></div>



<p>Dans le popup qui s&rsquo;affiche, tu cliques sur « <strong>Sélectionner un Blueprint</strong> » et tu choisis « <strong>Motion-activated Light</strong> » :</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="608" height="407" src="//i2.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/02-proposition-daide-a-la-creation.png" alt="" class="wp-image-895" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/02-proposition-daide-a-la-creation.png?w=608&amp;ssl=1 608w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/02-proposition-daide-a-la-creation.png?resize=300%2C201&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/02-proposition-daide-a-la-creation.png?resize=150%2C100&amp;ssl=1 150w" sizes="(max-width: 608px) 100vw, 608px" /></figure></div>



<p>Ensuite, tu saisies le nom et une description (enfin, ce n&rsquo;est pas obligé) :</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="484" height="261" src="//i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image.png" alt="" class="wp-image-896" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image.png?w=484&amp;ssl=1 484w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image.png?resize=300%2C162&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image.png?resize=150%2C81&amp;ssl=1 150w" sizes="(max-width: 484px) 100vw, 484px" /></figure></div>



<p>Puis tu choisis :</p>



<ul class="wp-block-list"><li>ton capteur</li><li>l&rsquo;appareil, zone ou entité que tu veux allumer</li><li>Le temps pendant lequel tu souhaites que la lumière reste allumée</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="287" src="//i3.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image-1-1024x287.png" alt="" class="wp-image-897" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image-1.png?resize=1024%2C287&amp;ssl=1 1024w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image-1.png?resize=300%2C84&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image-1.png?resize=768%2C215&amp;ssl=1 768w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image-1.png?resize=150%2C42&amp;ssl=1 150w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/04/image-1.png?w=1067&amp;ssl=1 1067w" sizes="auto, (max-width: 900px) 100vw, 900px" /></figure>



<p>Puis tu sauvegardes. Ta première automatisation est prête et activée.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Rien de très transcendant à ce niveau, cela peut être très frustrant. Pour avoir appris plusieurs choses seul sur le net, il ne faut jamais se lancer trop vite et commencer par des bases.</p>
<p>L’article <a href="https://programmation.surleweb-france.fr/home-assistant-creer-sa-premiere-automatisation/">Home Assistant, créer sa première automatisation</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmation.surleweb-france.fr/home-assistant-creer-sa-premiere-automatisation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">893</post-id>	</item>
	</channel>
</rss>
