Cannot get button card to return entity name, image, or url

I have been trying to integrate Spotify into custom button cards and I can’t figure out why some of the cards can’t -’[[[ return value(‘sensor.attributes.name’) ]]]’ - . The sensors were setup through Node-red. I am fairly new to HA and very new to node-red, any help is appreciated. Thank you!