{"id":753,"date":"2021-08-07T12:47:26","date_gmt":"2021-08-07T10:47:26","guid":{"rendered":"https:\/\/smart-4u.de\/?p=753"},"modified":"2021-11-13T11:54:05","modified_gmt":"2021-11-13T10:54:05","slug":"apds-9960-gesten-sensor-mit-esphome-an-homeassistant","status":"publish","type":"post","link":"https:\/\/smart-4u.de\/?p=753","title":{"rendered":"APDS-9960 Gesten Sensor mit ESPHome in Homeassistant."},"content":{"rendered":"\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-3\">\n<div class=\"wp-block-column is-layout-flow\" style=\"flex-basis:33.33%\">\n<h4><span class=\"has-inline-color has-vivid-cyan-blue-color\">Vorraussetzungen<\/span><\/h4>\n<ul>\n<li><a href=\"https:\/\/www.home-assistant.io\/\" target=\"_blank\" rel=\"noopener\">Home Assistant<\/a><\/li>\n<li><a href=\"https:\/\/esphome.io\/\" target=\"_blank\" rel=\"noopener\">ESPHome<\/a><\/li>\n<li><a href=\"https:\/\/amzn.to\/3fVguYr\" target=\"_blank\" rel=\"noopener\">3D Drucker<\/a><\/li>\n<li><a href=\"https:\/\/amzn.to\/3prMCGj\">L\u00f6tkolben<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/esphome\/esphome-flasher\/releases\" target=\"_blank\" rel=\"noopener\">ESP Home Flasher<\/a><\/li>\n<\/ul>\n<h4><span class=\"has-inline-color has-vivid-cyan-blue-color\">Komponenten<\/span><\/h4>\n<ul>\n<li><strong><a href=\"https:\/\/www.az-delivery.de\/products\/d1-mini?_pos=2&amp;_sid=b2b2de7a0&amp;_ss=r\" target=\"_blank\" rel=\"noopener\">D1 Mini<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/amzn.to\/3AjtvSX\" target=\"_blank\" rel=\"noopener\">APDS-9960<\/a><\/strong><\/li>\n<\/ul>\n<h4><span class=\"has-inline-color has-vivid-cyan-blue-color\">N\u00fctzliche Dateien<\/span><\/h4>\n<ul>\n<li><a href=\"https:\/\/www.thingiverse.com\/thing:2854012\" target=\"_blank\" rel=\"noopener\">3D Druckdaten<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><\/h4>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow\" style=\"flex-basis:66.66%\">\n<h4 class=\"has-text-align-center\"><span class=\"has-inline-color has-vivid-cyan-blue-color\" style=\"color: #000000;\">Anleitung<\/span><\/h4>\n<p><span class=\"has-inline-color has-black-color\" style=\"color: #000000;\">Um einen <a href=\"https:\/\/amzn.to\/3AjtvSX\"><span style=\"color: #0000ff;\"><strong>APDS-9960 <\/strong><\/span><\/a>in Home Assistant einzubinden, \u00fcberlegen wir uns erstmal die Funktion des Projekts.<\/span><\/p>\n<p><span class=\"has-inline-color has-black-color\" style=\"color: #000000;\">Der Sensor soll eine Bewegungsrichtung erkennen und diese in Home Assistant weitergeben damit wir z.b Automatisierung erstellen k\u00f6nnen. Zum Beispiel von Links nach Rechts oder von Oben nach Unten.<br><\/span><\/p>\n<p><span style=\"color: #000000;\">Alle ben\u00f6tigten Bauteile findet Ihr \u00fcbrigens hier:<\/span> <a href=\"https:\/\/www.az-delivery.de\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-708 size-large\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ.jpg?resize=1024%2C341&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"341\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?resize=1024%2C341&amp;ssl=1 1024w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?resize=300%2C100&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?resize=768%2C256&amp;ssl=1 768w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?resize=1536%2C512&amp;ssl=1 1536w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?resize=2048%2C682&amp;ssl=1 2048w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?resize=600%2C200&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?resize=228%2C76&amp;ssl=1 228w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/07\/AZ-scaled.jpg?w=2280&amp;ssl=1 2280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><\/p>\n<p><span class=\"has-inline-color has-black-color\" style=\"color: #000000;\"><strong data-wp-editing=\"1\">Nun Zur Praxis:<\/strong><\/span><\/p>\n\n\n\n<ul>\n<li><span style=\"color: #000000;\">W\u00e4hlt in Eurer Home Assistant instanz in das Add-on ESPHome aus.<\/span><\/li>\n<li><span style=\"color: #000000;\">Klickt unten rechts auf das Gr\u00fcne +<\/span><\/li>\n<li><span style=\"color: #000000;\">W\u00e4hlt jetzt den Namen wie Ihr Euren <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.az-delivery.de\/products\/d1-mini?_pos=2&amp;_sid=b2b2de7a0&amp;_ss=r\" target=\"_blank\" rel=\"noopener\"><strong>D1 Mini<\/strong><\/a><\/span> nennen wollt. Im meinem Fall richtungserkennung. <\/span><br><span style=\"color: #000000;\">ACHTUNG! Es d\u00fcrfen nur Kleinbuchstaben verwendet werden.<\/span><\/li>\n<li><span style=\"color: #000000;\">Klickt auf &#8220;Next&#8221;<\/span><\/li>\n<li><span style=\"color: #000000;\">W\u00e4hlt jetzt unter Device \u201eWemos D1 and Wemos D1 mini\u201c aus.<\/span><\/li>\n<li><span style=\"color: #000000;\">Klickt auf &#8220;Next&#8221;<\/span><\/li>\n<li><span style=\"color: #000000;\">Gebt bei \u201eWifi SSID\u201c den Namen Eures WLAN Netzwerkes ein. Und bei \u201eWifi Password\u201c entsprechend Euer WLAN Passwort.<\/span><\/li>\n<li><span style=\"color: #000000;\">Das Feld OTA Password k\u00f6nnt Ihr frei lassen.<\/span><\/li>\n<li><span style=\"color: #000000;\">Klickt auf \u201eSubmit\u201c<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">Ihr solltet jetzt folgendes Feld sehen:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"484\" height=\"157\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/00.png?resize=484%2C157&#038;ssl=1\" alt=\"\" class=\"wp-image-754\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/00.png?w=484&amp;ssl=1 484w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/00.png?resize=300%2C97&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/00.png?resize=228%2C74&amp;ssl=1 228w\" sizes=\"(max-width: 484px) 100vw, 484px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p><span style=\"color: #000000;\"><strong>Nun Programmieren wir den D1 Mini!<\/strong><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Klickt auf \u201eedit\u201c<\/span><\/li>\n<li><span style=\"color: #000000;\">Kopiert den untenstehenden Code und f\u00fcgt Ihn in ESPHome unterhalb von logger ein und ersetzt Euer API und OTA Passwort.<br><\/span><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>esphome:\n  name: richtungserkennung\n  platform: ESP8266\n  board: d1_mini\n\nwifi:\n  ssid: \"EUERWLAN\"\n  password: \"EUERWLANKENNWORT\"\n\ncaptive_portal:\n\nlogger:\n\napi:\n  password: \"EUERAPIKENNWORT\"\n\nota:\n  password: \"EUEROVERTHEAIRPASSWORT\"\n\ni2c:\n  sda: D1 \n  scl: D2 \n  scan: true\n  id: i2c_bus_1\n\napds9960:\n  address: 0x39\n  update_interval: 1s\n\nbinary_sensor:\n  - platform: apds9960\n    direction: UP\n    id: apds960_up\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: \"UP\"\n\n  - platform: apds9960\n    direction: DOWN\n    id: apds960_down\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: \"DOWN\"\n\n  - platform: apds9960\n    direction: LEFT\n    id: apds960_left\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: \"LEFT\"\n\n  - platform: apds9960\n    direction: RIGHT\n    id: apds960_right\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: \"RIGHT\"\n\ntext_sensor:\n  - platform: template\n    name: \"direction_status\"\n    id: direction_status<a href=\"esphome:\n  name: richtungserkennung\n  platform: ESP8266\n  board: d1_mini\n\nwifi:\n  ssid: &quot;EUERWLAN&quot;\n  password: &quot;EUERWLANKENNWORT&quot;\n\ncaptive_portal:\n\nlogger:\n\napi:\n  password: &quot;EUERAPIKENNWORT&quot;\n\nota:\n  password: &quot;EUEROVERTHEAIRPASSWORT&quot;\n\ni2c:\n  sda: D1 \n  scl: D2 \n  scan: true\n  id: i2c_bus_1\n\napds9960:\n  address: 0x39\n  update_interval: 1s\n\nbinary_sensor:\n  - platform: apds9960\n    direction: UP\n    id: apds960_up\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;UP&quot;\n\n  - platform: apds9960\n    direction: DOWN\n    id: apds960_down\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;DOWN&quot;\n\n  - platform: apds9960\n    direction: LEFT\n    id: apds960_left\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;LEFT&quot;\n\n  - platform: apds9960\n    direction: RIGHT\n    id: apds960_right\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;RIGHT&quot;\n\ntext_sensor:\n  - platform: template\n    name: &quot;direction_status&quot;\n    id: direction_status\" data-type=\"URL\" data-id=\"esphome:\n  name: richtungserkennung\n  platform: ESP8266\n  board: d1_mini\n\nwifi:\n  ssid: &quot;EUERWLAN&quot;\n  password: &quot;EUERWLANKENNWORT&quot;\n\ncaptive_portal:\n\nlogger:\n\napi:\n  password: &quot;EUERAPIKENNWORT&quot;\n\nota:\n  password: &quot;EUEROVERTHEAIRPASSWORT&quot;\n\ni2c:\n  sda: D1 \n  scl: D2 \n  scan: true\n  id: i2c_bus_1\n\napds9960:\n  address: 0x39\n  update_interval: 1s\n\nbinary_sensor:\n  - platform: apds9960\n    direction: UP\n    id: apds960_up\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;UP&quot;\n\n  - platform: apds9960\n    direction: DOWN\n    id: apds960_down\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;DOWN&quot;\n\n  - platform: apds9960\n    direction: LEFT\n    id: apds960_left\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;LEFT&quot;\n\n  - platform: apds9960\n    direction: RIGHT\n    id: apds960_right\n    on_state:\n      then:\n        - text_sensor.template.publish:\n            id: direction_status\n            state: &quot;RIGHT&quot;\n\ntext_sensor:\n  - platform: template\n    name: &quot;direction_status&quot;\n    id: direction_status\">\n<\/a><\/code><\/pre>\n\n\n\n<p><span style=\"color: #000000;\">Das Ganze sollte nun so aussehen erg\u00e4nzt mit Euren Daten:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"466\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?resize=1024%2C466&#038;ssl=1\" alt=\"\" class=\"wp-image-755\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?resize=1024%2C466&amp;ssl=1 1024w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?resize=300%2C136&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?resize=768%2C349&amp;ssl=1 768w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?resize=1536%2C699&amp;ssl=1 1536w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?resize=600%2C273&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?resize=228%2C104&amp;ssl=1 228w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/01.png?w=1554&amp;ssl=1 1554w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"466\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?resize=1024%2C466&#038;ssl=1\" alt=\"\" class=\"wp-image-756\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?resize=1024%2C466&amp;ssl=1 1024w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?resize=300%2C137&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?resize=768%2C349&amp;ssl=1 768w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?resize=1536%2C699&amp;ssl=1 1536w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?resize=600%2C273&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?resize=228%2C104&amp;ssl=1 228w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/02.png?w=1556&amp;ssl=1 1556w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p><span style=\"color: #000000;\">Klickt nun auf &#8220;SAFE&#8221; und anschlie\u00dfend auf &#8220;Install&#8221;. Folgendes Fenster \u00f6ffnet sich:<br><\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"493\" height=\"416\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/03.png?resize=493%2C416&#038;ssl=1\" alt=\"\" class=\"wp-image-757\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/03.png?w=493&amp;ssl=1 493w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/03.png?resize=300%2C253&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/03.png?resize=137%2C116&amp;ssl=1 137w\" sizes=\"(max-width: 493px) 100vw, 493px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>Nachdem Ihr auf &#8220;Manualy download&#8221; geklickt habt m\u00f6chte folgende Datei gespeichert werden:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"434\" height=\"297\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/04.png?resize=434%2C297&#038;ssl=1\" alt=\"\" class=\"wp-image-758\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/04.png?w=434&amp;ssl=1 434w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/04.png?resize=300%2C205&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/04.png?resize=170%2C116&amp;ssl=1 170w\" sizes=\"(max-width: 434px) 100vw, 434px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p><strong>Nun geht es an L\u00f6ten:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"504\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/Schmeatic.png?resize=1024%2C504&#038;ssl=1\" alt=\"\" class=\"wp-image-759\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/Schmeatic.png?resize=1024%2C504&amp;ssl=1 1024w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/Schmeatic.png?resize=300%2C148&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/Schmeatic.png?resize=768%2C378&amp;ssl=1 768w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/Schmeatic.png?resize=600%2C295&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/Schmeatic.png?resize=228%2C112&amp;ssl=1 228w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/Schmeatic.png?w=1216&amp;ssl=1 1216w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><figcaption>Schaltbild<\/figcaption><\/figure>\n\n\n\n<p><span style=\"color: #000000;\"><strong>Verkabelung<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Kommen wir zur Verdrahtung der einzelnen Komponenten. Ich habe die Stromversorgung ausschlie\u00dflich \u00fcber den Ground Pin und den \u00a7V Pin vom <\/span><span style=\"color: #33cccc;\"><strong><a style=\"color: #33cccc;\" href=\"https:\/\/www.az-delivery.de\/products\/d1-mini?_pos=2&amp;_sid=b2b2de7a0&amp;_ss=r\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #3366ff;\"><span style=\"color: #0000ff;\">D1 Mini<\/span><\/span><\/a><\/strong><\/span><span style=\"color: #000000;\"> realisiert und diesen per USB an ein Netzteil angeschlossen. <\/span><span style=\"color: #ff0000;\">VCC<\/span><span style=\"color: black;\"> kommt an <\/span><span style=\"color: #ff0000;\">3V<span style=\"color: #000000;\">. <span style=\"color: #0000ff;\">SDA<\/span> an <span style=\"color: #0000ff;\">D1<\/span>,&nbsp;<\/span><\/span> <span style=\"color: #ffcc00;\">SCL<\/span><span style=\"color: black;\"> an <\/span><span style=\"color: #ffcc00;\">D2 <\/span><span style=\"color: black;\">und<\/span> <span style=\"color: #333333;\">GND<\/span><span style=\"color: black;\"> an den <\/span><span style=\"color: #333333;\">G PIN.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">Verbindet jetzt den <\/span><strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.az-delivery.de\/products\/d1-mini?_pos=2&amp;_sid=b2b2de7a0&amp;_ss=r\" target=\"_blank\" rel=\"noopener\">D1 Mini<\/a><\/span><\/strong><span style=\"color: #000000;\"> per USB an Euren PC. Und \u00f6ffnet das Programm <a style=\"color: #000000;\" href=\"https:\/\/github.com\/esphome\/esphome-flasher\/releases\" target=\"_blank\" rel=\"noopener\">ESP Home Flasher<\/a>.<br><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">W\u00e4hlt den COM Port aus mit dem Euer <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/www.az-delivery.de\/products\/d1-mini?_pos=2&amp;_sid=b2b2de7a0&amp;_ss=r\" target=\"_blank\" rel=\"noopener\">D1 Mini<\/a><\/strong><\/span> verbunden ist.<\/span><\/li>\n<li><span style=\"color: #000000;\">w\u00e4hlt die aus Home Assistant zuvor compilierte datei aus.<\/span><\/li>\n<li><span style=\"color: #000000;\">Klickt auf Flash ESP<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"709\" height=\"640\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/05.png?resize=709%2C640&#038;ssl=1\" alt=\"\" class=\"wp-image-760\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/05.png?w=709&amp;ssl=1 709w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/05.png?resize=300%2C271&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/05.png?resize=600%2C542&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/05.png?resize=129%2C116&amp;ssl=1 129w\" sizes=\"(max-width: 709px) 100vw, 709px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p><span style=\"color: #000000;\">Zur\u00fcck in Home Assistant sollte Ihr jetzt folgendes Ger\u00e4t in eine Lovelacecard integrieren k\u00f6nnen:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">direction_status<br><\/span><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"495\" height=\"76\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/06.png?resize=495%2C76&#038;ssl=1\" alt=\"\" class=\"wp-image-761\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/06.png?w=495&amp;ssl=1 495w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/06.png?resize=300%2C46&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/06.png?resize=228%2C35&amp;ssl=1 228w\" sizes=\"(max-width: 495px) 100vw, 495px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p><strong>Automatisierung:<\/strong><\/p>\n<p><span style=\"color: #000000;\">In meinem Fall m\u00f6chte ich gerne, dass bei einer Bewegung von Links nach rechts meine Kamera von der Haust\u00fcr auf meinem Google-Chrome gestreamt wird. Ihr k\u00f6nnt auch Licht an und ausschalten oder andere Aktoren f\u00fcr Eure Automatisierung verwenden.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"542\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?resize=1024%2C542&#038;ssl=1\" alt=\"\" class=\"wp-image-762\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?resize=1024%2C542&amp;ssl=1 1024w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?resize=300%2C159&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?resize=768%2C406&amp;ssl=1 768w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?resize=1536%2C813&amp;ssl=1 1536w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?resize=600%2C317&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?resize=219%2C116&amp;ssl=1 219w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a1.png?w=1648&amp;ssl=1 1648w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"540\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?resize=1024%2C540&#038;ssl=1\" alt=\"\" class=\"wp-image-763\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?resize=1024%2C540&amp;ssl=1 1024w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?resize=300%2C158&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?resize=768%2C405&amp;ssl=1 768w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?resize=1536%2C810&amp;ssl=1 1536w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?resize=600%2C317&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?resize=220%2C116&amp;ssl=1 220w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a2.png?w=1647&amp;ssl=1 1647w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"539\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?resize=1024%2C539&#038;ssl=1\" alt=\"\" class=\"wp-image-764\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?resize=1024%2C539&amp;ssl=1 1024w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?resize=300%2C158&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?resize=768%2C404&amp;ssl=1 768w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?resize=1536%2C808&amp;ssl=1 1536w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?resize=600%2C316&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?resize=221%2C116&amp;ssl=1 221w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/a3.png?w=1641&amp;ssl=1 1641w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p><span class=\"has-inline-color has-black-color\">Ich hoffe, ihr konntet etwas mit der anleitung anfangen \ud83d\ude09<\/span><\/p>\n\n\n\n<p><span class=\"has-inline-color has-black-color\" style=\"color: #000000;\">Bei fragen stehe ich Euch gerne zur Verf\u00fcgung. Folgt mir dazu doch einfach auf <a style=\"color: #000000;\" href=\"https:\/\/www.instagram.com\/smart4u.de\/\">Instagram<\/a>. <\/span><\/p>\n<p><span style=\"color: #000000;\">Wenn ich Euch helfen konnte und Ihr mich unterst\u00fcrtzen wollt, dann w\u00fcrde ich mich freuen, wenn Ihr mal bei meiner <a style=\"color: #000000;\" href=\"https:\/\/www.amazon.de\/hz\/wishlist\/ls\/3H9HCEXAB4SKK?ref_=wl_share\" target=\"_blank\" rel=\"noopener\">Amazon-Wunschliste<\/a> vorbeischaut. <\/span><\/p>\n<p><span style=\"color: #000000;\">Alles kann aber nichts muss!<\/span><\/p>\n<p><a href=\"https:\/\/www.amazon.de\/hz\/wishlist\/ls\/3H9HCEXAB4SKK?ref_=wl_share\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1046 size-full\" src=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/amazon-wunschliste.png?resize=698%2C300&#038;ssl=1\" alt=\"\" width=\"698\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/amazon-wunschliste.png?w=698&amp;ssl=1 698w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/amazon-wunschliste.png?resize=300%2C129&amp;ssl=1 300w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/amazon-wunschliste.png?resize=600%2C258&amp;ssl=1 600w, https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/amazon-wunschliste.png?resize=228%2C98&amp;ssl=1 228w\" sizes=\"(max-width: 698px) 100vw, 698px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vorraussetzungen Home Assistant ESPHome 3D Drucker L\u00f6tkolben ESP Home Flasher Komponenten D1 Mini APDS-9960 N\u00fctzliche Dateien 3D Druckdaten Anleitung Um einen APDS-9960 in Home Assistant einzubinden, \u00fcberlegen wir uns erstmal die Funktion des Projekts. Der Sensor soll eine Bewegungsrichtung erkennen und diese in Home Assistant weitergeben damit wir z.b Automatisierung erstellen k\u00f6nnen. Zum Beispiel von<\/p>\n<div><a class=\"btn-filled btn\" href=\"https:\/\/smart-4u.de\/?p=753\" title=\"APDS-9960 Gesten Sensor mit ESPHome in Homeassistant.\">Weiterlesen<\/a><\/div>\n","protected":false},"author":1,"featured_media":766,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[49,37,50,38],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/smart-4u.de\/wp-content\/uploads\/2021\/08\/bild-scaled.jpeg?fit=2560%2C1920&ssl=1","_links":{"self":[{"href":"https:\/\/smart-4u.de\/index.php?rest_route=\/wp\/v2\/posts\/753"}],"collection":[{"href":"https:\/\/smart-4u.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smart-4u.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smart-4u.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smart-4u.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=753"}],"version-history":[{"count":7,"href":"https:\/\/smart-4u.de\/index.php?rest_route=\/wp\/v2\/posts\/753\/revisions"}],"predecessor-version":[{"id":1054,"href":"https:\/\/smart-4u.de\/index.php?rest_route=\/wp\/v2\/posts\/753\/revisions\/1054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smart-4u.de\/index.php?rest_route=\/wp\/v2\/media\/766"}],"wp:attachment":[{"href":"https:\/\/smart-4u.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smart-4u.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smart-4u.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}