Input_boolean condtion in automation does not work anymore

Please edit your post and format your pasted code as per the instructions in point 11 here: Help us help you