When you create a script the name is not the same as the entity ID so find the correct matching one in states tab and that is the one you want. The name you set is actually the friendly name attribute.
When you create a script the name is not the same as the entity ID so find the correct matching one in states tab and that is the one you want. The name you set is actually the friendly name attribute.