I have searched and read but something isn’t clicking for me obviously so a post here is my last resort ( I really want to understand rather than just get the answer).
I have an automation rule:
alias: Notification - Printer Ink Low
description: ''
trigger:
- type: value
platform: device
device_id: xxxxx
entity_id: sensor.mfc_xxxxx_black_ink_remaining
domain: sensor
below: 10
id: printer_black_ink_low
- type: value
platform: device
device_id: xxxxx
entity_id: sensor.mfc_xxxxx_cyan_ink_remaining
domain: sensor
below: 10
id: printer_cyan_ink_low
- type: value
platform: device
device_id: xxxxx
entity_id: sensor.mfc_xxxxx_magenta_ink_remaining
domain: sensor
below: 10
id: printer_megenta_ink_low
- type: value
platform: device
device_id: xxxxx
entity_id: sensor.mfc_xxxxx_yellow_ink_remaining
domain: sensor
below: 10
id: printer_yellow_ink_low
condition: []
action:
- service: notify.home_automation_group
data:
message: >-
You need to purchase new ink for the printer:
hXXps://www.amazon[.]co[.]uk/{URL TO INK NEEDED}
mode: single
What I am looking to achieve is the telegram message to say
{{ VARIABLE FOR Black/Cyan/Yellow ink etc }}
is low , you need to go and buy this {{ variable for each ink URL in amazon needed }}
Is there a cheat sheet on what variables can be used , or how I determine what variable I need to use etc. I think once I get it , its going to be simple.
Thanks for any advice