2026-01-05 18:56:00 [INFO ] ---- Open Firefox.
2026-01-05 18:56:27 [INFO ] ---- Webdriver initialized.
2026-01-05 18:57:10 [INFO ] ---- Open LOGIN_URL:https://95598.cn/osgweb/login.
2026-01-05 18:57:43 [INFO ] ---- find_element 'user'.
2026-01-05 18:58:05 [INFO ] ---- Click the Agree option.
2026-01-05 18:58:21 [INFO ] ---- input_elements username : 15XXXXXX660
2026-01-05 18:58:23 [INFO ] ---- input_elements password : XXXXXXX
2026-01-05 18:58:57 [INFO ] ---- Click login button.
2026-01-05 18:59:02 [INFO ] ---- Get electricity canvas image successfully.
2026-01-05 18:59:03 [INFO ] ---- Image CaptCHA distance is 98.
2026-01-05 18:59:27 [INFO ] ---- login successed !
2026-01-05 18:59:27 [INFO ] ---- Login successfully on https://95598.cn/osgweb/login
2026-01-05 18:59:42 [INFO ] ---- Try to get the userid list
2026-01-05 19:02:00 [INFO ] ---- Here are a total of 3 userids, which are ['XXXXXX400398', 'XXXXXX527962', 'XXXXXXX8098'] among which ['xxxx', 'xxxx'] will be ignored.
2026-01-05 19:04:56 [INFO ] ---- Get electricity charge balance for XXXXX00398 successfully, balance is 196.68 CNY.
2026-01-05 19:09:51 [ERROR ] ---- The yearly data get failed : Message: Unable to locate element: .total; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5
NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:511:5
dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16
2026-01-05 19:09:51 [ERROR ] ---- Get year power usage for XXXXXX400398 failed, pass
2026-01-05 19:09:51 [ERROR ] ---- Get year power charge for XXXXXX400398 failed, pass
2026-01-05 19:11:52 [ERROR ] ---- The month data get failed : Message: Unable to locate element: .total; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5
NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:511:5
dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16
2026-01-05 19:11:52 [ERROR ] ---- Get month power usage for XXXXXX400398 failed, pass
2026-01-05 19:12:15 [INFO ] ---- Get daily power consumption for XXXXXX00398 successfully, , 2026-01-04 usage is 15.78 kwh.
2026-01-05 19:12:15 [ERROR ] ---- Get month power usage for XXXXX400398 failed, pass
2026-01-05 19:12:15 [INFO ] ---- enable_database_storage is true, we will store the data to the database.
2026-01-05 19:13:13 [INFO ] ---- Database of /data/homeassistant.db created successfully.
2026-01-05 19:13:13 [INFO ] ---- Table dailyXXXXXX00398 created successfully
2026-01-05 19:13:13 [INFO ] ---- Table dataXXXXXX00398 created successfully
2026-01-05 19:13:13 [INFO ] ---- The electricity consumption of 15.78KWh on 2026-01-04 has been successfully deposited into the database
2026-01-05 19:13:13 [INFO ] ---- The electricity consumption of 14.41KWh on 2025-12-31 has been successfully deposited into the database
2026-01-05 19:13:13 [INFO ] ---- The electricity consumption of 14.46KWh on 2025-12-30 has been successfully deposited into the database
2026-01-05 19:13:13 [INFO ] ---- The electricity consumption of 13.84KWh on 2025-12-29 has been successfully deposited into the database
2026-01-05 19:13:13 [INFO ] ---- The current user XXXXXXX398 data fetching failed object of type 'NoneType' has no len(), the next user data will be fetched.