<?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>DLMS/COSEM Archives - House Garden Hobby</title>
	<atom:link href="https://www.housegardenhobby.com/tag/dlms-cosem-2/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>House, Garden and Hobby - Technical fun!</description>
	<lastBuildDate>Wed, 03 Jun 2026 16:13:11 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">162277751</site>	<item>
		<title>DIY PROJECTSTibber Pulse Local MQTT Setup in Home Assistant: Step-by-Step Guide</title>
		<link>https://www.housegardenhobby.com/tibber-pulse-local-mqtt-home-assistant/</link>
					<comments>https://www.housegardenhobby.com/tibber-pulse-local-mqtt-home-assistant/#respond</comments>
		
		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Wed, 22 Apr 2026 05:00:00 +0000</pubDate>
				<category><![CDATA[DIY Projects]]></category>
		<category><![CDATA[dlms cosem]]></category>
		<category><![CDATA[DLMS/COSEM]]></category>
		<category><![CDATA[energy monitoring]]></category>
		<category><![CDATA[grafana]]></category>
		<category><![CDATA[han port]]></category>
		<category><![CDATA[home assistant]]></category>
		<category><![CDATA[influxdb]]></category>
		<category><![CDATA[mosquitto]]></category>
		<category><![CDATA[mqtt]]></category>
		<category><![CDATA[node-red]]></category>
		<category><![CDATA[tibber]]></category>
		<category><![CDATA[tibber pulse]]></category>
		<guid isPermaLink="false">https://www.housegardenhobby.com/?p=1191</guid>

					<description><![CDATA[<p>Learn how to connect Tibber Pulse directly to Home Assistant via local MQTT — no cloud dependency, real-time energy data, full control.</p>
<p>The post <a href="https://www.housegardenhobby.com/tibber-pulse-local-mqtt-home-assistant/">&lt;span class=&quot;post-badge badge-diy-projects&quot;&gt;DIY PROJECTS&lt;/span&gt;Tibber Pulse Local MQTT Setup in Home Assistant: Step-by-Step Guide</a> appeared first on <a href="https://www.housegardenhobby.com">House Garden Hobby</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A few years ago I set up <strong>Tibber Pulse with local MQTT in Home Assistant</strong> — and it worked perfectly. Then I had to redo it without any notes. This guide is what I wish I&#8217;d written the first time: every step, every gotcha, and the Node-RED decoder I built myself.</p>



<p class="wp-block-paragraph"><strong>Short version:</strong> Tibber Pulse can push energy data directly to Home Assistant via MQTT by running Mosquitto as your broker, putting Pulse into access point mode, and decoding the AMS/HAN meter frames in Node-RED. No Tibber cloud required once it&#8217;s configured.</p>



<h2 class="wp-block-heading">Why bypass the default Tibber setup?</h2>



<p class="wp-block-paragraph">Out of the box, Tibber Pulse is a polished product — but its data goes through Tibber&#8217;s cloud before reaching any integration. That means latency, dependency on an external service, and limited control over what you actually get. Local MQTT solves all three.</p>



<ul class="wp-block-list">
<li>Real-time local data — no cloud hop</li>



<li>Sub-second response for automations</li>



<li>Full control over which values you extract and how</li>
</ul>



<h2 class="wp-block-heading">Step 0 – Install the MQTT Broker (Mosquitto)</h2>



<figure class="wp-block-image"><img decoding="async" src="https://hushagehobby.no/wp-content/uploads/2026/04/mosquitto.png" alt="Mosquitto MQTT broker installation in Home Assistant Add-ons settings"/></figure>



<p class="wp-block-paragraph">Before touching Pulse, you need a working MQTT broker. In Home Assistant, Mosquitto is the standard choice and installs in under two minutes.</p>



<ol class="wp-block-list">
<li>Go to <em>Settings → Add-ons</em></li>



<li>Search for and install <strong>Mosquitto broker</strong></li>



<li>Start the add-on</li>



<li>Set a username and password — you&#8217;ll need these in Step 3</li>
</ol>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>Pro Tip: Dedicated MQTT credentials</strong><br>Create a separate Home Assistant user for MQTT (not your admin account). It keeps access scoped and makes troubleshooting cleaner if something breaks.</p>
</blockquote>



<h2 class="wp-block-heading">Step 1 – Reset Tibber Pulse to Setup Mode</h2>



<p class="wp-block-paragraph">The first real hurdle is getting Pulse back into its initial configuration mode. There&#8217;s no menu for this — it requires a physical button sequence during power-up.</p>



<ol class="wp-block-list">
<li>Disconnect Pulse from the HAN port</li>



<li>Hold the button on the device</li>



<li>Reconnect to USB power while still holding the button</li>



<li>Wait until the LED starts blinking — Pulse is now broadcasting its own Wi-Fi network</li>
</ol>



<p class="wp-block-paragraph">If the LED doesn&#8217;t blink after 10–15 seconds, repeat the sequence. The timing matters — hold the button before power connects, not after.</p>



<h2 class="wp-block-heading">Step 2 – Access the Configuration Page</h2>



<p class="wp-block-paragraph">Once Pulse is in access point mode, connect your computer or phone to the Wi-Fi network it broadcasts. Then navigate to:</p>



<p class="wp-block-paragraph"><a href="http://10.133.70.1/"><strong>http://10.133.70.1/</strong></a></p>



<p class="wp-block-paragraph">This is the local configuration interface. It&#8217;s minimal, but everything you need is here. You won&#8217;t find this address documented prominently anywhere — which is exactly why people get stuck.</p>



<h2 class="wp-block-heading">Step 3 – Configure MQTT (the critical part)</h2>



<figure class="wp-block-image"><img decoding="async" src="https://hushagehobby.no/wp-content/uploads/2026/04/Puls-oppsett-817x1024.png" alt="Tibber Pulse MQTT configuration fields showing SSID, broker IP, port, and topic settings"/></figure>



<p class="wp-block-paragraph">This is the step that catches most people. The broker IP format is not what you&#8217;d expect — it needs credentials embedded in the address string.</p>



<ul class="wp-block-list">
<li><strong>SSID</strong> — your home Wi-Fi name</li>



<li><strong>PSK</strong> — your Wi-Fi password</li>



<li><strong>MQTT broker IP</strong> — format: <code class="" data-line="">username:password@192.168.x.x</code> (e.g. <code class="" data-line="">pulse:pulse@192.168.1.2</code>)</li>



<li><strong>Port</strong> — <code class="" data-line="">1883</code></li>



<li><strong>Topic</strong> — e.g. <code class="" data-line="">pulse/ams</code></li>
</ul>



<p class="wp-block-paragraph">Get the IP format wrong and Pulse will connect to Wi-Fi but never publish to your broker — no error, just silence. Double-check the <code class="" data-line="">user:pass@IP</code> syntax before saving.</p>



<h2 class="wp-block-heading">Step 4 – Power Stability (the lesson learned the hard way)</h2>



<p class="wp-block-paragraph">Running Pulse on HAN port power alone sounds convenient, but in practice it causes problems. The HAN port doesn&#8217;t always supply consistent power — output varies by meter model and installation.</p>



<p class="wp-block-paragraph">What this looked like in practice: random disconnects, silent reboots, and gaps in energy data. Adding a USB power supply eliminated all of it immediately.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>Pro Tip: Always add USB power</strong><br>Plug Pulse into USB power in addition to the HAN port. It&#8217;s a 30-second fix that prevents hours of troubleshooting. Whether you strictly need it depends on your specific meter, but the cost of not doing it is high.</p>
</blockquote>



<h2 class="wp-block-heading">Step 5 – Decode the Data in Node-RED</h2>



<p class="wp-block-paragraph">Raw data from the AMS/HAN meter arrives as binary DLMS frames — unreadable without parsing. Before building dashboards or automations, you need to decode it. Node-RED is the right tool for this.</p>



<p class="wp-block-paragraph">If you haven&#8217;t used Node-RED before, the <a href="https://nodered.org/docs/getting-started/">official Node-RED documentation</a> is the best starting point.</p>



<figure class="wp-block-image"><img decoding="async" src="https://hushagehobby.no/wp-content/uploads/2026/04/Node-Red-basic-test.png" alt="Basic Node-RED flow with MQTT input node connected to a debug node for testing Tibber Pulse data"/></figure>



<p class="wp-block-paragraph">Start with the simplest possible test: an MQTT-in node connected directly to a debug node. If data is flowing from Pulse to your broker, you&#8217;ll see raw binary output in the debug panel.</p>



<figure class="wp-block-image"><img decoding="async" src="https://hushagehobby.no/wp-content/uploads/2026/04/Radata.png" alt="Node-RED debug output showing raw binary DLMS data from Tibber Pulse AMS meter"/></figure>



<p class="wp-block-paragraph">That raw output is DLMS-encoded data. It needs a parser before it means anything. The fastest path to a working setup is the <a href="https://github.com/toreamun/amshan-homeassistant">AMS HAN Home Assistant integration</a> — a ready-made decoder that handles most Norwegian meters.</p>



<p class="wp-block-paragraph">But if you want to extract specific values, run custom calculations, or just understand exactly what the meter is sending — build your own. Here&#8217;s the function node I use:</p>



<pre class="wp-block-prismatic-blocks"><code class="language-javascript" data-line="">// ======================
// INPUT
// ======================
let buf = msg.payload;
if (!Buffer.isBuffer(buf)) return null;

let state = flow.get(&quot;han_data&quot;) || {};
let meta = flow.get(&quot;han_meta&quot;) || {};
let i = 0;

function readUInt32(buffer, offset) { return buffer.readUInt32BE(offset); }
function readUInt16(buffer, offset) { return buffer.readUInt16BE(offset); }
function readInt16(buffer, offset)  { return buffer.readInt16BE(offset); }
function round(value, decimals = 1) {
    return Math.round(value * Math.pow(10, decimals)) / Math.pow(10, decimals);
}

let obisMap = {
    &quot;0100010700ff&quot;: { key: &quot;power_import&quot;,    scale: 1    },
    &quot;0100020700ff&quot;: { key: &quot;power_export&quot;,    scale: 1    },
    &quot;0100010800ff&quot;: { key: &quot;energy_import&quot;,   scale: 0.01 },
    &quot;0100020800ff&quot;: { key: &quot;energy_export&quot;,   scale: 0.01 },
    &quot;0100200700ff&quot;: { key: &quot;voltage_l1&quot;,      scale: 0.1  },
    &quot;0100340700ff&quot;: { key: &quot;voltage_l2&quot;,      scale: 0.1  },
    &quot;0100480700ff&quot;: { key: &quot;voltage_l3&quot;,      scale: 0.1  },
    &quot;01001f0700ff&quot;: { key: &quot;current_l1&quot;,      scale: 0.1  },
    &quot;0100330700ff&quot;: { key: &quot;current_l2&quot;,      scale: 0.1  },
    &quot;0100470700ff&quot;: { key: &quot;current_l3&quot;,      scale: 0.1  },
    &quot;0100150700ff&quot;: { key: &quot;power_l1&quot;,        scale: 1    },
    &quot;0100290700ff&quot;: { key: &quot;power_l2&quot;,        scale: 1    },
    &quot;01003d0700ff&quot;: { key: &quot;power_l3&quot;,        scale: 1    },
    &quot;0100030700ff&quot;: { key: &quot;reactive_import&quot;, scale: 1    },
    &quot;0100040700ff&quot;: { key: &quot;reactive_export&quot;, scale: 1    }
};

while (i &lt; buf.length - 10) {
    let obis = buf.slice(i, i + 6).toString(&#039;hex&#039;);
    if (obisMap[obis]) {
        let { key, scale } = obisMap[obis];
        let type = buf[i + 6];
        let value = null;
        if      (type === 0x06) { value = readUInt32(buf, i + 7); i += 11; }
        else if (type === 0x12) { value = readUInt16(buf, i + 7); i += 9;  }
        else if (type === 0x10) { value = readInt16(buf,  i + 7); i += 9;  }
        else { i++; continue; }
        let scaled = value * scale;
        if      (key.includes(&quot;voltage&quot;) || key.includes(&quot;current&quot;)) { state[key] = round(scaled, 1); }
        else if (key.includes(&quot;energy&quot;))  { state[key] = round(scaled, 2); }
        else                               { state[key] = Math.round(scaled); }
    } else { i++; }
}

if (state.energy_import !== undefined) flow.set(&quot;energy_total&quot;,       state.energy_import);
if (state.energy_export !== undefined) flow.set(&quot;energy_export_total&quot;, state.energy_export);
state.energy_import = flow.get(&quot;energy_total&quot;)       ?? state.energy_import;
state.energy_export = flow.get(&quot;energy_export_total&quot;) ?? state.energy_export;

if (state.power_import &amp;&amp; state.reactive_import !== undefined) {
    let p = state.power_import;
    let q = state.reactive_import;
    let s = Math.sqrt(p*p + q*q);
    state.power_factor = round(p / s, 2);
}
if (!state.current_l2 &amp;&amp; state.power_import &amp;&amp; state.voltage_l2) {
    state.current_l2_estimated = round(state.power_import / (Math.sqrt(3) * state.voltage_l2), 1);
}

let text = buf.toString(&#039;latin1&#039;);
let firmwareMatch = text.match(/AIDON_[A-Z0-9]+/);
if (firmwareMatch) meta.firmware = firmwareMatch[0];
let meterIdMatch = text.match(/\d{10,}/);
if (meterIdMatch) meta.meter_id = meterIdMatch[0];
meta.manufacturer = &quot;Aidon&quot;;

flow.set(&quot;han_data&quot;, state);
flow.set(&quot;han_meta&quot;, meta);

msg.payload = { ...state, ...meta };
return msg;&lt;/code&gt;&lt;/pre&gt;</code></pre>



<figure class="wp-block-image"><img decoding="async" src="https://hushagehobby.no/wp-content/uploads/2026/04/Aidon-output.png" alt="Node-RED debug output showing decoded Aidon meter data including power factor and estimated L2 current"/></figure>



<p class="wp-block-paragraph">The decoded output includes power import/export per phase, voltage and current per phase, reactive power, and calculated power factor. Note that <code class="" data-line="">energy_import</code> and <code class="" data-line="">energy_export</code> (kWh totals) will appear as <code class="" data-line="">undefined</code> in some messages — this is expected. The meter only sends cumulative energy readings periodically, not with every packet.</p>



<figure class="wp-block-image"><img decoding="async" src="https://hushagehobby.no/wp-content/uploads/2026/04/Node-Red-med-sensor-1024x241.png" alt="Full Node-RED flow for Tibber Pulse MQTT data decoding with function node and Home Assistant sensor output"/></figure>



<figure class="wp-block-image"><img decoding="async" src="https://hushagehobby.no/wp-content/uploads/2026/04/Data-inn.gif" alt="Animated GIF showing live data flowing through Node-RED debug panel from Tibber Pulse AMS meter"/></figure>



<h2 class="wp-block-heading">How AMS Meter Data Is Actually Transmitted</h2>



<p class="wp-block-paragraph">Understanding the update intervals explains why some values aren&#8217;t always available. The AMS/HAN standard defines three reporting tiers:</p>



<h3 class="wp-block-heading">Every 2.5 seconds</h3>



<ul class="wp-block-list">
<li>Active power import (kW)</li>
</ul>



<h3 class="wp-block-heading">Every 10 seconds</h3>



<ul class="wp-block-list">
<li>OBIS list version, meter ID, meter type</li>



<li>Active power — import and export (kW)</li>



<li>Reactive power — import and export (kVAr)</li>



<li>Current per phase — L1, L2, L3 (A)</li>



<li>Voltage per phase (V)</li>
</ul>



<h3 class="wp-block-heading">Every hour</h3>



<ul class="wp-block-list">
<li>Cumulative energy import and export (kWh)</li>



<li>Reactive energy (kVArh)</li>



<li>Timestamp</li>
</ul>



<p class="wp-block-paragraph">This tiered structure is why the OBIS decoder uses persistent flow variables to carry energy readings forward — otherwise the hourly values would appear blank between updates.</p>



<h2 class="wp-block-heading">Useful References</h2>



<ul class="wp-block-list">
<li><a href="https://github.com/toreamun/amshan-homeassistant/wiki/Lesere-MQTT#tibber-pulse" rel="noopener">Tibber Pulse MQTT configuration reference (amshan wiki)</a></li>



<li><a href="https://tibber.com/no/store/produkt/pulse" rel="sponsored noopener">Tibber Pulse — product page</a></li>



<li><a href="https://mosquitto.org/" rel="noopener">Mosquitto MQTT broker documentation</a></li>



<li><a href="https://www.nek.no/info-ams-han-brukere/" rel="noopener">AMS HAN port technical standard (NEK)</a></li>
</ul>



<h2 class="wp-block-heading">FAQ – Tibber Pulse Local MQTT</h2>



<div class="schema-faq wp-block-yoast-faq-block"><div class="schema-faq-section" id="faq-question-1"><strong class="schema-faq-question">Why isn&#8217;t Tibber Pulse sending any data?</strong> <p class="schema-faq-answer">The most common cause is that the HAN port isn&#8217;t activated by your grid operator — this requires a written request in most countries. After that, check your MQTT broker IP format and confirm the topic matches what&#8217;s configured in Pulse.</p> </div> <div class="schema-faq-section" id="faq-question-2"><strong class="schema-faq-question">What IP address does Tibber Pulse use in setup mode?</strong> <p class="schema-faq-answer">When Pulse is broadcasting its own Wi-Fi access point, the configuration interface is at http://10.133.70.1/.</p> </div> <div class="schema-faq-section" id="faq-question-3"><strong class="schema-faq-question">Do I need a Tibber subscription to use local MQTT?</strong> <p class="schema-faq-answer">No. Once Pulse is configured to publish directly to your MQTT broker, it operates independently of Tibber&#8217;s cloud. No active Tibber subscription is required for local operation.</p> </div> <div class="schema-faq-section" id="faq-question-4"><strong class="schema-faq-question">Why does energy_import show as undefined in Node-RED?</strong> <p class="schema-faq-answer">Cumulative energy readings (kWh) are only transmitted once per hour by the AMS meter — not in every packet. The Node-RED function uses persistent flow variables to carry these values forward between updates.</p> </div> <div class="schema-faq-section" id="faq-question-5"><strong class="schema-faq-question">Does this work with Kaifa and Kamstrup meters, not just Aidon?</strong> <p class="schema-faq-answer">The DLMS/OBIS protocol is standardized across Aidon, Kaifa, and Kamstrup meters. Minor differences exist in which values are transmitted and at what frequency, but the same Tibber Pulse + MQTT setup applies to all three.</p> </div> </div>



<p class="wp-block-paragraph">Have you built a dashboard around your local energy data, or are you hitting a wall somewhere in the setup? Drop a question in the comments — and if you want to go deeper on Home Assistant automations, the <a href="https://www.home-assistant.io/docs/automation/" rel="noopener">Home Assistant automation documentation</a> covers the full picture.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.housegardenhobby.com/tibber-pulse-local-mqtt-home-assistant/">&lt;span class=&quot;post-badge badge-diy-projects&quot;&gt;DIY PROJECTS&lt;/span&gt;Tibber Pulse Local MQTT Setup in Home Assistant: Step-by-Step Guide</a> appeared first on <a href="https://www.housegardenhobby.com">House Garden Hobby</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.housegardenhobby.com/tibber-pulse-local-mqtt-home-assistant/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1191</post-id>	</item>
	</channel>
</rss>
