<?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/"
	>

<channel>
	<title>shelly Archives - Blog IT</title>
	<atom:link href="https://blogit.create.pt/tag/shelly/feed/" rel="self" type="application/rss+xml" />
	<link>https://blogit.create.pt/tag/shelly/</link>
	<description>Create IT blogger community</description>
	<lastBuildDate>Wed, 28 Oct 2020 15:28:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Home Assistant template sensor, adding two sensor explained</title>
		<link>https://blogit.create.pt/ricardocosta/2020/10/28/home-assistant-template-sensor-adding-two-sensor-explained/</link>
					<comments>https://blogit.create.pt/ricardocosta/2020/10/28/home-assistant-template-sensor-adding-two-sensor-explained/#respond</comments>
		
		<dc:creator><![CDATA[Ricardo Costa]]></dc:creator>
		<pubDate>Wed, 28 Oct 2020 15:28:40 +0000</pubDate>
				<category><![CDATA[Home Automation]]></category>
		<category><![CDATA[home assistant]]></category>
		<category><![CDATA[shelly]]></category>
		<guid isPermaLink="false">https://blogit.create.pt/?p=12103</guid>

					<description><![CDATA[<p>This post explain how to add a template sensor in Home Assistant that is the sum of two other sensors that measure the power.</p>
<p>The post <a href="https://blogit.create.pt/ricardocosta/2020/10/28/home-assistant-template-sensor-adding-two-sensor-explained/">Home Assistant template sensor, adding two sensor explained</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I&#8217; going to show you how to configure a template sensor in home assistant that adds two power sensors. I&#8217;m using Home Assistant to automate lights, sensors, leds, TV, and other devices in my home. I have some <a href="https://shelly.cloud/products/shelly-25-smart-home-automation-relay/">Shelly 2.5 switches</a> and these switches have dual power metering, one for each switch because Shelly 2.5 is a dual switch.</p>



<p>And I wanted to have a sensor that measures the total power instead of having 2 sensors separately.</p>



<p>So let&#8217;s see how I&#8217;ve configured a template sensor in home assistant that adds two power sensors. In the next yaml code you can see the sensors.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: yaml; title: ; notranslate">
  - platform: mqtt
    unique_id: sensor_potencia_sala_jantar_tecto
    name: &quot;Potência da luz do tecto da sala de jantar&quot;
    state_topic: &quot;shellies/sala_tecto/relay/0/power&quot;
    unit_of_measurement: &#039;W&#039;
  - platform: mqtt
    unique_id: sensor_potencia_sala_estar_tecto
    name: &quot;Potência da luz do tecto da sala de estar&quot;
    state_topic: &quot;shellies/sala_tecto/relay/1/power&quot;
    unit_of_measurement: &#039;W&#039;

</pre></div>


<p>And for the custom sensor that has the sum of the two previous sensors, this is how I&#8217;ve configured the yaml</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: yaml; highlight: [5,6]; title: ; notranslate">
  - platform: template
    sensors:
      sensor_potencia_sala:
        unit_of_measurement: &quot;W&quot;
        value_template: &quot;{{ (states(&#039;sensor.sensor_potencia_sala_jantar_tecto&#039;) | float) +
 (states(&#039;sensor.sensor_potencia_sala_estar_tecto&#039;) | float)}}&quot;

</pre></div>


<p>Check out my <a href="https://blogit.create.pt/ricardocosta/2020/10/20/home-assistant-with-shelly-2-5-switch-the-easy-way/">previous post</a> about configuring the Shelly 2.5 switch in Home Assistant.</p>
<p>The post <a href="https://blogit.create.pt/ricardocosta/2020/10/28/home-assistant-template-sensor-adding-two-sensor-explained/">Home Assistant template sensor, adding two sensor explained</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/ricardocosta/2020/10/28/home-assistant-template-sensor-adding-two-sensor-explained/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Home Assistant with Shelly 2.5 switch the easy way</title>
		<link>https://blogit.create.pt/ricardocosta/2020/10/20/home-assistant-with-shelly-2-5-switch-the-easy-way/</link>
					<comments>https://blogit.create.pt/ricardocosta/2020/10/20/home-assistant-with-shelly-2-5-switch-the-easy-way/#respond</comments>
		
		<dc:creator><![CDATA[Ricardo Costa]]></dc:creator>
		<pubDate>Tue, 20 Oct 2020 10:40:36 +0000</pubDate>
				<category><![CDATA[IoT]]></category>
		<category><![CDATA[Home Automation]]></category>
		<category><![CDATA[home assistant]]></category>
		<category><![CDATA[iot]]></category>
		<category><![CDATA[mqtt]]></category>
		<category><![CDATA[shelly]]></category>
		<guid isPermaLink="false">https://blogit.create.pt/?p=12052</guid>

					<description><![CDATA[<p>How-to configure Home Assistant configuration.yaml file for your Shelly 2.5 switch. The 2.5 switch is a double relay switch and roller shutter.</p>
<p>The post <a href="https://blogit.create.pt/ricardocosta/2020/10/20/home-assistant-with-shelly-2-5-switch-the-easy-way/">Home Assistant with Shelly 2.5 switch the easy way</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I&#8217;ve recently bought a Shelly 2.5 switch and this is how I&#8217;ve setup my Home Assistant. Here is my configuration.yaml for the switches. I&#8217;m controlling lights as a result I&#8217;m using the lights objects</p>



<p>I use the Home Assistant add-on named mosquitto as MQTT for everything so I can keep the communication system the same for all my devices and keep the management system simple.</p>



<p>First of all I configured my Shelly 2.5 thru the web interface to use MQTT. This is done in the &#8220;Internet &amp; Security&#8221; configuration settings, &#8220;Advance Developer &#8211; Settings&#8221;.</p>



<p>I configured the username and password that was set in Mosquitto MQTT server in Home Assistant. Don&#8217;t forget the IP address of the Home Assistant server (port 1883).</p>



<p>I&#8217;ve used a custom MQTT prefix as you can see in the yaml files configuration below. I use this prefix as a way to give a name to my switch</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="792" height="930" src="https://blogit.create.pt/wp-content/uploads/2020/10/shelly-2.5-mqtt.png" alt="Shelly 2.5 web interface for configuring MQTT" class="wp-image-12064" srcset="https://blogit.create.pt/wp-content/uploads/2020/10/shelly-2.5-mqtt.png 792w, https://blogit.create.pt/wp-content/uploads/2020/10/shelly-2.5-mqtt-255x300.png 255w, https://blogit.create.pt/wp-content/uploads/2020/10/shelly-2.5-mqtt-768x902.png 768w, https://blogit.create.pt/wp-content/uploads/2020/10/shelly-2.5-mqtt-696x817.png 696w, https://blogit.create.pt/wp-content/uploads/2020/10/shelly-2.5-mqtt-358x420.png 358w" sizes="(max-width: 792px) 100vw, 792px" /></figure></div>



<p></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: yaml; title: ; notranslate">
# lights
light:
  - platform: mqtt
    unique_id: luz_sala_jantar_tecto
    name: &quot;Luz do tecto da sala de jantar&quot;
    state_topic: &quot;shellies/sala_tecto/relay/0&quot;
    command_topic: &quot;shellies/sala_tecto/relay/0/command&quot;
    payload_on: &#039;on&#039;
    payload_off: &#039;off&#039;
    retain: false
    qos: 1
  - platform: mqtt
    unique_id: luz_sala_estar_tecto
    name: &quot;Luz do tecto da sala de estar&quot;
    state_topic: &quot;shellies/sala_tecto/relay/1&quot;
    command_topic: &quot;shellies/sala_tecto/relay/1/command&quot;
    payload_on: &#039;on&#039;
    payload_off: &#039;off&#039;
    retain: false
    qos: 1

</pre></div>


<p>The Shelly 2.5 has temperature sensor so I&#8217;ve configured it like this</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: yaml; title: ; notranslate">
sensor:
  - platform: mqtt
    unique_id: sensor_temperatura_sala_tecto
    name: &quot;Temperatura da luz do tecto da sala&quot;
    state_topic: &quot;shellies/sala_tecto/temperature&quot;
    unit_of_measurement: &#039;ºC&#039;

</pre></div>


<p>There is a power sensor so check the configuration here </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sensor:
  - platform: mqtt
    unique_id: sensor_potencia_sala_jantar_tecto
    name: &quot;Potência da luz do tecto da sala de jantar&quot;
    state_topic: &quot;shellies/sala_tecto/relay/0/power&quot;
    unit_of_measurement: &#039;W&#039;

</pre></div>


<p>And for the energy sensor, this is the way I&#8217;ve set it up. </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: yaml; title: ; notranslate">
sensor
  - platform: mqtt
    unique_id: sensor_energia_sala_jantar_tecto
    name: &quot;Energia da luz do tecto da sala de jantar&quot;
    state_topic: &quot;shellies/sala_tecto/relay/0/energy&quot;
    unit_of_measurement: &#039;Wh&#039;

</pre></div>


<p>And I&#8217;ve used a binary sensor for the the temperature alert. </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: yaml; title: ; notranslate">
binary_sensor:
  - platform: mqtt
    unique_id: alerta_temperatura_luz_sala_tecto
    name: &quot;Alerta de temperatura da luz do tecto da sala&quot;
    state_topic: &quot;shellies/sala_tecto/overtemperature&quot;
    device_class: &quot;heat&quot;
    payload_off: &quot;0&quot;
    payload_on: &quot;1&quot;
</pre></div>


<p>If you want you can check the Shelly 2.5 specification here at the official Selly <a href="https://shelly.cloud/products/shelly-25-smart-home-automation-relay/" target="_blank" rel="noreferrer noopener">website</a>.</p>



<p>And I&#8217;m a <a href="https://www.mauser.pt">Mauser.pt</a> store fan so go check the site. </p>
<p>The post <a href="https://blogit.create.pt/ricardocosta/2020/10/20/home-assistant-with-shelly-2-5-switch-the-easy-way/">Home Assistant with Shelly 2.5 switch the easy way</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/ricardocosta/2020/10/20/home-assistant-with-shelly-2-5-switch-the-easy-way/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
