REST integration not updating according to scan_interval

Trying to wrap my head around the different REST-sensors available in HA. I have a service that reports back if the price of electricity is low/med/high and returns a JSON like:

{"hour":12,"price_bin":"med","success":true}

I try to poll this using the following configuration in configuration.yaml:

rest:
  - resource: http://[redacted]/timpris_bin
    sensor: 
      - name: Elpris SE3 bin
        unique_id: sensor.elpris_se3_bin
        value_template: '{{value_json.price_bin}}'

The sensor is updated correctly in HA, but checking the server endpoint I see that the update interval is anything but predictable. Looking at the docs I see the scan_interval param and have been trying not to set it (should default to 30 secs according to the docs) or set it to 600 - still no go. The server is polled approximately every 8-14 minutes.
Restarting the REST sensors for dev tools immediately triggers a call to the end-point and the sensor is updated, so it seems to be working.

Am I missing something obvious?
/Mattias

1 Like