The problem
I can't get speedtest to reliably trigger from an automation running at the top of the hour.
edit: workaround per @JN-Jones: adjust the minute to not be 0 or 30.
Here's my automation config:
id: '1687990373473'
alias: Speedtest
description: >-
runs a speed test hourly but only if the internet hasn't been in use in the
last ~minute
trigger:
- platform: time_pattern
minutes: 0
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.xe75pro_kib_s_sent
below: 500
- condition: numeric_state
entity_id: sensor.xe75pro_kib_s_received
below: 100
action:
- service: homeassistant.update_entity
data: {}
target:
entity_id: sensor.speedtest_download
mode: single
Here's an example trace from 8am on July 10:

Looks like it worked, right? But when I actually check the data, there is no speed test conducted at that time:

I included the network activity in that view so you can see there was a successful test at 10 AM but nothing happened at 8 AM.
Usage with a lovelace button is working
At the same time, I have a lovelace button set up that successfully triggers a speed test every time:
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: homeassistant.update_entity
target:
entity_id: sensor.speedtest_download
data: {}
What version of Home Assistant Core has the issue?
core-2023.7.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
speedtestdotnet
Link to integration documentation on our website
https://www.home-assistant.io/integrations/speedtestdotnet/
Diagnostics information
No response
Example YAML snippet
id: '1687990373473'
alias: Speedtest
description: >-
runs a speed test hourly but only if the internet hasn't been in use in the
last ~minute
trigger:
- platform: time_pattern
minutes: 0
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.xe75pro_kib_s_sent
below: 500
- condition: numeric_state
entity_id: sensor.xe75pro_kib_s_received
below: 100
action:
- service: homeassistant.update_entity
data: {}
target:
entity_id: sensor.speedtest_download
mode: single
Anything in the logs that might be useful for us?
nothing obvious in the logs. It seems like the `homeassistant.update_entity` fires but then nothing happens. I've tried turning on debug logging.
Additional information
No response
The problem
I can't get speedtest to reliably trigger from an automation running at the top of the hour.
edit: workaround per @JN-Jones: adjust the minute to not be 0 or 30.
Here's my automation config:
Here's an example trace from 8am on July 10:

Looks like it worked, right? But when I actually check the data, there is no speed test conducted at that time:

I included the network activity in that view so you can see there was a successful test at 10 AM but nothing happened at 8 AM.
Usage with a lovelace button is working
At the same time, I have a lovelace button set up that successfully triggers a speed test every time:
What version of Home Assistant Core has the issue?
core-2023.7.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
speedtestdotnet
Link to integration documentation on our website
https://www.home-assistant.io/integrations/speedtestdotnet/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response