von Simon
In Home Assistant kannst du mit der Abstand Integration herausfinden, wer sich dem zuhause nährt und auch, wie weit derjenige noch weg ist was viel Potenzial für Automationen bietet.
Schau dir mein Video an & entdecke das volle Potenzial von Abstands-Geofencing in Home Assistant und wie du es einrichten kannst, mit einigen Beispielen für Automationen!
Inhaltsverzeichnis
- Voraussetzungen
- Automationen
- Auf dem Weg
- Türen öffnen
- Fazit
Voraussetzungen
Die Grundlagen von Home Assistant sollten dir vertraut sein und ich würde dir empfehlen, die Home Assistant App auf allen Endgeräten der Personen zu installieren, die du verfolgen möchtest.
Schau auch gerne mal in meinem Exptertentipps-Video für einige Tipps rund um die App, wie diese eingerichtet sein sollte und was du bei Problemen tun kannst!
Automationen
Auf dem Weg
alias: Auf dem Wegdescription: Benachrichtigen, wenn sich jemand dem Haus näherttrigger: - platform: numeric_state entity_id: - sensor.sh42_arabella_oberstedt_entfernung for: hours: 0 minutes: 0 seconds: 15 below: 1000 id: Arabella - platform: numeric_state entity_id: - sensor.sh42_simon_muller_entfernung for: hours: 0 minutes: 0 seconds: 15 below: 1000 id: Simoncondition: []action: - choose: - conditions: - condition: trigger id: - Simon sequence: - service: notify.mobile_app_iphone15parabella metadata: {} data: message: Simon ist fast zuhause title: 🏠 Auf dem Weg - conditions: - condition: trigger id: - Arabella sequence: - service: notify.mobile_app_iphone15parabella metadata: {} data: message: Arabella ist fast zuhause title: 🏠 Auf dem Wegmode: single
Türen öffnen
Für mehr Details, schau gerne mal hier vorbei 😉
alias: Türen öffnendescription: Öffnet die Haustür und Wohnungstür bei Ankunfttrigger: - platform: state entity_id: - sensor.sh42_arabella_oberstedt_fahrtrichtung from: towards to: arrived enabled: true id: Arabella - platform: state entity_id: - sensor.sh42_simon_muller_fahrtrichtung from: towards to: arrived enabled: true id: Simoncondition: - condition: or conditions: - type: is_not_open condition: device device_id: b3fb6caba13b81df5afabbc1aebe8859 entity_id: 9e4d8f62d11768ac2436a1c546031d2b domain: binary_sensor - type: is_not_open condition: device device_id: 795e199c81d2255ddbe001c597158154 entity_id: 1ecef2a94711e81ecaf8ff58be049885 domain: binary_sensor - condition: template value_template: >- {{ state_attr("automation.turen_offnen", "last_triggered") == None or ( as_timestamp(now()) - as_timestamp(state_attr("automation.automation.turen_offnen", "last_triggered")) |int(0) ) > 300 }} alias: Automation wurde nicht in den letzten 5 Minuten ausgeführt enabled: falseaction: - variables: action_open: "{{ 'OPEN_' ~ context.id }}" action_no: "{{ 'NO_' ~ context.id }}" - choose: - conditions: - condition: trigger id: - Simon sequence: - service: notify.mobile_app_iphone14psimon data: message: Möchtest du, dass ich die Türen öffne? (Geht 5 Min.) data: actions: - action: "{{ action_open }}" title: Öffnen - action: "{{ action_no }}" title: Nein title: Bitte gedrückt halten! - wait_for_trigger: - platform: event event_type: mobile_app_notification_action event_data: action: "{{ action_open }}" continue_on_timeout: false timeout: hours: 0 minutes: 5 seconds: 0 milliseconds: 0 - parallel: - if: - type: is_not_open condition: device device_id: b3fb6caba13b81df5afabbc1aebe8859 entity_id: 9e4d8f62d11768ac2436a1c546031d2b domain: binary_sensor then: - if: - condition: device device_id: 4c80468524dc95931a283f24a61e7243 domain: lock entity_id: dadad051515ba437b2a664b07b7c15e6 type: is_unlocked then: - device_id: 4c80468524dc95931a283f24a61e7243 domain: lock entity_id: dadad051515ba437b2a664b07b7c15e6 type: lock - delay: hours: 0 minutes: 0 seconds: 4 milliseconds: 0 - device_id: 4c80468524dc95931a283f24a61e7243 domain: lock entity_id: dadad051515ba437b2a664b07b7c15e6 type: unlock else: - device_id: 4c80468524dc95931a283f24a61e7243 domain: lock entity_id: dadad051515ba437b2a664b07b7c15e6 type: unlock alias: Wohnungstür Aktionen bedingt ausführen - alias: Haustür Aktionen bedingt ausführen if: - type: is_not_open condition: device device_id: 795e199c81d2255ddbe001c597158154 entity_id: 1ecef2a94711e81ecaf8ff58be049885 domain: binary_sensor then: - if: - condition: device device_id: 6cea6c4d797de7ed9bc3bb8cbdf5005d domain: lock entity_id: f9dc4db3d2b6a972f63a0dcfcb67d982 type: is_unlocked then: - device_id: 6cea6c4d797de7ed9bc3bb8cbdf5005d domain: lock entity_id: f9dc4db3d2b6a972f63a0dcfcb67d982 type: lock - delay: hours: 0 minutes: 0 seconds: 4 milliseconds: 0 - device_id: 6cea6c4d797de7ed9bc3bb8cbdf5005d domain: lock entity_id: f9dc4db3d2b6a972f63a0dcfcb67d982 type: unlock else: - device_id: 6cea6c4d797de7ed9bc3bb8cbdf5005d domain: lock entity_id: f9dc4db3d2b6a972f63a0dcfcb67d982 type: unlock - service: notify.notify metadata: {} data: message: >- Die {{ states('input_text.automations_temporary_text') }} wurde abgeschlossen title: Tür verriegeltmode: parallelmax: 2
Fazit
Mit der Abstands-Integration in Home Assistant kannst du leicht herausfinden, wer sich deinem Zuhause nähert und wie weit die Person noch entfernt ist. Das eröffnet zahlreiche Möglichkeiten für nützliche Automationen.
Schau dir mein Video an, um das volle Potenzial von Abstands-Geofencing in Home Assistant zu entdecken und zu erfahren, wie du es einrichtest – und wenn du welche hast, lass mir sehr gerne deine Beispiele da 💙
Integration Home Assistant Automation Smarthome
Tipps, Anfänger
Transparenz: In diesem Artikel sind Partnerlinks enthalten. Durch einen Klick darauf gelangt ihr direkt zum Anbieter. Solltet ihr euch dort für einen Kauf entscheiden, erhalte ich eine kleine Provision. Für euch ändert sich am Preis nichts & Partnerlinks haben keinerlei Einfluss auf meine Berichterstattung. Vielen Dank für deine Unterstützung!
Vorheriger
Meine 5 besten Home Assistant Experten-Tipps 🤫
Gründer von simon42. Schreibt hier ehrlich und leidenschaftlich über Smart Home und Technik Themen, denn das Zuhause wurde bereits von Sprachassistenten übernommen und die Kontrolle abgegeben 😁
Änliche Beiträge
- iCloud3 Integration in Home Assistant einrichten
- Home Assistant Google Home Sprachsteuerung 🗣️
- Home Assistant HomeKit Integration (richtig) einrichten
Hi Simon,
auf die Idee mit dem Tür öffnen bei Ankunft über Notifications war ich auch noch nicht gekommen - insoweit Daumen hoch für diese InspirationIch bin nur etwas verwirrt von dem Code-Block gegen Ende, aber vielleicht bin ich ja auch noch nicht ganz richtig wach
Nachdem die Tür entriegelt/geöffnet wurde, folgt ab Zeile 137 die Benachrichtigung
- service: notify.notify metadata: {} data: message: >- Die {{ states('input_text.automations_temporary_text') }} wurde abgeschlossen title: Tür verriegelt
Das ist doch eigentlich das genaue Gegenteil zu der Aktion, die zuvor gemacht wurde…?!
Kann ich über solche Zonen auch eine Automation einrichten, dass sich der Hotspot an meinem Handy (Pixel 6a) automatisch einschaltet, wenn ich mich der Zone “Parkplatz” nähere und aus, wenn ich mich in der Zone “Arbeit” befinde?
Wenn ja, wie?Hi, bei mir klappt es. Bei meiner Frau leider nicht. Welche Einstellungen sind in der Android App dazu noch nötig?
Diese Bereiche als Zonen anlegen und dann die entsprechende Automation dahinter bauen.
Das aktivieren des HotSpot könnte z.B. über Tasker funktionieren. Da ist dann aber auch fraglich, ob das überhaupt noch mit Home Assistant zu tun hat, da es ja um Dein Handy geht.
Die Zonen hab ich bereits angelegt. Danke für den Tipp mit Tasker! Ich probier das mal aus.
Ob das was mit Home Assistant zu tun hat ist natürlich fraglich. Aus meiner Sicht schon, da ich nicht wie sonst Lampen, sondern eben ein Handy steuern will. Also nur ein anderes Gerät, das mit HA gesteuert wird…
Kann man aber natürlich auch anders sehen.EDIT: Hab mir die Tasker-App mal genauer angeschaut. Ein Screenshot zeigt, dass sie wohl auch per Zonen etwas auslösen kann. Somit kann ich meine Idee mit dem Hotspot auch direkt in der App umsetzen und brauche somit den Umweg über HA nicht. Und damit hat es tatsächlich nichts mehr mit Home Assistant zu tun. Dennoch danke für den Tipp!
Setze die Diskussion fort unter community.simon42.com
5 mehr antworten
Teilnehmer
Kommentare sind geschlossen.
Mehr zu entdecken
Meine 5 besten Home Assistant Experten-Tipps 🤫
Smarthome Integration Add-on
Home Assistant auf Raspberry Pi 5/4/3 installieren (2024)
Install Smarthome Home Assistant
Integration Smarthome Home Assistant Energie
Home Assistant Wand Panel – Tablet Dashboard
Home Assistant Basics
Reviews Home Assistant Integration
Das neue Aqara Smart Lock U200 im Test
Reviews Smarthome Home Assistant
Smarthome Home Assistant Integration
NFC-Tags zum Triggern von Automationen in HA nutzen
Home Assistant Smarthome Automation
Der Luba 2 AWD 1000 Mähroboter im Test
Reviews Smarthome
Home Assistant Organisation
Home Assistant Automation Basics