Hello,
I am asking for help with automation.
I would like to include the entity name in the message.
I have tried various described solutions but none of them works.
My code:
alias: Powiadomienie o śmieciach
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.wywoz_plastikow
attribute: days
above: '1'
below: '20'
condition:
- condition: time
after: '19:00:00'
enabled: false
action:
- device_id: 7b464799e69f1dbcc706915a30da715a
domain: mobile_app
type: notify
message: '{{trigger.to_state.attributes.friendly_name}}'
title: Wystawić śmieci
mode: single