Script condition help

Thank you very much for yout feedback and your support. As you told I was not aware that condition in scripts work differently.

I will try to reach the same gol using automation maybe (because I’m not a programmer so I don’t have skills to write a python script.

Just to update everyone I devices to move over to Node-Red which opened up its own level of complexity but has allowed me resolve my question.