Help with last changed template

Last changed isn’t an attribute. It’s a property of the object. So in that case you have to use:

states.switch.luz_led_cocina.last_changed

Petro wrote a great post on this: