<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Integrations on GbbOptimizer — Manual</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/</link><description>Recent content in Integrations on GbbOptimizer — Manual</description><generator>Hugo</generator><language>en</language><atom:link href="https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/index.xml" rel="self" type="application/rss+xml"/><item><title>evcc</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/evcc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/evcc/</guid><description>&lt;h1 id="integration-with-evcc"&gt;Integration with evcc&lt;a class="anchor" href="#integration-with-evcc"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://evcc.io"&gt;evcc.io&lt;/a&gt; is software for intelligent electric vehicle charging. GbbOptimizer can communicate with it via MQTT to coordinate EV charging with home battery optimization.&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;A working evcc installation&lt;/li&gt;
&lt;li&gt;Local MQTT broker (Mosquitto in Home Assistant or standalone)&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;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="bridge-configuration"&gt;Bridge Configuration&lt;a class="anchor" href="#bridge-configuration"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In the Mosquitto configuration file (&lt;code&gt;/share/mosquitto/GbbOptimizer.conf&lt;/code&gt;) add &lt;code&gt;topic&lt;/code&gt; lines for evcc:&lt;/p&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;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;4
&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;5
&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;6
&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-gdscript3" data-lang="gdscript3"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;connection GbbOptimizer_&lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;PlantId&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;remote_username &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;PlantId&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;remote_password &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;PlantToken&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;address &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;mqtt&lt;span style="color:#f92672"&gt;-&lt;/span&gt;server&lt;span style="color:#f92672"&gt;-&lt;/span&gt;address&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;:&lt;span style="color:#ae81ff"&gt;8883&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;bridge_capath &lt;span style="color:#f92672"&gt;/&lt;/span&gt;etc&lt;span style="color:#f92672"&gt;/&lt;/span&gt;ssl&lt;span style="color:#f92672"&gt;/&lt;/span&gt;certs
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;topic &lt;span style="color:#75715e"&gt;# both 2 evcc/loadpoints/ &amp;lt;PlantId&amp;gt;/evcc/site/loadpoints/&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;h2 id="mqtt-topics"&gt;MQTT Topics&lt;a class="anchor" href="#mqtt-topics"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="data-from-evcc-evcc---gbboptimizer"&gt;Data from evcc (evcc -&amp;gt; GbbOptimizer)&lt;a class="anchor" href="#data-from-evcc-evcc---gbboptimizer"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Topic&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;{PlantId}/evcc/site/statistic/total/chargedKWh&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Total energy charged to EV (kWh)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="commands-from-gbboptimizer-gbboptimizer---evcc"&gt;Commands from GbbOptimizer (GbbOptimizer -&amp;gt; evcc)&lt;a class="anchor" href="#commands-from-gbboptimizer-gbboptimizer---evcc"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Topic&lt;/th&gt;
 &lt;th&gt;Payload&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;{PlantId}/evcc/loadpoints/{chargerId}/mode&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;off&lt;/code&gt; or &lt;code&gt;now&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Enable/disable charging&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;{PlantId}/evcc/loadpoints/{chargerId}/maxCurrent&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;number (A)&lt;/td&gt;
 &lt;td&gt;Maximum charging current&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;{PlantId}/evcc/loadpoints/{chargerId}/connected&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;true&lt;/code&gt;/&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Charger connection status&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Where &lt;code&gt;{chargerId}&lt;/code&gt; is the charging point identifier in evcc.&lt;/p&gt;</description></item><item><title>Tuya</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/tuya/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/tuya/</guid><description>&lt;h1 id="integration-with-tuya"&gt;Integration with Tuya&lt;a class="anchor" href="#integration-with-tuya"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;GbbOptimizer can control Tuya devices (e.g. smart sockets) via the Tuya Cloud API. This requires creating a developer project on the Tuya platform and obtaining API keys.&lt;/p&gt;
&lt;h2 id="obtaining-access-id-and-access-secret"&gt;Obtaining Access ID and Access Secret&lt;a class="anchor" href="#obtaining-access-id-and-access-secret"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="1-create-a-developer-account"&gt;1. Create a developer account&lt;a class="anchor" href="#1-create-a-developer-account"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Register at &lt;a href="https://platform.tuya.com/"&gt;platform.tuya.com&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="2-create-a-cloud-project"&gt;2. Create a Cloud Project&lt;a class="anchor" href="#2-create-a-cloud-project"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Cloud&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Development&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Create Cloud Project&lt;/strong&gt; (top right corner)&lt;/li&gt;
&lt;li&gt;Fill in the form:
&lt;ul&gt;
&lt;li&gt;Project name — any name&lt;/li&gt;
&lt;li&gt;Industry — select the appropriate industry&lt;/li&gt;
&lt;li&gt;Development Method — &lt;strong&gt;Smart Home&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Data Center — select the one closest to your location&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;On the next screen click &lt;strong&gt;Authorize&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="3-connect-the-mobile-app"&gt;3. Connect the mobile app&lt;a class="anchor" href="#3-connect-the-mobile-app"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Devices&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Link App Account&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add App Account&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;A QR code will appear&lt;/li&gt;
&lt;li&gt;In the Tuya/Smart Life mobile app: &lt;strong&gt;Me&lt;/strong&gt; (bottom menu) -&amp;gt; scan icon (top right corner)&lt;/li&gt;
&lt;li&gt;Scan the QR code&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After connecting, a list of your devices will appear in the &lt;strong&gt;All Devices&lt;/strong&gt; tab.&lt;/p&gt;</description></item><item><title>Supla</title><link>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/supla/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krzysztofhajdamowicz.github.io/rewrite-GbbOptimizer-manual/en/integrations/supla/</guid><description>&lt;h1 id="integration-with-supla"&gt;Integration with Supla&lt;a class="anchor" href="#integration-with-supla"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;GbbOptimizer can control &lt;a href="https://www.supla.org/"&gt;Supla&lt;/a&gt; devices (e.g. relays, smart sockets) via Direct Links.&lt;/p&gt;
&lt;h2 id="configuration"&gt;Configuration&lt;a class="anchor" href="#configuration"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To connect a Supla device to GbbOptimizer, create a &lt;strong&gt;Direct Link&lt;/strong&gt; in the Supla Cloud panel:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Log in to &lt;a href="https://cloud.supla.org/"&gt;cloud.supla.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Go to the device you want to control&lt;/li&gt;
&lt;li&gt;Create a Direct Link with the appropriate permissions (on/off)&lt;/li&gt;
&lt;li&gt;Copy the generated URL&lt;/li&gt;
&lt;li&gt;Paste the URL in the GbbOptimizer configuration under &lt;strong&gt;IoT&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Supla&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote class='book-hint note'&gt;
&lt;p&gt;A detailed description of creating Direct Links can be found in the &lt;a href="https://gui-generic-builder.supla.io/guide/funkcjonalno%C5%9Bci%20supla/sterowanie-linki-bezposrednie"&gt;Supla documentation&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>