Alert Component Repeat Alerts

Hello,

Anyone experienced a problem with the alert component and getting all of the notifications all at once? I have a Twilio SMS notifier set up (through a notification group) to alert me at intervals per the documentation, but when the notification goes off I get ALL of the notifications at once (i.e. 6 text messages). What am I doing wrong here?

diana_temp_alert:
  name: "Warning: I have detected a problem with the tank temperature"
  entity_id: binary_sensor.tank_temperature_status
  state: 'on'
  repeat:
    - 5
    - 10
    - 15
    - 30
    - 60
    - 120
  can_acknowledge: true
  skip_first: true
  notifiers: 
    - house_phones_sms
1 Like

Check that the system timezone is the same as the timezone you’ve set in configuration.yaml. I’ve had similar issues when mine were different.

Yeah that might be the problem - the OS is running on UTC so I’ll update that and give it a shot! Thanks!

If it’s a Linux base, you can just set the TZ environment variable.

I simply updated the systemd startup file in /etc/systemd/system/home-assistant.service:

[Unit]
Description=Home Assistant
After=network.target

[Service]
Type=simple
User=homeassistant
Environment="TZ=Europe/London"
ExecStart=/srv/homeassistant/homeassistant_venv/bin/hass -c "/home/homeassistant/.homeassistant"

[Install]
WantedBy=multi-user.target
3 Likes