Automation - Why is 16.50 not between 3 PM and 8 PM?

Hi,
I defined one of the the following condition to close the shutters:
if it is between 3 PM and 8 PM all days (See picture).
But the automation does not work. A test with this condition shows that the current situation does not meet this meet this requirement, but 16.50 is definitely within this slot.
If I adjust to 2 PM it works……But the system uses the correct local time, i.e just saw the log when I did the update to 2022-7.5

Any ideas? Many thanks

I cant see any picture, can you provide pic or even better the yaml ?

Please find it attached

It is weird - I tried it again : the HA clock for this automation is exactly 2 hours behind. But again, I.e. the system update log showed the right time

Seems like you have timezone misconfigured. Can you provide more details on your setup (hardware, os, versions)?

I’m running HAOS on RPI4 and it looks like my host is using UTC timezone with time synchronized via systemd-timesyncd daemon using NTP protocol.

# timedatectl show
Timezone=Etc/UTC
LocalRTC=no
CanNTP=yes
NTP=yes
NTPSynchronized=yes
TimeUSec=Sun 2022-07-17 20:25:52 UTC

# timedatectl timesync-status
       Server: 162.159.200.1 (time.cloudflare.com)
Poll interval: 34min 8s (min: 32s; max 34min 8s)
         Leap: normal
      Version: 4
      Stratum: 3
    Reference: A4B082C
    Precision: 1us (-25)
Root distance: 4.500ms (max: 5s)
       Offset: -120us
        Delay: 34.296ms
       Jitter: 17.882ms
 Packet count: 1199
    Frequency: -8.548ppm

# cat /etc/os-release
NAME="Home Assistant OS"
VERSION="8.2 (RaspberryPi 4 64bit)"
ID=haos
VERSION_ID=8.2
PRETTY_NAME="Home Assistant OS 8.2"
CPE_NAME=cpe:2.3:o:home-assistant:haos:8.2:*:production:*:*:*:rpi4-64:*
HOME_URL=https://hass.io/
VARIANT="Home Assistant OS RaspberryPi 4 64bit"
VARIANT_ID=rpi4-64
SUPERVISOR_MACHINE=raspberrypi4-64
SUPERVISOR_ARCH=aarch64

My local timezone is CEST (GMT+01:00 Warsaw) and the only place I have it configured is the HA GUI under Settings → System → General menu. That way all components running in containers (including supervisor) have properly configured timezone and show correct time:

[core-ssh ~]$ date
Sun Jul 17 22:35:49 CEST 2022

When troubleshooting time related issues, make sure your host is set to UTC time and you have properly configured timezone in HA. To verify, check the time inside supervisor container - you should see your current local time.

Many thanks, this was indeed the issue.

However, I am little bit astonished about HA: I use the automation function also to open and close the shutters at dawn / dusk where I had to put in the data of my location (Zurich) and it always worked with minor corrections.