HI,
after updating to 94.4, I suddenly see that integration speedtest should be configured with speedtestdotnet: and no longer with - platform: speedtest
and would love to get the current scan_interval with the same frequency, but can’t find the correct syntax, given the fact that is now should be done with:
scan_interval:
# At least one of these must be specified:
days: 0
hours: 0
minutes: 3
seconds: 30
milliseconds: 0
using this for now, which is a valid config, but I need the hours.
The new configuration is a definite step backwards. You can now only specify an interval not specific times.
I find the easiest way to get the scan times I want is to set the component to manual update in the configuration.yaml:
speedtestdotnet:
manual: True
And use an automation with a time pattern trigger and condition to get the scan times I want (hourly during peak hours):
- id: speedtest_peak_time_check
alias: 'Speedtest Peak Time Check'
trigger:
platform: time_pattern # at two minutes past the hour
minutes: 2
condition:
condition: time # between 6pm and midnight.
after: '18:00:00'
before: '23:10:00'
action:
service: speedtestdotnet.speedtest
If I understand your post correctly you want to scan at 00:30, 06:30, 12:30 and 18:30. If you are happy for that to happen at any six hour interval you could just specify:
with the automation you suggested and have these set as triggers: time so . Not so bad, still yet another ‘deprecation’ while updating HA…there must have been an architectural decision behind this.