Over quota: external_ip sensor errors out?

HI,

Using this external_ip sensor:

  - platform: rest
    resource: http://ip.jsontest.com
    name: External IP
    value_template: '{{ value_json.ip }}'

very often this error is displayed:

2018-07-25 08:22:50 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>503 Over Quota</title>
<style><!--
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
A.u:link {color: green}
//--></style>

</head>
<body text=#000000 bgcolor=#ffffff>
<table border=0 cellpadding=2 cellspacing=0 width=100%>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr>
<tr><td>&nbsp;</td></tr></table>
<blockquote>
<H1>Over Quota</H1>
This application is temporarily over its serving quota.  Please try again later.

<p>
</blockquote>
<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table>
</body></html>
, template: {{ value_json.ip }})

Doestn really seem to bother the performance, but still, the error is flooding the log.

Is there any way to prevent this, or maybe use another way of checking the external IP?

thx,
Marius

Do you really need to know your external IP every two minutes? Change the update frequency?

you’re right I guess, that could be an option.
would make the sensor sensing the ip change based on this sensor somewhat useless in the process, but even that wouldn’t be such a big issue.

Still, would like to know whether this is a rest sensor issue (which most of the sensor issues are btw, always have a suspicion rest sensors are heavy on the system, and cause of many errors) or a configuration finetuning thing.

see:

2018-07-25 08:53:25 ERROR (SyncWorker_6) [homeassistant.components.sensor.rest] Error fetching data: <PreparedRequest [GET]> from https://raw.githubusercontent.com/c727/home-assistant-tiles/master/LATEST_VERSION failed with HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /c727/home-assistant-tiles/master/LATEST_VERSION (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x723ffdd0>: Failed to establish a new connection: [Errno -3] Try again',))
2018-07-25 08:53:30 ERROR (SyncWorker_18) [homeassistant.components.sensor.rest] Error fetching data: <PreparedRequest [GET]> from https://s3.amazonaws.com/hassio-version/stable.json failed with HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /hassio-version/stable.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x72423d90>: Failed to establish a new connection: [Errno -3] Try again',))
2018-07-25 08:53:36 ERROR (SyncWorker_11) [homeassistant.components.sensor.rest] Error fetching data: <PreparedRequest [GET]> from http://ip.jsontest.com/ failed with HTTPConnectionPool(host='ip.jsontest.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x72825770>: Failed to establish a new connection: [Errno -3] Try again',))
2018-07-25 08:53:41 ERROR (SyncWorker_3) [homeassistant.components.sensor.rest] Error fetching data: <PreparedRequest [GET]> from https://s3.amazonaws.com/hassio-version/beta.json failed with HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /hassio-version/beta.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x727127f0>: Failed to establish a new connection: [Errno -3] Try again',))

No it looks more like you are abusing the hospitality of jsontest,com

1 Like

you jest, surely…

Well what do you think this means?

I’m using different link, no errors yet.
With data_template i belive we can do both sites, With if statement.

- platform: rest
  resource: https://api.ipify.org?format=json
  name: External IP
  value_template: '{{ value_json.ip }}'
  scan_interval:
    minutes: 10
2 Likes

this is the only one that worked for me so far. ty

its possible to use dnsip component if rest-platform doing problem

What does this even mean?

oops, i forgot “if” after component…