Kashub's Code Barn - "Home assistant automation to show loyalty barcode, list and app link when entering a store"

podświetlone jako plsql (dodał(a) Kashub @ 2025-01-30 08:24:38)

Twoja wyszukiwarka
Parcel ABC
Podświetl ten kod w:
Ostatnio dodane:
Losowe wpisy:
alias: Show notification WITH link TO google keep shopping list / app (IF applicable) / loyalty card barcode (IF applicable) WHEN you entering a store
description: "(define zones first in Settings -> Areas, labels and zones -> Zones)"
triggers:
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.asda_farnborough
    event: enter
    id: asda-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.lidl_aldershot
    event: enter
    id: lidl-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.lidl_farham
    event: enter
    id: lidl-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.lidl_farborough
    event: enter
    id: lidl-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.morrison_s
    event: enter
    id: morrisons-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.sainsbury_s_aldershot
    event: enter
    id: sby-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.sainsbury_s_farnham
    event: enter
    id: sbyf-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.tesco_aldershot
    event: enter
    id: tesco-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.ikea_reading
    event: enter
    id: ikea-g
    TRIGGER: ZONE
  - entity_id: person.your_person_entity_here
    ZONE: ZONE.polski_sklep_aldershot
    event: enter
    id: pl
    TRIGGER: ZONE
conditions: []
actions:
  - choose:
      - conditions:
          - condition: TRIGGER
            id:
              - tesco-g
        sequence:
          - data:
              message: Welcome AT Tesco!
              data:
                image: >-
                  https://your.external.domain.OR.ui.nabu.casa/local/shopcards/tesco.jpg
                actions:
                  - action: URI
                    title: List
                    uri: >-
                      https://keep.google.com/#LIST/xxxxxxxxxIDxOFxGOOGLExKEEPxLISTxFORxTESCOxxxxx
                  - action: URI
                    title: App
                    uri: app://com.tesco.grocery.VIEW
                  - action: URI
                    title: Barcode
                    uri: >-
                      https://your.external.domain.OR.ui.nabu.casa/local/shopcards/tesco.jpg
            action: notify.mobile_app_your_phone_entity_here
      - conditions:
          - condition: TRIGGER
            id:
              - morrisons-g
        sequence:
          - data:
              message: Welcome AT Morrison's!
              data:
                image: >-
                  https://your.external.domain.or.ui.nabu.casa/local/shopcards/morrisons.jpg
                actions:
                  - action: URI
                    title: List
                    uri: >-
                      https://keep.google.com/#LIST/xxxxxxxxxIDxOFxGOOGLExKEEPxLISTxFORxMORRISONSxxxxx
                  - action: URI
                    title: App
                    uri: app://com.morrisons.matchandmore.app
                  - action: URI
                    title: Barcode
                    uri: >-
                      https://your.external.domain.or.ui.nabu.casa/local/shopcards/morrisons.jpg
            action: notify.mobile_app_your_phone_entity_here
      - conditions:
          - condition: trigger
            id:
              - ikea-g
        sequence:
          - data:
              message: Welcome at Ikea!
              data:
                actions:
                  - action: URI
                    title: List
                    uri: >-
                      https://keep.google.com/#LIST/xxxxxxxxxIDxOFxGOOGLExKEEPxLISTxFORxIKEAxxxxx
                  - action: URI
                    title: App
                    uri: app://com.ingka.ikea.app
                  - action: URI
                    title: Barcode
                    uri: >-
                      https://your.external.domain.or.ui.nabu.casa/local/shopcards/ikea.jpg
            action: notify.mobile_app_your_phone_entity_here
      - conditions:
          - condition: trigger
            id:
              - lidl-g
        sequence:
          - data:
              message: Welcome at Lidl!
              data:
                actions:
                  - action: URI
                    title: List
                    uri: >-
                      https://keep.google.com/#LIST/xxxxxxxxxIDxOFxGOOGLExKEEPxLISTxFORxLIDLxxxxx
                  - action: URI
                    title: App
                    uri: app://com.lidl.eci.lidlplus
                  - action: URI
                    title: Barcode
                    uri: >-
                      https://your.external.domain.or.ui.nabu.casa/local/shopcards/lidl.jpg
            action: notify.mobile_app_your_phone_entity_here
      - conditions:
          - condition: trigger
            id:
              - sby-g
              - sbyf-g
        sequence:
          - data:
              message: Welcome at Sainsbury's! Here IS your card
              data:
                image: >-
                  https://your.external.domain.OR.ui.nabu.casa/local/shopcards/nectar.jpg
                actions:
                  - action: URI
                    title: List
                    uri: >-
                      https://keep.google.com/#LIST/xxxxxxxxxIDxOFxGOOGLExKEEPxLISTxFORxSAINSBURYSxxxxx
                  - action: URI
                    title: App
                    uri: app://com.ga.loyalty.android.nectar.activities
                  - action: URI
                    title: Barcode
                    uri: >-
                      https://your.external.domain.OR.ui.nabu.casa/local/shopcards/nectar.jpg
            action: notify.mobile_app_your_phone_entity_here
      - conditions:
          - condition: TRIGGER
            id:
              - asda-g
        sequence:
          - data:
              message: Welcome AT ASDA! Here IS your card
              data:
                image: >-
                  https://your.external.domain.OR.ui.nabu.casa/local/shopcards/asda.jpg
                actions:
                  - action: URI
                    title: List
                    uri: >-
                      https://keep.google.com/#LIST/xxxxxxxxxIDxOFxGOOGLExKEEPxLISTxFORxASDAxxxxx
                  - action: URI
                    title: App
                    uri: app://com.asda.rewards
                  - action: URI
                    title: Barcode
                    uri: >-
                      https://your.external.domain.OR.ui.nabu.casa/local/shopcards/asda.jpg
            action: notify.mobile_app_your_phone_entity_here
      - conditions:
          - condition: TRIGGER
            id:
              - pl
        sequence:
          - data:
              message: Welcome AT Polish shop! (no app OR barcode here)
              data:
                actions:
                  - action: URI
                    title: List
                    uri: >-
                      https://keep.google.com/#LIST/xxxxxxxxxIDxOFxGOOGLExKEEPxLISTxFORxPOLISHxSHOPxxxxx
            action: notify.mobile_app_your_phone_entity_here
MODE: single
 
| Sklep z artykułami dla dzieci | | Sklep z oponami | | Opony letnie | | Opony specjalne | | Kamery IP sklep | | Programista Trójmiasto | | Blogi za darmo | | Smutne Opisy | | Opisy GG | | Pionowe opisy |