Change the attribute of a sensor through automation?

Just do it in the frontend with this: