<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Home Assistant on GbbOptimizer — Manual</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/</link><description>Recent content in Home Assistant on GbbOptimizer — Manual</description><generator>Hugo</generator><language>en</language><atom:link href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/index.xml" rel="self" type="application/rss+xml"/><item><title>Mosquitto Bridge</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/mosquitto-bridge/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/mosquitto-bridge/</guid><description>&lt;h1 id="mosquitto-bridge"&gt;Mosquitto Bridge&lt;a class="anchor" href="#mosquitto-bridge"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;For GbbOptimizer to communicate with Home Assistant, you need to configure a bridge between the local Mosquitto broker in HA and the GbbOptimizer MQTT server.&lt;/p&gt;
&lt;h2 id="requirements"&gt;Requirements&lt;a class="anchor" href="#requirements"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Home Assistant with the &lt;strong&gt;Mosquitto broker&lt;/strong&gt; add-on installed&lt;/li&gt;
&lt;li&gt;An active installation in GbbOptimizer with an assigned &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/references/glossary/#plantid" class="glossary-term" title="Unique identifier for a PV installation"&gt;PlantId&lt;/a&gt; and &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/references/glossary/#planttoken" class="glossary-term" title="Authentication token for MQTT and API"&gt;PlantToken&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;MQTT server address — see &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/references/mqtt-servers/"&gt;MQTT Servers&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="step-by-step-configuration"&gt;Step-by-Step Configuration&lt;a class="anchor" href="#step-by-step-configuration"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="1-enable-the-configuration-folder-in-mosquitto"&gt;1. Enable the configuration folder in Mosquitto&lt;a class="anchor" href="#1-enable-the-configuration-folder-in-mosquitto"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;In Home Assistant go to &lt;strong&gt;Settings&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Add-ons&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Mosquitto broker&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Configuration&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>GbbConnect2 Addon</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/gbbconnect2-addon/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/gbbconnect2-addon/</guid><description>&lt;h1 id="gbbconnect2--home-assistant-addon"&gt;GbbConnect2 — Home Assistant Addon&lt;a class="anchor" href="#gbbconnect2--home-assistant-addon"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/references/glossary/#gbbconnect2" class="glossary-term" title="Local software for direct inverter connection"&gt;GbbConnect2&lt;/a&gt; is available as a &lt;strong&gt;Home Assistant addon&lt;/strong&gt;, allowing you to run it directly in HA without a separate Windows PC or Docker container.&lt;/p&gt;
&lt;p&gt;The addon runs the GbbConnect2Console application and connects the inverter to GbbOptimizer via &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/references/glossary/#modbusinmqtt" class="glossary-term" title="Modbus commands transmitted via MQTT"&gt;ModbusInMqtt&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="requirements"&gt;Requirements&lt;a class="anchor" href="#requirements"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Home Assistant OS&lt;/strong&gt; or &lt;strong&gt;Home Assistant Supervised&lt;/strong&gt; (Supervisor required)&lt;/li&gt;
&lt;li&gt;An active GbbOptimizer account with a &lt;strong&gt;GbbConnect2&lt;/strong&gt; type installation&lt;/li&gt;
&lt;li&gt;A hybrid inverter with a datalogger (WiFi or Ethernet)&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;fixed IP address&lt;/strong&gt; for the datalogger on the local network&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="installation"&gt;Installation&lt;a class="anchor" href="#installation"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="1-add-the-repository"&gt;1. Add the repository&lt;a class="anchor" href="#1-add-the-repository"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Click the button below to automatically add the repository to Home Assistant:&lt;/p&gt;</description></item><item><title>SolarAssistant</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/solar-assistant/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/solar-assistant/</guid><description>&lt;h1 id="solarassistant"&gt;SolarAssistant&lt;a class="anchor" href="#solarassistant"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;span class="badge" style="background-color: #9b59b6; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75em; font-weight: 600; text-transform: uppercase; vertical-align: middle;"&gt;deye-only&lt;/span&gt;

&lt;p&gt;GbbOptimizer integration with the Deye inverter via &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/references/glossary/#solarassistant" class="glossary-term" title="Inverter monitoring software"&gt;SolarAssistant&lt;/a&gt; and Home Assistant.&lt;/p&gt;
&lt;h2 id="supported-configurations"&gt;Supported Configurations&lt;a class="anchor" href="#supported-configurations"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Home Assistant (HA) with SolarAssistant (SA) connected to a hybrid Deye inverter as &lt;code&gt;inverter_1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="requirements"&gt;Requirements&lt;a class="anchor" href="#requirements"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Home Assistant with Mosquitto broker&lt;/li&gt;
&lt;li&gt;SolarAssistant installed and connected to the Deye inverter&lt;/li&gt;
&lt;li&gt;Configured &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/mosquitto-bridge/"&gt;Mosquitto Bridge&lt;/a&gt; with a topic for SolarAssistant&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="solarassistant-configuration"&gt;SolarAssistant Configuration&lt;a class="anchor" href="#solarassistant-configuration"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In the SolarAssistant settings go to &lt;strong&gt;Configuration&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Advanced MQTT&lt;/strong&gt; and change:&lt;/p&gt;</description></item><item><title>Automation</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/automation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/automation/</guid><description>&lt;h1 id="home-assistant-automation"&gt;Home Assistant Automation&lt;a class="anchor" href="#home-assistant-automation"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;After configuring the &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/mosquitto-bridge/"&gt;Mosquitto Bridge&lt;/a&gt; you can create automations in Home Assistant that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Send data&lt;/strong&gt; from HA sensors to GbbOptimizer&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;React to commands&lt;/strong&gt; received from GbbOptimizer&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="sending-data-to-gbboptimizer"&gt;Sending Data to GbbOptimizer&lt;a class="anchor" href="#sending-data-to-gbboptimizer"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;GbbOptimizer expects data on the topic &lt;code&gt;ha_gbb/sensor&lt;/code&gt; (locally in HA; via bridge it arrives as &lt;code&gt;&amp;lt;PlantId&amp;gt;/ha_gbb/sensor&lt;/code&gt;).&lt;/p&gt;
&lt;h3 id="required-fields"&gt;Required Fields&lt;a class="anchor" href="#required-fields"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Field&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;soc_perc&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Battery &lt;a href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/references/glossary/#soc" class="glossary-term" title="State of Charge — battery level as a percentage (0–100%)"&gt;SOC&lt;/a&gt; in percent (or &lt;code&gt;V&lt;/code&gt; if voltage-based control is selected)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;loads_total_kWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Consumption meter (kWh, cumulative)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;fromgrid_total_kWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Energy drawn from grid meter (kWh)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;togrid_total_kWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Energy sent to grid meter (kWh)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;pv_total_kWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;PV production meter (kWh)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="optional-fields"&gt;Optional Fields&lt;a class="anchor" href="#optional-fields"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Field&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;ev_charge_total_kWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;EV charging meter&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;hp_total_kWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Heat pump meter&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;other1_total_kWh&lt;/code&gt; &amp;hellip; &lt;code&gt;other6_total_kWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Additional meters&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="multiple-pv-arrays"&gt;Multiple PV Arrays&lt;a class="anchor" href="#multiple-pv-arrays"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;To send data from multiple PV arrays, use the &lt;code&gt;more&lt;/code&gt; field:&lt;/p&gt;</description></item><item><title>Charts</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/charts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/home-assistant/charts/</guid><description>&lt;h1 id="charts-in-home-assistant"&gt;Charts in Home Assistant&lt;a class="anchor" href="#charts-in-home-assistant"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;GbbOptimizer provides interactive charts (PV production, consumption, SOC, energy prices, etc.) via its web interface. These can be embedded in a Home Assistant dashboard.&lt;/p&gt;
&lt;h2 id="embedding-charts"&gt;Embedding Charts&lt;a class="anchor" href="#embedding-charts"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Use the &lt;strong&gt;Webpage&lt;/strong&gt; (or &lt;strong&gt;iFrame&lt;/strong&gt;) card in the HA dashboard:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to the HA dashboard -&amp;gt; &lt;strong&gt;Edit&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Add card&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Webpage&lt;/strong&gt; card (or a manual card of type &lt;code&gt;iframe&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;In the URL field paste the chart address from GbbOptimizer&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight"&gt;&lt;div style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;
&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1
&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;2
&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;type&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;iframe&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;url&lt;/span&gt;: &lt;span style="color:#e6db74"&gt;&amp;#34;https://&amp;lt;server&amp;gt;.gbbsoft.pl/Charts?PlantId=&amp;lt;PlantId&amp;gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;aspect_ratio&lt;/span&gt;: &lt;span style="color:#e6db74"&gt;&amp;#34;16:9&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Replace &lt;code&gt;&amp;lt;server&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;PlantId&amp;gt;&lt;/code&gt; with the appropriate values for your installation.&lt;/p&gt;</description></item></channel></rss>