Get the entity_id as string name in an automation

Hi, I try read name from triggered item and send message. my code is

alias: TestVoltage
description: ""
triggers:
  - entity_id:
      - sensor.sonoff_1001e7e22f_voltage_1
      - sensor.sonoff_1001e7e22f_voltage_2
      - sensor.sonoff_1001e7e242_voltage_1
      - sensor.sonoff_1001e7e242_voltage_2
    trigger: state
conditions: []
actions:
  - data:
      message: Voltage changed on {{ trigger.entity_id }} device!
      title: VOLT2.
    action: notify.evgen
mode: single

but it don’t work, I don’t receive any message
but if I change the row

message: Voltage changed on {{ trigger.entity_id }} device!

to

message: Voltage changed on {{ trigger.entity_id.name }} device!

I receive the message, but with empty name
how I can fix it and receive the {{ trigger.entity_id }} as string name?

The variable trigger.name should give the friendly name of the entity if it has one, else it will default to the entity ID. However, your trigger is currently set to fire on every state and attribute change of 4 sensors and set to single mode… that will likely cause the automation to error. At a bare minimum, you should limit the triggers to state changes by setting an empty to or from value, but it might also be worthwhile to set to automation mode to either queued or parallel

State Trigger

alias: TestVoltage
description: ""
triggers:
  - trigger: state
    entity_id:
      - sensor.sonoff_1001e7e22f_voltage_1
      - sensor.sonoff_1001e7e22f_voltage_2
      - sensor.sonoff_1001e7e242_voltage_1
      - sensor.sonoff_1001e7e242_voltage_2
    to: 
conditions: []
actions:
  - data:
      message: Voltage changed on {{ trigger.name }} device!
      title: VOLT2.
    action: notify.evgen
mode: queued