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

podświetlone jako qbasic (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
 
| Katalog Sklepów internetowych | | Wózki dla dzieci | | Skracacz linków | | Blogi za darmo | | Gdzie przenieść blog za darmo? | | Załóż za darmo bloga | | Wklejacz kodów | | Gnieżdżewo | | Smutne Opisy | | Pionowe opisy |