{"id":5372,"date":"2025-05-26T10:15:03","date_gmt":"2025-05-26T09:15:03","guid":{"rendered":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/?page_id=5372"},"modified":"2025-05-26T10:15:04","modified_gmt":"2025-05-26T09:15:04","slug":"knx-in-home-assistant","status":"publish","type":"page","link":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/?page_id=5372","title":{"rendered":"KNX in Home Assistant"},"content":{"rendered":"\n<p>There is good support for KNX in Home Assistant these days (2025) which was not the case when I originally selected openHAB as the Home Automation &#8216;hub&#8217; in around 2015. However, the support for adding KNX &#8216;Entities&#8217; via the GUI is quite limited (only Switches and Lights) so for the full range of Entity types it&#8217;s necessary to edit a YAML configuration file directly &#8211; so might as well do that for everything, to consolidate the Entity definitions in one place.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The main configuration file &#8216;includes&#8217; a separate file called <code>knx.yaml<\/code><\/li>\n\n\n\n<li>It&#8217;s not permitted to have multiple instances of the &#8216;switch&#8217; or &#8216;cover&#8217; etc. lines so all Entities of type &#8216;switch&#8217; must be defined together, in one block<\/li>\n\n\n\n<li>Use the short-code KNX name (e.g. <code>EH_LD_01<\/code>) for the <code>name<\/code> field in the configuration file, which results in Entity IDs of the form <code>light.eh_ld_01<\/code><\/li>\n\n\n\n<li>Need to (soft) restart Home Assistant to have it load the Entities from the configuration file<\/li>\n\n\n\n<li>Once the file has been loaded, new Entities are visible under: Settings &gt; Devices &amp; Services &gt; Entities\n<ul class=\"wp-block-list\">\n<li>They need to be assigned to an Area here, and should have their more friendly &#8216;Name&#8217; populated with what gets shown in the dashboards, so the short-code name is only used for the ID &#8211; which reproduces what openHAB used to do<\/li>\n\n\n\n<li>The names can also be overridden when being added to the UI, so the internal names never get seen on the UI (which is A Good Thing)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Understanding which of these names get used for voice commands can be problematic\n<ul class=\"wp-block-list\">\n<li>Entities can be given (multiple?) voice-specific &#8216;Aliases&#8217; which can help here &#8211; especially since each Voice Assistant device is generally configured against a specific &#8216;Area&#8217; (i.e. a room) and hence has some context for phrases like &#8220;Close the blinds&#8221; or &#8220;Turn on the lights&#8221; <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>There&#8217;s an embryonic KNX Cookbook as part of the Home Assistant Community documentation here: <a href=\"https:\/\/community.home-assistant.io\/t\/knx-cookbook\/230972\">https:\/\/community.home-assistant.io\/t\/knx-cookbook\/230972<\/a> <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is good support for KNX in Home Assistant these days (2025) which was not the case when I originally selected openHAB as the Home Automation &#8216;hub&#8217; in around 2015. However, the support for adding KNX &#8216;Entities&#8217; via the GUI &hellip; <a href=\"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/?page_id=5372\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":5370,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5372","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/5372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5372"}],"version-history":[{"count":4,"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/5372\/revisions"}],"predecessor-version":[{"id":5853,"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/5372\/revisions\/5853"}],"up":[{"embeddable":true,"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/5370"}],"wp:attachment":[{"href":"https:\/\/www.marshflattsfarm.org.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}