{"id":26969,"date":"2026-09-20T10:30:22","date_gmt":"2026-09-20T10:30:22","guid":{"rendered":"https:\/\/netguide.io\/smart-home\/home-assistant-how-to-fix-tankerkonig-after-api-errors\/"},"modified":"2026-09-20T10:30:23","modified_gmt":"2026-09-20T10:30:23","slug":"home-assistant-how-to-fix-tankerkonig-after-api-errors","status":"publish","type":"post","link":"https:\/\/netguide.io\/smart-home\/en\/home-assistant-how-to-fix-tankerkonig-after-api-errors\/","title":{"rendered":"Home Assistant: How to Fix Tankerk\u00f6nig After API Errors"},"content":{"rendered":"<div id=\"netgu-4219137152\" 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>When the fuel price sensors of the Tankerk\u00f6nig integration in <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a> suddenly switch to \u201cunavailable\u201d or throw errors like \u201cUnknown error occurred\u201d, it is usually due to temporary API server outages. Even if your API key shows as active on their website, the integration often gets stuck in an error state. With just a few steps, you can get your data synchronizing again.<\/p>\n<h2>What You Need<\/h2>\n<ul>\n<li>A running <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a> installation<\/li>\n<li>A configured Tankerk\u00f6nig integration<\/li>\n<li>Your personal API key from Tankerk\u00f6nig<\/li>\n<\/ul>\n<h2>1. Check Server Availability<\/h2>\n<p>Before changing any settings, quickly check in your web browser whether the API website (<code>creativecommons.tankerkoenig.de<\/code>) is accessible. If the provider&#8217;s interface is experiencing hiccups, every request will fail right at the source. In this case, your only option is usually to wait until the servers start serving data again.<\/p>\n<h2>2. Reload the Integration<\/h2>\n<p>Once the API has recovered, <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a> does not always detect this automatically right away. A manual reload will immediately trigger the data query again.<\/p>\n<ol>\n<li>Navigate to the Tankerk\u00f6nig integration in <a href=\"https:\/\/netguide.io\/smart-home\/category\/home-assistant\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"Home Assistant\">Home Assistant<\/a>.<\/li>\n<li>Click the <strong>three-dot menu<\/strong> next to the integration.<\/li>\n<li>Click <strong>Reload<\/strong>.<\/li>\n<\/ol>\n<h2>3. Reconfigure the Integration<\/h2>\n<p>If you see a notice after an outage stating that authentication has expired\u2014even though your key is still active\u2014reconfiguring the integration can help. In this case, set up the integration again using your existing API key to reinitialize the connection cleanly.<\/p>\n<h2>4. Perform a System Restart<\/h2>\n<p>If the component remains unresponsive and you cannot search for new gas stations, perform a complete restart of the system.<\/p>\n<h2>Is It Working?<\/h2>\n<p>Check your dashboard cards or the entity list (an entity is a specific data point in Home Assistant, here the fuel price sensor). As soon as the connection is restored, the sensors will switch back from \u201cunavailable\u201d to the current fuel price.<\/p>\n<h2>Troubleshooting<\/h2>\n<ul>\n<li><strong>\u201cUnknown error occurred\u201d during station search:<\/strong> This usually happens when the connection to the server drops during the search request. Wait a few minutes and try the search again.<\/li>\n<li><strong>\u201cAuthentication expired\u201d message:<\/strong> After a server outage, this misleading message may appear even if the API key is still valid. Do not immediately request a new key; instead, reconfigure the integration using your existing key.<\/li>\n<li><strong>Entities remain permanently offline:<\/strong> Check the Home Assistant logs to see if the coordinator is reporting error messages from <code>components\/tankerkoenig<\/code> that indicate external connection issues.<\/li>\n<\/ul>\n<p>Once your fuel prices are restored, you can set up automations that notify your smartphone as soon as the fuel price at your local gas station drops below a certain threshold.<\/p>\n<p><em>Sources: <a href=\"https:\/\/community.simon42.com\/t\/integration-tankerkoenig-unknown-error-occurred\/45312\" rel=\"nofollow noopener\" target=\"_blank\">Forum: Simon42 &#8211; Forum<\/a>, <a href=\"https:\/\/community-smarthome.com\/t\/tankerkoenig-in-home-assistant\/10511\" rel=\"nofollow noopener\" target=\"_blank\">community-smarthome.com<\/a>, <a href=\"https:\/\/github.com\/home-assistant\/core\/issues\/162353\" rel=\"nofollow noopener\" target=\"_blank\">github.com<\/a><\/em><\/p>\n<div id=\"netgu-3513123362\" 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>Are fuel prices suddenly missing in Home Assistant, or is Tankerk\u00f6nig reporting API key errors? Here is how to restore the connection.<\/p>\n","protected":false},"author":1,"featured_media":26966,"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":[26],"tags":[4175,3770,4177,4176,4097],"class_list":["post-26969","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smart-home-en-en","tag-fuel-prices","tag-home-assistant-en","tag-integration-en","tag-tankerkonig-en","tag-troubleshooting"],"uagb_featured_image_src":{"full":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/home-assistant-tankerkonig-nach-api-fehlern-wiederbeleben-editorial-editorial-96446-a015b8home-assistantcoreissues162353.png",1200,600,false],"thumbnail":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/home-assistant-tankerkonig-nach-api-fehlern-wiederbeleben-editorial-editorial-96446-a015b8home-assistantcoreissues162353-150x150.png",150,150,true],"medium":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/home-assistant-tankerkonig-nach-api-fehlern-wiederbeleben-editorial-editorial-96446-a015b8home-assistantcoreissues162353-300x150.png",300,150,true],"medium_large":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/home-assistant-tankerkonig-nach-api-fehlern-wiederbeleben-editorial-editorial-96446-a015b8home-assistantcoreissues162353-768x384.png",768,384,true],"large":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/home-assistant-tankerkonig-nach-api-fehlern-wiederbeleben-editorial-editorial-96446-a015b8home-assistantcoreissues162353-1024x512.png",1024,512,true],"1536x1536":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/home-assistant-tankerkonig-nach-api-fehlern-wiederbeleben-editorial-editorial-96446-a015b8home-assistantcoreissues162353.png",1200,600,false],"2048x2048":["https:\/\/netguide.io\/smart-home\/wp-content\/uploads\/sites\/3\/2026\/09\/home-assistant-tankerkonig-nach-api-fehlern-wiederbeleben-editorial-editorial-96446-a015b8home-assistantcoreissues162353.png",1200,600,false]},"uagb_author_info":{"display_name":"Tobias","author_link":"https:\/\/netguide.io\/smart-home\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Are fuel prices suddenly missing in Home Assistant, or is Tankerk\u00f6nig reporting API key errors? Here is how to restore the connection.","brizy_media":[],"_links":{"self":[{"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/posts\/26969","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=26969"}],"version-history":[{"count":1,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/posts\/26969\/revisions"}],"predecessor-version":[{"id":26970,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/posts\/26969\/revisions\/26970"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/media\/26966"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/media?parent=26969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/categories?post=26969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/smart-home\/wp-json\/wp\/v2\/tags?post=26969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}