{"id":26729,"date":"2026-09-16T09:00:27","date_gmt":"2026-09-16T09:00:27","guid":{"rendered":"https:\/\/netguide.io\/smart-home\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden\/"},"modified":"2026-09-16T09:00:29","modified_gmt":"2026-09-16T09:00:29","slug":"hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden","status":"publish","type":"post","link":"https:\/\/netguide.io\/smart-home\/de\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden\/","title":{"rendered":"Hardy Barth Wallbox: Sensoren per REST API in Home Assistant einbinden"},"content":{"rendered":"<div id=\"netgu-4151254648\" class=\"netgu-before-content netgu-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-6258556257245998\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-6258556257245998\" \ndata-ad-slot=\"3494115342\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><p>F\u00fcr die Wallbox cP\u00b51 von Hardy Barth gibt es in <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a> keine vorgefertigte Integration \u2013 also keine fertige Schnittstelle zur automatischen Erkennung. \u00dcber das integrierte eCB1-Smartmeter stellt die Ladestation jedoch eine lokale REST API bereit, die Messwerte im JSON-Format ausgibt. In dieser Anleitung richtest du die passenden Sensoren \u00fcber die Basiskonfiguration manuell ein, um Leistungswerte zu visualisieren.<\/p>\r\n\r\n<h2>Das brauchst du<\/h2>\r\n<ul>\r\n  <li>Eine installierte Home-Assistant-Instanz<\/li>\r\n  <li>Eine Hardy Barth Wallbox (cP\u00b51) mit eCB1-Steuerung im selben lokalen Netzwerk<\/li>\r\n  <li>Einen Text-Editor f\u00fcr die Konfigurationsdateien<\/li>\r\n<\/ul>\r\n\r\n<h2>1. Endpunkt im Netzwerk pr\u00fcfen<\/h2>\r\n<p>Die Wallbox stellt ihre Messdaten auf dem Controller unter einem HTTP-Pfad bereit. Standardm\u00e4\u00dfig lautet die Adresse f\u00fcr die Socket-Messung <code>http:\/\/ecb1.local\/api\/v1\/meters\/1<\/code>. Falls dein Router lokale Hostnamen nicht aufl\u00f6st, ersetzt du <code>ecb1.local<\/code> durch die feste IP-Adresse der Wallbox. Die R\u00fcckmeldung liefert ein verschachteltes JSON-Objekt mit OBIS-Kennzahlen, darunter <code>lgwb<\/code> (Saldo Active power+\/- bzw. aktuelle Leistung +\/-) oder <code>1-0:1.4.0<\/code> (Active power+ bzw. aktuelle Leistung +).<\/p>\r\n\r\n<h2>2. REST-Sensoren in die Konfiguration eintragen<\/h2>\r\n<p>Da keine Klick-Oberfl\u00e4che f\u00fcr benutzerdefinierte REST-Abfragen existiert, tr\u00e4gst du die Definition direkt in deine Systemdatei ein. Wir nutzen die <code>rest:<\/code>-Plattform, damit <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a> mit nur einer einzigen HTTP-Abfrage alle ben\u00f6tigten Werte gleichzeitig abholt.<\/p>\r\n\r\n<p>F\u00fcge den folgenden Block in deine <code>configuration.yaml<\/code> ein:<\/p>\r\n\r\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>rest:\r\n  - resource: \"http:\/\/ecb1.local\/api\/v1\/meters\/1\"\r\n    sensor:\r\n      - name: \"aktuelle Leistung +\/-\"\r\n        value_template: \"{{ value_json['meter']['data']['lgwb'] }}\"\r\n        unit_of_measurement: \"W\"\r\n      - name: \"aktuelle Leistung +\"\r\n        value_template: \"{{ value_json['meter']['data']['1-0:1.4.0'] }}\"\r\n        unit_of_measurement: \"W\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #85E89D\">rest<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">  - <\/span><span style=\"color: #85E89D\">resource<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;http:\/\/ecb1.local\/api\/v1\/meters\/1&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #85E89D\">sensor<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      - <\/span><span style=\"color: #85E89D\">name<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;aktuelle Leistung +\/-&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">        <\/span><span style=\"color: #85E89D\">value_template<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;{{ value_json[&#39;meter&#39;][&#39;data&#39;][&#39;lgwb&#39;] }}&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">        <\/span><span style=\"color: #85E89D\">unit_of_measurement<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;W&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      - <\/span><span style=\"color: #85E89D\">name<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;aktuelle Leistung +&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">        <\/span><span style=\"color: #85E89D\">value_template<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;{{ value_json[&#39;meter&#39;][&#39;data&#39;][&#39;1-0:1.4.0&#39;] }}&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">        <\/span><span style=\"color: #85E89D\">unit_of_measurement<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;W&quot;<\/span><\/span><\/code><\/pre><\/div>\r\n\r\n<p>Da die OBIS-Kennzahlen Sonderzeichen wie Punkte und Bindestriche enthalten, muss der JSON-Pfad zwingend in eckigen Klammern mit einfachen Anf\u00fchrungszeichen geschrieben werden (<code>value_json['meter']['data']['1-0:1.4.0']<\/code>).<\/p>\r\n\r\n<h2>3. Konfiguration anwenden<\/h2>\r\n<p>Nachdem du die Datei gespeichert hast, \u00fcbernimmst du die \u00c4nderungen in <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a>, damit die neuen Sensoren geladen werden.<\/p>\r\n\r\n<h2>Funktioniert es?<\/h2>\r\n<p>Navigiere zu <strong>Einstellungen &gt; Ger\u00e4te &amp; Dienste &gt; Entit\u00e4ten<\/strong>. Eine Entit\u00e4t ist ein einzelner Datenpunkt mit einem Status in <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a>. Suche nach den neu erstellten Leistungssensoren. Wenn die Ladestation aktiv antwortet, siehst du dort sofort die aktuellen Messwerte inklusive Einheit.<\/p>\r\n\r\n<h2>Wenn es nicht klappt<\/h2>\r\n<ul>\r\n  <li><strong>Entit\u00e4t bleibt \u201enicht verf\u00fcgbar\u201c:<\/strong> Pr\u00fcfe im Webbrowser, ob die Adresse <code>http:\/\/ecb1.local\/api\/v1\/meters\/1<\/code> erreichbar ist. Wenn nicht, tausche <code>ecb1.local<\/code> gegen die feste IP-Adresse deines eCB1-Controllers aus.<\/li>\r\n  <li><strong>Fehlermeldung beim YAML-Pr\u00fcfen:<\/strong> Achte auf exakte Einr\u00fcckungen im YAML-Code und stelle sicher, dass <code>rest:<\/code> auf oberster Ebene steht und nicht unter <code>sensor:<\/code> einger\u00fcckt wurde.<\/li>\r\n  <li><strong>Template-Fehler im Log:<\/strong> Hast du die eckige Klammerung <code>value_json['meter']['data']['...']<\/code> verwendet? Die Punkt-Notation (wie <code>value_json.meter.data.1-0:1.4.0<\/code>) schl\u00e4gt wegen der Bindestriche fehl.<\/li>\r\n<\/ul>\r\n\r\n<p>Mit den fertigen Sensoren bindest du die Messwerte deiner Wallbox unkompliziert in Home Assistant ein.<\/p>\r\n<p><em>Quellen: <a href=\"https:\/\/community.simon42.com\/t\/wallbox-hardy-barth-auslesen-api-json\/8787\" rel=\"nofollow noopener\" target=\"_blank\">Forum: Simon42 &#8211; Forum<\/a>, <a href=\"https:\/\/community.simon42.com\/t\/wallbox-hardy-barth-auslesen-api-json\/8787\" rel=\"nofollow noopener\" target=\"_blank\">community.simon42.com<\/a>, <a href=\"https:\/\/www.cloudapp.dev\/de-DE\/home-assistant-rest-sensor-cloud-api\" rel=\"nofollow noopener\" target=\"_blank\">cloudapp.dev<\/a><\/em><\/p><div id=\"netgu-2490396616\" class=\"netgu-after-content netgu-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-6258556257245998\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-6258556257245998\" \ndata-ad-slot=\"4559785002\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Deine Hardy Barth Wallbox cP\u00b51 liefert ab Werk keine Werte an Home Assistant. \u00dcber die lokale REST API des eCB1-Smartmeters liest du Messdaten direkt aus.<\/p>\n","protected":false},"author":1,"featured_media":26728,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[3670,3664,3666,3674,3665,3671],"class_list":["post-26729","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-home-assistant-integrationen","tag-ecb1","tag-hardy-barth","tag-rest-api","tag-smartmeter","tag-wallbox","tag-yaml"],"uagb_featured_image_src":{"full":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden-unsplash-xJLsHl0hIik.jpg",1920,1277,false],"thumbnail":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden-unsplash-xJLsHl0hIik-150x150.jpg",150,150,true],"medium":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden-unsplash-xJLsHl0hIik-300x200.jpg",300,200,true],"medium_large":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden-unsplash-xJLsHl0hIik-768x511.jpg",768,511,true],"large":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden-unsplash-xJLsHl0hIik-1024x681.jpg",1024,681,true],"1536x1536":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden-unsplash-xJLsHl0hIik-1536x1022.jpg",1536,1022,true],"2048x2048":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/hardy-barth-wallbox-sensoren-per-rest-api-in-home-assistant-einbinden-unsplash-xJLsHl0hIik.jpg",1920,1277,false]},"uagb_author_info":{"display_name":"Tobias","author_link":"https:\/\/netguide.io\/smart-home\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Deine Hardy Barth Wallbox cP\u00b51 liefert ab Werk keine Werte an Home Assistant. \u00dcber die lokale REST API des eCB1-Smartmeters liest du Messdaten direkt aus.","brizy_media":[],"_links":{"self":[{"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/posts\/26729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/comments?post=26729"}],"version-history":[{"count":1,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/posts\/26729\/revisions"}],"predecessor-version":[{"id":26730,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/posts\/26729\/revisions\/26730"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/media\/26728"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/media?parent=26729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/categories?post=26729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/tags?post=26729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}