Hello, I wanted to do the following automation.
When I enter the store area I want to receive a notification on my cell phone if the shopping list is not empty, if it is, I will not receive anything. Thank you
Hello, can you be a little more specific? I’m a bit new to this. Can you give me more details on how to do it? I really appreciate your help
Your question is very vague. Which part of the process are you stuck at? Is it the basic concept and setup of an automation, creating up a zone to use as the trigger, setting up the companion app so you have a device tracker and notifier… It’s difficult (and usually a waste of everybody’s time) for us to give advice on the next step if you don’t tell us any details.
Sorry for the few details. My main problem is with the condition. How do I check the status of my list and see if it is empty or not? This is the automation code
alias: Test list
description: ""
trigger:
- platform: zone
entity_id: person.rafael
zone: zone.compra_1
event: enter
condition:
- condition: state
entity_id: todo.lista_de_la_compra
attribute: supported_features
state: not empty
action:
- service: notify.mobile_app_iphone_de_rafael
metadata: {}
data:
message: Your list is not empty
title: Home Assistant
mode: single
Hi, welcome to the forum!
From Search results for 'check shopping list order:latest_topic' - Home Assistant Community
→ Send a notification when i enter a zone but only if my todo list has items - #4 by jeffcrum
Here you go.
You may need to adjust something, for example your shopping list location in lovelace. But with this automation you receive a notification when you are at the supermarket and there are groceries on the list.
alias: Shopping List Notification
description: Shopping list reminder when you are near the supermarket.
trigger:
- platform: zone
entity_id: person.rafael
zone: zone.compra_1
event: enter
condition:
- condition: numeric_state
entity_id: todo.shopping_list
above: 0
action:
- service: notify.mobile_app_iphone_de_rafael
data:
message: Open your shopping list?
data:
clickAction: /lovelace/shopping-list
url: /lovelace/shopping-list
mode: single
Thank you very much for your help. I’m dying to try it