Hi guys,
I have sensors which get their values from a website API.
sensor:
- platform: rest
name: Prayer Times
json_attributes:
- fajr
- dhuhr
- asr
- magrib
- isha
resource: https://www.somewebsite.com/api/times/?format=json&key=blank
value_template: '{{ value_json.city }}'
- platform: template
sensors:
elm_fajr: #this will now be the official id of your sensor
friendly_name: 'Fajr'
value_template: '{{ state_attr("sensor.prayer_times","fajr") }}'
device_class: timestamp
icon_template: mdi:clock
How can I ensure that this only updates once per day (say, at 11pm).
I don’t know exactly how frequently it is updating in its present state and am worried about unnecessarily spamming the API provider’s servers unnecessarily.
Any help would be appreciated.
Thank you!