Do not post pictures of code. Please paste in the actual code as formatted text like @Sir_Goodenough showed you in his earlier post.
If you’re having an issue with your automation, it’s probably because the entity_id is messed up.
It should either be all human readable, like switch.your_sensor, or else it’ll be an alphanumeric value.
You seem to have both in the same line. Read this to learn more about it Why and how to avoid device_ids in automations and scripts