How to convert these time formants to be compatible with hassio

Hi

I was wondering for the below code how would format so it compatible with hassio?

data_template:
  volume_level: >
    {% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
    0.50
    {% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 17%}
    0.65
    {% else %}
    0.50
    {% endif %}

I am not clear what you are asking. Is the code working for you? If not, what is the problem?

The code is not working, when I reload scripts it will output “remove:Group ‘all_scripts’ doesn’t exist!”