State of Tradfri-lamps

Hello,

I have a problem with the Tradfri integration.
In the dashboard the lamps are displayed correctly. The brightness can be controlled.
I send the data of the lamp via an automation to an email address ( state_attr(“light.lampe_kalax”, “brightness”) ).
But in it the state (and also the attributes) are not output.

data:
  title: Temperatur Badezimmer
  message: >-
    current_temperature:{{ state_attr("climate.badzimmer",
    "current_temperature") }}#temperature:{{ state_attr("climate.badzimmer","temperature") }} Hell {{state_attr("light.lampe_kalax", "brightness")}}  
  target: [email protected]

Also sending the status (on/off) via RESTful does not work.
Only one entity is displayed per lamp.

Does anyone know advice?