MQTT problems since Version core-2021.3.2

Hey,

since i installed the new version I have problems withthe new mqtt.publish editor:

My old actions can’t be translated to the new mqtt publish editor. If I try to rebuild these with the editor I can’t:

Old yaml

service: mqtt.publish
data:
  topic: homeassistant/bad1/music_state
  payload_template: '{{ states(''media_player.bad'') }}'

Trying to rebuild with the same values the payload_template is always filled with a

'[object Object]': null

I also tried other alternatives for the payload_template:

 {{ states('media_player.bad') }}
"{{ states('media_player.bad') }}"

For the following version the editor says: "Templates not supported in visual editor"

service: mqtt.publish
data:
  payload_template: '{{ states(''media_player.bad'') }}'
  topic: 'homeassistant/bad1/music_state'

Any idea?