I am not able to pass trigger.entity_id(devide that trigger) and trigger.for to telegram and tts.google_say
This is my code
alias: Sensors Not Available
description: ""
trigger:
- platform: state
entity_id:
- sensor.chest_frezer_temperature_2
- cover.garage_door
- sensor.temt6000_illuminance
- binary_sensor.refrigerator_door
- light.garage_lights
- light.bedroom_lights
to: unavailable
for:
hours: 99
minutes: 0
seconds: 1
- platform: state
entity_id:
- sensor.chest_frezer_temperature_2
- cover.garage_door
- sensor.temt6000_illuminance
- binary_sensor.refrigerator_door
- light.garage_lights
- light.bedroom_lights
to: unavailable
for:
hours: 99
minutes: 0
seconds: 10
condition:
- condition: sun
before: sunset
after: sunrise
action:
- service: telegram_bot.send_message
data:
message: sensors {{ trigger.entity_id }} not available for {{ trigger.for }}
- service: tts.google_say
data:
entity_id: all
message: sensors {{ trigger.entity_id }} not available for {{ trigger.for }}
mode: single