{"id":1322,"date":"2022-12-31T10:53:43","date_gmt":"2022-12-31T10:53:43","guid":{"rendered":"https:\/\/www.creatingsmarthome.com\/?p=1322"},"modified":"2022-12-31T10:53:43","modified_gmt":"2022-12-31T10:53:43","slug":"home-assistant-tesla-charger-release-button","status":"publish","type":"post","link":"https:\/\/www.creatingsmarthome.com\/index.php\/2022\/12\/31\/home-assistant-tesla-charger-release-button\/","title":{"rendered":"Home Assistant: Tesla Charger Release Button"},"content":{"rendered":"\n<p>If you own a Tesla EV and don&#8217;t have original Tesla charger you might missing one crucial thing that makes your life much easier: <em><a rel=\"noreferrer noopener\" href=\"https:\/\/www.tesla.com\/ownersmanual\/model3\/en_tw\/GUID-BEE08D47-0CE0-4BDD-83F2-9854FB3D578F.html\" data-type=\"URL\" data-id=\"https:\/\/www.tesla.com\/ownersmanual\/model3\/en_tw\/GUID-BEE08D47-0CE0-4BDD-83F2-9854FB3D578F.html\" target=\"_blank\">Tesla button<\/a><\/em>. It unlocks your active charger when the mobile key is nearby and charger handle button is pressed.<\/p>\n\n\n\n<p>Normally without this specific Tesla button a person needs to open app and unlock the charger from there. Or enter the car and press release button from the main display, not very handy. <\/p>\n\n\n\n<p>I&#8217;m one of those who don&#8217;t have the original <a rel=\"noreferrer noopener\" href=\"https:\/\/www.tesla.com\/support\/home-charging-installation\/wall-connector\" data-type=\"URL\" data-id=\"https:\/\/www.tesla.com\/support\/home-charging-installation\/wall-connector\" target=\"_blank\">Tesla wall connector<\/a>, but I own a <a rel=\"noreferrer noopener\" href=\"https:\/\/wallbox.com\/en_uk\/wallbox-pulsar\" data-type=\"URL\" data-id=\"https:\/\/wallbox.com\/en_uk\/wallbox-pulsar\" target=\"_blank\">Wallbox Pulsar Plus<\/a> instead, so I don&#8217;t have access to the charger button either. However, there&#8217;s a solution that we can use with <a rel=\"noreferrer noopener\" href=\"https:\/\/www.home-assistant.io\" data-type=\"URL\" data-id=\"https:\/\/www.home-assistant.io\" target=\"_blank\">Home Assistant<\/a> and <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/alandtse\/tesla\" data-type=\"URL\" data-id=\"https:\/\/github.com\/alandtse\/tesla\" target=\"_blank\">Tesla custom component<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tesla custom component<\/h2>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/alandtse\/tesla\" data-type=\"URL\" data-id=\"https:\/\/github.com\/alandtse\/tesla\" target=\"_blank\">Tesla custom component<\/a> is an unofficial Home Assistant integration of Tesla API. It offers most important entities to Home Assistant directly from Tesla. In the <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/alandtse\/tesla\" data-type=\"URL\" data-id=\"https:\/\/github.com\/alandtse\/tesla\" target=\"_blank\">webpage<\/a> there are nice clear instructions how to set this up (tip: use <a rel=\"noreferrer noopener\" href=\"https:\/\/hacx.xyz\/\" data-type=\"URL\" data-id=\"https:\/\/hacx.xyz\/\" target=\"_blank\">HACS<\/a>). Once installed and configured, entity named &#8216;Charge port unlatch&#8217; can be found. It does exact the same thing as the official Tesla button, but through cloud\/internet. And since it&#8217;s from the cloud, it&#8217;s not as fast as the wall connector button (e.g. instant), but good enough for this purpose!<\/p>\n\n\n\n<p>The integration also provides many other useful entities and services for the Home Assistant, but more about those on other automation posts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The button<\/h2>\n\n\n\n<p>For this it&#8217;s possible to use ANY Home Assistant supported button. I&#8217;m having bunch of ZigBee powered <a href=\"https:\/\/www.ikea.com\/us\/en\/p\/tradfri-shortcut-button-white-smart-20356382\/\" data-type=\"URL\" data-id=\"https:\/\/www.ikea.com\/us\/en\/p\/tradfri-shortcut-button-white-smart-20356382\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ikea Tr\u00e5dfri Shortcut Buttons<\/a> lying around in the closet so I will be using those. In my environment the connection from the Zigbee Button to Home Assistant is made through <a rel=\"noreferrer noopener\" href=\"https:\/\/phoscon.de\/en\/conbee2\" data-type=\"URL\" data-id=\"https:\/\/phoscon.de\/en\/conbee2\" target=\"_blank\">Conbee II<\/a>. <\/p>\n\n\n\n<p>What I like with these shortcut buttons is the removable cover and possibility to place a custom icon inside it. So I just decided to print out the &#8220;type 2&#8221; charger icon on it using <a rel=\"noreferrer noopener\" href=\"https:\/\/www.reddit.com\/r\/tradfri\/comments\/or5kmp\/tradfri_button_label_blank_template_true_size_a4\/\" data-type=\"URL\" data-id=\"https:\/\/www.reddit.com\/r\/tradfri\/comments\/or5kmp\/tradfri_button_label_blank_template_true_size_a4\/\" target=\"_blank\">pre-made templates<\/a> and copy-pasting the &#8220;type 2&#8221; <a href=\"https:\/\/materialdesignicons.com\/icon\/ev-plug-type2\" data-type=\"URL\" data-id=\"https:\/\/materialdesignicons.com\/icon\/ev-plug-type2\" target=\"_blank\" rel=\"noreferrer noopener\">material design icon<\/a> on it.<\/p>\n\n\n\n<p>The button is taped indoor space near front entrance. I though that would be the best location for the button so I can easily tap it when going out to the car.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"438\" src=\"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2022\/12\/tradfri_tesla.jpg\" alt=\"\" class=\"wp-image-1331\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Automation<\/h2>\n\n\n\n<p>Again, the automation is just very simple: triggers when button is pressed and action is to unlatch the charger port. This should only work while the car is not at home, since I don&#8217;t want anyone press the button when the car is elsewhere. Therefore I&#8217;m also adding a condition for Tesla location tracker when not home (location tracker is also provided by the Tesla custom integration).<\/p>\n\n\n\n<p>Here&#8217;s the code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: \"Car: Unlock charge port\"\ndescription: Unlock Tesla charger when button is pressed and car is at home\ntrigger:\n  - device_id: 0d9b728225e65e2786962df407ce57da\n    domain: deconz\n    platform: device\n    type: remote_button_short_press\n    subtype: \"\"\ncondition:\n  - condition: state\n    entity_id: device_tracker.tesla_location_tracker\n    state: home\naction:\n  - device_id: dded8a07c80acc46b2f6a2a1cc0a76b9\n    domain: lock\n    entity_id: lock.tesla_charge_port_latch\n    type: unlock\n    enabled: true\nmode: single<\/code><\/pre>\n\n\n\n<p>If you wish to use the code above, make sure to change all the entities to your own system.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you own a Tesla EV and don&#8217;t have original Tesla charger you might missing one crucial thing that makes your life much easier: Tesla&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1332,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[100,2],"tags":[105,239,235,205,7,236,238,208,237,240],"class_list":["post-1322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-home-assistant","category-inspiration","tag-automation","tag-charge-button","tag-charger","tag-ev","tag-home-assistant","tag-ikea","tag-shortcut-button","tag-tesla","tag-tradfri","tag-unlatch","has-post-thumbnail-archive"],"acf":[],"featured_image_src":"https:\/\/www.creatingsmarthome.com\/wp-content\/uploads\/2022\/12\/tesla_charging.jpg","author_info":{"display_name":"Toni","author_link":"https:\/\/www.creatingsmarthome.com\/index.php\/author\/topsy\/"},"_links":{"self":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts\/1322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/comments?post=1322"}],"version-history":[{"count":13,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts\/1322\/revisions"}],"predecessor-version":[{"id":1339,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/posts\/1322\/revisions\/1339"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/media\/1332"}],"wp:attachment":[{"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/media?parent=1322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/categories?post=1322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creatingsmarthome.com\/index.php\/wp-json\/wp\/v2\/tags?post=1322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}