2023-02-10 02:22:38 | stdout | Exception: Sensor update failed, please check the network |
2023-02-10 02:22:38 | stdout | raise Exception("Sensor update failed, please check the network") |
2023-02-10 02:22:38 | stdout | File "/app/sensor_updator.py", line 55, in update |
2023-02-10 02:22:38 | stdout | sensorentity_updator.update("sensor.electricity_95598" + profix, balance_list, {"unit_of_measurement": "CNY", "is_pay": balance_list_pay, "need_pay": balance_list_need_pay, "last_electricity_usage": last_daily_usage_list, "yearly_electricity_usage": yearly_usage_list, "yearly_electricity_charge": yearly_charge_list, "thismonth_electricity_usage": thismonth_usage_list, "last_date": last_date_list, "update_time": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")},) |
2023-02-10 02:22:38 | stdout | File "./main.py", line 40, in run_task |
2023-02-10 02:22:38 | stdout | Traceback (most recent call last): |
2023-02-10 02:22:38 | stdout | |
2023-02-10 02:22:38 | stdout | During handling of the above exception, another exception occurred: |
2023-02-10 02:22:38 | stdout | |
2023-02-10 02:22:38 | stdout | requests.exceptions.InvalidSchema: No connection adapters were found for '192.168.3.5:8123/api/states/sensor.electricity_95598' |
2023-02-10 02:22:38 | stdout | raise InvalidSchema(f"No connection adapters were found for {url!r}") |
2023-02-10 02:22:38 | stdout | File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 792, in get_adapter |
2023-02-10 02:22:38 | stdout | adapter = self.get_adapter(url=request.url) |
2023-02-10 02:22:38 | stdout | File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 695, in send |
2023-02-10 02:22:38 | stdout | resp = self.send(prep, **send_kwargs) |
2023-02-10 02:22:38 | stdout | File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 587, in request |
2023-02-10 02:22:38 | stdout | return session.request(method=method, url=url, **kwargs) |
2023-02-10 02:22:38 | stdout | File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 59, in request |
2023-02-10 02:22:38 | stdout | return request("post", url, data=data, json=json, **kwargs) |
2023-02-10 02:22:38 | stdout | File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 115, in post |
2023-02-10 02:22:38 | stdout | response = requests.post(url, json = request_body, headers = headers) |
2023-02-10 02:22:38 | stdout | File "/app/sensor_updator.py", line 52, in update |
2023-02-10 02:22:38 | stdout | Traceback (most recent call last): |
2023-02-10 02:22:38 | stdout | 2023-02-10 10:22:38 [ERROR ] ---- state-refresh task failed, reason is Sensor update failed, please check the network |
2023-02-10 02:22:38 | stdout | 2023-02-10 10:22:38 [INFO ] ---- Webdriver quit after fetching data successfully. |