Replies: 6 comments 4 replies
-
@wieluk alias: tgtg notify
trigger:
- platform: state
entity_id:
- sensor.long
- sensor.list
- sensor.of
- sensor.all
- sensor.tgtg
- sensor.stores
action:
- choose:
- conditions:
- condition: template
value_template: '{{ trigger.to_state.state | float >= 1 }}'
- condition: template
value_template: >-
{{ trigger.from_state.state | float == 0 or
trigger.from_state.state == "unavailable" }}
sequence:
#change notification method
- service: notify.mobile_app_iphone
data_template:
message: '''{{ trigger.from_state.attributes.friendly_name }}'''
|
Beta Was this translation helpful? Give feedback.
-
Hello all, Error: Error rendering data template: UndefinedError: 'dict object' has no attribute 'from_state' Does anyone know what can happen? |
Beta Was this translation helpful? Give feedback.
-
@linux-guru-com thanks i changed it in the post. I just saw the senors have new attributes like price and collection time. I will try to add these to the notification. |
Beta Was this translation helpful? Give feedback.
-
anything new here? i tried troubleshooting this for couple of hours but didnt found the issue. |
Beta Was this translation helpful? Give feedback.
-
For me it still works. What is your problem? What does not work? |
Beta Was this translation helpful? Give feedback.
-
Do you need to set all sensors
or only ? |
Beta Was this translation helpful? Give feedback.
-
I made this automation to notify me whenever a store I like has new items. I am just curious if you have a better way of doing it instead of listing all entity_id's. If not I just wanted to share because I would have liked a template :).
simple yaml for notification
Iphone with deleting messages
This one is for Iphone if you want to delete messages if stock is back to 0
I changed to android and I updated the yaml automation a little bit to also open the app tgtg app if i click on the notification.
Android yaml
Beta Was this translation helpful? Give feedback.
All reactions