I have the following automation script and I would like to add to the message: part the value of sensor.to_work (waze time to destination) but not sure what the syntax is for that.
- id: '1566246742004'
alias: Traffic to work push notification
trigger:
- above: '30'
entity_id: sensor.to_work
platform: numeric_state
condition:
- after: 07:00
before: 08:00
condition: time
action:
- data:
message: Bad traffic on the commute to work
title: Traffic
service: notify.simplepush_notifier