{"id":321,"date":"2021-06-04T09:52:26","date_gmt":"2021-06-04T08:52:26","guid":{"rendered":"https:\/\/www.davidezanatta.com\/blog\/?p=321"},"modified":"2021-12-07T17:00:03","modified_gmt":"2021-12-07T16:00:03","slug":"volkswagen-weconnect-id-in-home-assistant-and-custom-dashboard-for-id-3","status":"publish","type":"post","link":"https:\/\/www.davidezanatta.com\/blog\/volkswagen-weconnect-id-in-home-assistant-and-custom-dashboard-for-id-3\/?lang=en","title":{"rendered":"Volkswagen WeConnect ID in Home Assistant and Custom Dashboard for ID.3"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant-1024x576.png\" alt=\"Volkswagen WeConnect ID in Home Assistant\" class=\"wp-image-278\" width=\"768\" height=\"432\" srcset=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant-1024x576.png 1024w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant-300x169.png 300w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant-768x432.png 768w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant-100x56.png 100w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant-872x490.png 872w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant-1125x633.png 1125w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/WeConnect-ID-in-Home-Assistant.png 1366w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n<p>I recently bought a Volkswagen ID.3 and in this guide we will see how to import the data displayed by the Volkswagen WeConnect ID app into the Home Assistant and how to create sensors to record various data such as the battery charge status, the autonomy, the charging power in Watts (which at the moment it is not possible to obtain from the car infotainment) and much more.<\/p>\n\n<h3 class=\"wp-block-heading\">Before we start<\/h3>\n\n<p>In this guide I will assume that you have already installed Home Assistant (you can find a lot of guides online, the official one can be found <a href=\"https:\/\/www.home-assistant.io\/installation\/\" target=\"_blank\" rel=\"noopener\">here<\/a> [for example I have installed the Home Assistant operating system in a virtual machine, but it is also possible install it on a raspberry pi]).<br\/>Then you need to install the &#8220;<em>ha_vwid<\/em>&#8221; component available on the &#8220;Home Assistant Community Store&#8221; (even if it is called store, everything is free, don&#8217;t worry).<br\/>To get it you will need to install the Home Assistant Community Store through <a href=\"https:\/\/hacs.xyz\/docs\/installation\/prerequisites\" target=\"_blank\" rel=\"noopener\">this guide<\/a> and then you will need to install the &#8220;<em>ha_vwid<\/em>&#8221; component following the guide in the <a href=\"https:\/\/github.com\/skagmo\/ha_vwid\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">Github repository<\/a> (or directly in HACS after adding the repository in custom repositories).<\/p>\n\n<h3 class=\"wp-block-heading\">Configuring the Volkswagen ID component in Home Assistant<\/h3>\n\n<p>The first thing to do to import WeConnect ID data into Home Assistant is to activate the component installed previously by entering your credentials during the configuration procedure. To do this, you must first enter the &#8220;<em>Settings&gt;Integrations<\/em>&#8221; section and then click on &#8220;<em>Add Integration<\/em>&#8220;. Search and click on &#8220;<em>Volkswagen ID<\/em>&#8220;. You should see a window like this:<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID.png\" alt=\"\" class=\"wp-image-281\" width=\"312\" height=\"257\" srcset=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID.png 1009w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID-300x247.png 300w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID-768x633.png 768w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID-100x82.png 100w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID-872x719.png 872w\" sizes=\"(max-width: 312px) 100vw, 312px\" \/><\/figure><\/div>\n\n<p>Then enter your WeConnect ID credentials (username and password) and then enter the VIN code of the vehicle.<\/p>\n\n<p><strong><u>ATTENTION<\/u><\/strong>: <br\/>Before activating the integration in Home Assistant you have to connect the official Volkswagen WeConnect ID app to your vehicle).<\/p>\n\n<p>After restarting the Home Assistant server (go to &#8220;<em>Settings&gt;Server Controls&gt;Server Management<\/em>&#8221; and click &#8220;<em>Restart<\/em>&#8220;) a new entity will be available in &#8220;<em>Settings&gt;Entity<\/em>&#8221; and it will be called &#8220;<em>State of Charge<\/em>&#8221; which will indicate the SOC of the car and it will show all other relevant data as attributes.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor-560x1024.png\" alt=\"\" class=\"wp-image-284\" width=\"250\" height=\"457\" srcset=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor-560x1024.png 560w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor-164x300.png 164w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor-768x1405.png 768w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor-839x1536.png 839w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor-100x183.png 100w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor-872x1596.png 872w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_sensor.png 1046w\" sizes=\"(max-width: 250px) 100vw, 250px\" \/><\/figure><\/div>\n\n<h3 class=\"wp-block-heading\">Create custom sensors to collect all WeConnect ID data in Home Assistant<\/h3>\n\n<p>To collect the data shown as attributes from the sensor automatically generated by the integration, it will be necessary to create a custom sensor in Home Assistant for each attribute. To do this we need to add the following code in the sensor section of the &#8220;<em>configuration.yaml<\/em>&#8221; file of Home Assistant (if you don&#8217;t know what I&#8217;m talking about you can read <a class=\"rank-math-link\" href=\"https:\/\/www.home-assistant.io\/docs\/configuration\/yaml\/\" target=\"_blank\" rel=\"noopener\">this guide<\/a>) (instead of <em>&#8220;[vin]&#8221;<\/em> you will have to write the VIN code of your vehicle):<\/p>\n\n<pre title=\"Esempio di alcuni sensori personalizzati (utilizzando questi come template potete aggiungere anche gli altri)\" class=\"wp-block-code has-normal-font-size\"><code lang=\"yaml\" class=\"language-yaml line-numbers\">&nbsp;&nbsp;#ID3&nbsp;Charge&nbsp;state\n&nbsp;&nbsp;-&nbsp;platform:&nbsp;template\n&nbsp;&nbsp;&nbsp;&nbsp;sensors:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id3_charge_state:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;friendly_name:&nbsp;\"State&nbsp;of&nbsp;Charge\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unit_of_measurement:&nbsp;\"%\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_template:&nbsp;'{{&nbsp;states.sensor.[vin]_soc.attributes.CurrentSOCPct&nbsp;}}'\n\n&nbsp;&nbsp;#ID3&nbsp;Charge&nbsp;Power\n&nbsp;&nbsp;-&nbsp;platform:&nbsp;template\n&nbsp;&nbsp;&nbsp;&nbsp;sensors:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id3_charge_power:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;friendly_name:&nbsp;\"Charging&nbsp;Power\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unit_of_measurement:&nbsp;\"kW\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_template:&nbsp;'{{&nbsp;states.sensor.[vin]_soc.attributes.ChargePowerKW&nbsp;}}'\n\n&nbsp;&nbsp;#ID3&nbsp;Climatization&nbsp;State\n&nbsp;&nbsp;-&nbsp;platform:&nbsp;template\n&nbsp;&nbsp;&nbsp;&nbsp;sensors:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id3_climatization_state:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;friendly_name:&nbsp;\"Climatization&nbsp;State\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_template:&nbsp;'{{&nbsp;states.sensor.[vin]_soc.attributes.ClimatisationState&nbsp;}}'\n\n&nbsp;&nbsp;#ID3&nbsp;Range\n&nbsp;&nbsp;-&nbsp;platform:&nbsp;template\n&nbsp;&nbsp;&nbsp;&nbsp;sensors:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id3_range:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;friendly_name:&nbsp;\"Range\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unit_of_measurement:&nbsp;\"Km\"\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_template:&nbsp;'{{&nbsp;states.sensor.[vin]_soc.attributes.CruisingRangeElectricKm&nbsp;}}'<\/code><\/pre>\n\n<p>After restarting the server again the sensors will be available in Home Assistant (you&#8217;ll see them inside &#8220;<em>Settings&gt;Entities<\/em>&#8220;).<\/p>\n\n<h3 class=\"wp-block-heading\">Customization of icons based on status<\/h3>\n\n<p>To make the graphical interface more attractive we need to make sure that the icons change according to the data imported from WeConnect ID in Home Assistant.<\/p>\n\n<p>To change the icons and the color of the icons based on the WeConnect ID data in Home Assistant I used the custom-ui component available on the &#8220;Home Assistant Community Store&#8221;. To get it you will need to install the component following the guide in the <a href=\"https:\/\/github.com\/Mariusthvdb\/custom-ui\" target=\"_blank\" rel=\"noopener\">Github repository<\/a> (in my case it was also necessary to install <a href=\"https:\/\/github.com\/jcwillox\/lovelace-paper-buttons-row\" target=\"_blank\" rel=\"noopener\">this other component<\/a>to make everything work correctly).<\/p>\n\n<p>We will then have to insert inside &#8220;<em>configuration.yaml<\/em>&#8221; under the &#8220;<em>homeassistant<\/em>&#8221; section the name of the file, that will be inserted in the same folder as the configuration file, in which we&#8217;ll write the customizations (I use an external file to keep everything in order, but you could also write the customizations directly inside the configuration file). The result is the following (in my case I called the file &#8220;<em>customizations.yaml<\/em>&#8220;):<\/p>\n\n<pre class=\"wp-block-code has-normal-font-size\"><code lang=\"yaml\" class=\"language-yaml line-numbers\">homeassistant:\n\n&nbsp;&nbsp;customize:&nbsp;!include&nbsp;customizations.yaml<\/code><\/pre>\n\n<p class=\"has-normal-font-size\">Then you&#8217;ll need to insert the following code in the &#8220;<em>customize<\/em>&#8221; section of the Home Assistant configuration file (or in the dedicated file):<\/p>\n\n<pre class=\"wp-block-code has-normal-font-size\"><code lang=\"yaml\" class=\"language-yaml line-numbers\">sensor.id3_charge_state:\n&nbsp;&nbsp;templates:\n&nbsp;&nbsp;&nbsp;&nbsp;icon:&nbsp;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;10)&nbsp;return&nbsp;'mdi:battery-alert-variant-outline';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;15)&nbsp;return&nbsp;'mdi:battery-10';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;25)&nbsp;return&nbsp;'mdi:battery-20';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;35)&nbsp;return&nbsp;'mdi:battery-30';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;45)&nbsp;return&nbsp;'mdi:battery-40';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;55)&nbsp;return&nbsp;'mdi:battery-50';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;65)&nbsp;return&nbsp;'mdi:battery-60';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;75)&nbsp;return&nbsp;'mdi:battery-70';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;85)&nbsp;return&nbsp;'mdi:battery-80';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;95)&nbsp;return&nbsp;'mdi:battery-90';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&gt;=&nbsp;95)&nbsp;return&nbsp;'mdi:battery';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;return&nbsp;'mdi:alert-octagon';\n&nbsp;&nbsp;&nbsp;&nbsp;icon_color:&nbsp;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;10)&nbsp;return&nbsp;'rgb(229,0,0)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;15)&nbsp;return&nbsp;'rgb(253,101,40)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;25)&nbsp;return&nbsp;'rgb(251,141,35)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;35)&nbsp;return&nbsp;'rgb(249,183,30)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;45)&nbsp;return&nbsp;'rgb(248,226,24)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;55)&nbsp;return&nbsp;'rgb(222,246,19)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;65)&nbsp;return&nbsp;'rgb(172,245,14)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;75)&nbsp;return&nbsp;'rgb(122,243,9)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;85)&nbsp;return&nbsp;'rgb(70,241,4)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&lt;&nbsp;95)&nbsp;return&nbsp;'rgb(17,239,0)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&gt;=&nbsp;95)&nbsp;return&nbsp;'rgb(0,255,0)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;return&nbsp;'rgb(255,0,0)';\n\nsensor.id3_charge_power:\n&nbsp;&nbsp;templates:\n&nbsp;&nbsp;&nbsp;&nbsp;icon:&nbsp;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&gt;&nbsp;11)&nbsp;return&nbsp;'mdi:ev-plug-ccs2';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&gt;&nbsp;0)&nbsp;return&nbsp;'mdi:ev-plug-type2';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;return&nbsp;'mdi:power-plug-off';\n&nbsp;&nbsp;&nbsp;&nbsp;icon_color:&nbsp;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;&gt;&nbsp;0)&nbsp;return&nbsp;'rgb(0,255,0)';\n\nsensor.id3_climatization_state:\n&nbsp;&nbsp;templates:\n&nbsp;&nbsp;&nbsp;&nbsp;icon:&nbsp;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;===&nbsp;\"ventilation\")&nbsp;return&nbsp;'mdi:fan';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;===&nbsp;\"cooling\")&nbsp;return&nbsp;'mdi:car-seat-cooler';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;===&nbsp;\"heating\")&nbsp;return&nbsp;'mdi:car-seat-heater';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;return&nbsp;'mdi:fan-off';\n&nbsp;&nbsp;&nbsp;&nbsp;icon_color:&nbsp;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;===&nbsp;\"cooling\")&nbsp;return&nbsp;'rgb(62,219,240)';\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(state&nbsp;===&nbsp;\"heating\")&nbsp;return&nbsp;'rgb(207,0,0)';<\/code><\/pre>\n\n<p>Finally restart Home Assistant to apply the changes.<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"block-6b9293e8-3b6a-4e39-9cfb-fb7bc5592841\">Creation of a custom dashboard<\/h3>\n\n<p>Since I&#8217;m also going to connect a wallbox to Home Assistant (I&#8217;ll write a guide about it) I decided to create a dashboard dedicated to car management (if you want you can skip this section and go to the next). To do this, simply select &#8220;<em>edit dashboard<\/em>&#8221; from the Overview section of Home Assistant to enter the editor.<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Lovelace-Editor-open.png\" alt=\"\" class=\"wp-image-264\" width=\"492\" height=\"142\" srcset=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Lovelace-Editor-open.png 983w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Lovelace-Editor-open-300x87.png 300w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Lovelace-Editor-open-768x222.png 768w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Lovelace-Editor-open-100x29.png 100w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Lovelace-Editor-open-872x252.png 872w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/figure><\/div>\n\n<p>Then just press the &#8220;<em>add<\/em>&#8221; button (the one with the &#8220;+&#8221; icon) and enter the necessary information as shown in the image below:<\/p>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Controllo-Auto.png\" alt=\"\" class=\"wp-image-266\" width=\"452\" height=\"399\" srcset=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Controllo-Auto.png 903w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Controllo-Auto-300x265.png 300w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Controllo-Auto-768x678.png 768w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Controllo-Auto-100x88.png 100w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/Controllo-Auto-872x770.png 872w\" sizes=\"(max-width: 452px) 100vw, 452px\" \/><\/figure><\/div>\n\n<p>Finally press &#8220;<em>save<\/em>&#8221; and move to the newly created board.<\/p>\n\n<h3 class=\"wp-block-heading\">Creation of a custom card for Volkswagen ID.3 (and all other vehicles of the ID series)<\/h3>\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL-1024x836.png\" alt=\"\" class=\"wp-image-307\" width=\"512\" height=\"418\" srcset=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL-1024x836.png 1024w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL-300x245.png 300w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL-768x627.png 768w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL-100x82.png 100w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL-872x712.png 872w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL-1125x918.png 1125w, https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/ID_LL.png 1242w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure><\/div>\n\n<p>Before creating a custom card it will be necessary, if you want to show an image of the car at the top of the card, to import an image into Home Assistant.<\/p>\n\n<p>To do this, first we need to import the image that we want to insert into Home Assistant via the Visual Studio Code add-on. You only need to create a folder in the &#8220;<em>www<\/em>&#8221; folder (in my case I called it &#8220;<em>myimages<\/em>&#8220;) and insert the images that we want to use in Home Assistant. The uploaded images will then be available within Home Assistant at the path &#8220;<em>local\/myimages\/filename.extension<\/em>&#8220;.<\/p>\n\n<p>Here is the image I used (you can also use it as a template to create your own custom image):<\/p>\n\n<div class=\"wp-block-file aligncenter\"><a href=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/id3_business.png\">id3_business_makena<\/a><a href=\"https:\/\/www.davidezanatta.com\/blog\/wp-content\/uploads\/2021\/05\/id3_business.png\" class=\"wp-block-file__button\" download=\"\">Download<\/a><\/div>\n\n<p>Finally, it will be sufficient to create a new card. To do this, simply click on &#8220;<em>Add Card<\/em>&#8221; (if the button is not visible, look at the previous section to understand how to open the dashboard editor). To use the same card I use, just select the &#8220;Manual&#8221; option and copy the following code, then press save (I assume that the image loaded at the beginning of the guide is saved with the same name and in the same folder as in my server):<\/p>\n\n<pre class=\"wp-block-code has-normal-font-size\"><code lang=\"yaml\" class=\"language-yaml line-numbers\">type:&nbsp;entities\nentities:\n&nbsp;&nbsp;-&nbsp;entity:&nbsp;sensor.id3_charge_state\n&nbsp;&nbsp;&nbsp;&nbsp;name:&nbsp;Stato&nbsp;di&nbsp;Carica\n&nbsp;&nbsp;-&nbsp;entity:&nbsp;sensor.id3_range\n&nbsp;&nbsp;&nbsp;&nbsp;icon:&nbsp;'mdi:road-variant'\n&nbsp;&nbsp;&nbsp;&nbsp;name:&nbsp;Autonomia\n&nbsp;&nbsp;-&nbsp;entity:&nbsp;sensor.id3_charge_power\n&nbsp;&nbsp;&nbsp;&nbsp;name:&nbsp;Potenza&nbsp;di&nbsp;Ricarica\n&nbsp;&nbsp;-&nbsp;entity:&nbsp;sensor.id3_climatization_state\n&nbsp;&nbsp;&nbsp;&nbsp;name:&nbsp;Stato&nbsp;Clima\nheader:\n&nbsp;&nbsp;type:&nbsp;picture\n&nbsp;&nbsp;image:&nbsp;local\/myimages\/id3_business.png\n&nbsp;&nbsp;tap_action:\n&nbsp;&nbsp;&nbsp;&nbsp;action:&nbsp;none\n&nbsp;&nbsp;hold_action:\n&nbsp;&nbsp;&nbsp;&nbsp;action:&nbsp;none\ntitle:&nbsp;ID.3\nshow_header_toggle:&nbsp;false\nstate_color:&nbsp;true<\/code><\/pre>\n\n<p>Alternatively, you can also create the card using the visual editor (you can also visually modify the card I created by copying the code, saving it and pressing the &#8220;<em>Show Visual Editor<\/em>&#8221; button).<\/p>\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n<p>In this guide we have seen how to get data from WeConnect ID to use in Home Assistant and how to create a custom dashboard to view the status of the car. With this data we could create interesting automations such as creating more complex charging modes in combination with a wallbox connected to Home Assistant.<\/p>\n\n<p>If you liked this guide, follow the page on social networks (click on the icons at the bottom of the page) to be informed about all the new articles I will write.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently bought a Volkswagen ID.3 and in this guide we will see how to import the data displayed by the Volkswagen WeConnect ID app into the Home Assistant and how to create sensors to record various data such as the battery charge status, the autonomy, the charging power in Watts (which at the moment it is not possible to obtain from the car infotainment) and much more. Before we start In this guide I will assume that you have &#8230; <\/p>\n<div><a href=\"https:\/\/www.davidezanatta.com\/blog\/volkswagen-weconnect-id-in-home-assistant-and-custom-dashboard-for-id-3\/?lang=en\" class=\"more-link\">Read More<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[32,33,34,35],"_links":{"self":[{"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/posts\/321"}],"collection":[{"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":9,"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":375,"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/posts\/321\/revisions\/375"}],"wp:attachment":[{"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.davidezanatta.com\/blog\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}