Hello I am new to Home Assistant .Currently i’m using rest sensors to hit external API and get sensor data from it. Just for testing i’m using ngrok url. I get hit to API after every 30 seconds even though i have set timeout to 10 seconds or even 45 seconds. I don’t know actually where is the issue. Here is my code written inside configuration.yaml .
- platform: rest
name: sensor1
resource: "http://2934854d0430.ngrok.io/input"
payload: '{"profile":"status_text"}'
timeout: 10
force_update: true
headers:
User-Agent: Home Assistant
Content-Type: application/json
value_template: '{{ value_json.message }}'