I have a donation status and I’m uploading to 7 System Ids using addstatus.jsp every 5 minutes using a restful command in Home Assistant.
The success of the uploads are very inconsistent - I can upload for hours without any errors and then I get a few random Timeout call errors amongst the “200 Success” log entries .
Here’s a redacted portion of the restful command - the others are identical but use different SystemID and sensor inputs.
rest_command:
pvoutput_test:
method: POST
url: https://pvoutput.org/service/r2/addstatus.jsp
headers:
X-Pvoutput-Apikey: "REDACTED" #
X-Pvoutput-SystemId: "REDACTED" #
payload: 'd={{now().strftime("%Y%m%d")}}&t={{now().strftime("%H:%M")}}&v2={{states.sensor.production_average.state|round(0)}}&v4={{states.sensor.consumption_average.state|round(0)}}&c1=1'
content_type: "application/x-www-form-urlencoded"
Here’s an excerpt of the logfiles when the timeouts occur:
2023-01-20 03:25:32.537 WARNING (MainThread) [homeassistant.components.rest_command] Timeout call https://pvoutput.org/service/r2/addstatus.jsp
2023-01-20 03:25:48.538 WARNING (MainThread) [homeassistant.components.rest_command] Timeout call https://pvoutput.org/service/r2/addstatus.jsp
2023-01-20 03:25:53.046 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code: 200. Payload: b'd=20230120&t=03:25&v2=0&v4=0&c1=1'
2023-01-20 03:25:58.558 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code: 200. Payload: b'd=20230120&t=03:25&v2=0&c1=1'
2023-01-20 03:30:01.158 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code: 200. Payload: b'd=20230120&t=03:30&v2=0&v4=639&c1=1'
2023-01-20 03:30:06.660 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code: 200. Payload: b'd=20230120&t=03:30&v2=0&v4=639&c1=1'
2023-01-20 03:30:12.249 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code: 200. Payload: b'd=20230120&t=03:30&v2=0&c1=1'
2023-01-20 03:30:17.762 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code: 200. Payload: b'd=20230120&t=03:30&v2=0&v4=491&c1=1'
2023-01-20 03:30:27.775 ERROR (MainThread) [homeassistant.components.rest_command] Client error. Url: https://pvoutput.org/service/r2/addstatus.jsp. Error: Cannot connect to host pvoutput.org:443 ssl:default [Try again]
2023-01-20 03:30:37.785 ERROR (MainThread) [homeassistant.components.rest_command] Client error. Url: https://pvoutput.org/service/r2/addstatus.jsp. Error: Cannot connect to host pvoutput.org:443 ssl:default [Try again]
2023-01-20 03:30:47.795 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code: 200. Payload: b'd=20230120&t=03:30&v2=0&c1=1'
I’ve searched the HA and PVOutput forums without any success for this issue. Thanks