You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2025-05-16 17:33:42 [INFO ] ---- The current run runs as a docker image.
2025-05-16 17:33:42 [INFO ] ---- The current repository version is v1.6.6, and the repository address is https://github.com/ARC-MX/sgcc_electricity_new.git
2025-05-16 17:33:42 [INFO ] ---- The current date is 2025-05-16 17:33:42.
2025-05-16 17:33:42 [INFO ] ---- chromium-driver version is 134
2025-05-16 17:33:42 [INFO ] ---- The current logged-in user name is xxxxxxx, the homeassistant address is xxxxxxx, and the program will be executed every day at 07:00.
2025-05-16 17:33:42 [INFO ] ---- Run job now! The next run will be at 07:00 and 19:00 every day
2025-05-16 17:33:42 [INFO ] ---- patching driver executable /usr/bin/chromedriver
2025-05-16 17:33:58 [INFO ] ---- Webdriver initialized.
2025-05-16 17:33:59 [INFO ] ---- Open LOGIN_URL:https://www.95598.cn/osgweb/login.
2025-05-16 17:34:14 [INFO ] ---- find_element 'user'.
2025-05-16 17:34:29 [INFO ] ---- Click the Agree option.
2025-05-16 17:34:44 [INFO ] ---- input_elements username : xxxxxxx
2025-05-16 17:34:44 [INFO ] ---- input_elements password : xxxxxxx
2025-05-16 17:35:14 [INFO ] ---- Click login button.
2025-05-16 17:35:14 [INFO ] ---- Get electricity canvas image successfully.
2025-05-16 17:35:14 [INFO ] ---- Image CaptCHA distance is 113.
2025-05-16 17:35:30 [INFO ] ---- login successed !
2025-05-16 17:35:30 [INFO ] ---- Login successfully on https://www.95598.cn/osgweb/login
2025-05-16 17:35:45 [INFO ] ---- Try to get the userid list
2025-05-16 17:37:16 [INFO ] ---- Here are a total of 1 userids, which are ['xxxxxxx'] among which ['xxxxxxx', 'xxxxxxx', 'xxxxxxx'] will be ignored.
2025-05-16 17:39:32 [INFO ] ---- Get electricity charge balance for xxxxxxx successfully, balance is 464.36 CNY.
2025-05-16 17:42:03 [INFO ] ---- Get year power usage for xxxxxxx successfully, usage is 2272 kwh
2025-05-16 17:42:03 [INFO ] ---- Get year power charge for xxxxxxx successfully, yealrly charge is 1471.35 CNY
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-01-01-2025-01-31 usage is 561 KWh, charge is 288.9 CNY.
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-02-01-2025-02-28 usage is 535 KWh, charge is 415.7 CNY.
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-03-01-2025-03-31 usage is 604 KWh, charge is 322.31 CNY.
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-04-01-2025-04-30 usage is 572 KWh, charge is 444.44 CNY.
2025-05-16 17:43:33 [ERROR ] ---- The yesterday data get failed : Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@Class='el-tab-pane dayd']//div[@Class='el-table__body-wrapper is-scrolling-none']/table/tbody/tr[1]/td[2]/div"}
(Session info: chrome=134.0.6998.117); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
#0 0x615f70b567ee #1 0x615f7062a57b #2 0x615f706746a4 #3 0x615f70674831 #4 0x615f706c1704 #5 0x615f7069e3ed #6 0x615f706bf625 #7 0x615f7069e173 #8 0x615f706683a7 #9 0x615f70669158 #10 0x615f70b2399a #11 0x615f70b26dee #12 0x615f70b26898 #13 0x615f70b27275 #14 0x615f70b0d07b #15 0x615f70b275e0 #16 0x615f70af5519 #17 0x615f70b45ac5 #18 0x615f70b45cab #19 0x615f70b55945 #20 0x7aed0818e1f5
2025-05-16 17:43:33 [INFO ] ---- The current user xxxxxxx data fetching failed cannot unpack non-iterable NoneType object, the next user data will be fetched.
附加信息
No response
The text was updated successfully, but these errors were encountered:
问题描述
在尝试获取昨日数据时,系统抛出了 "no such element" 错误,数据获取失败。
哪个版本存在此问题?
v1.6.6
您是否手动登录国家电网网页并尝试获取数据?
未尝试手动获取数据
您使用的是哪种安装方式?
Linxu Docker环境
Home Assistant core 哪个版本,安装方式,
No response
日志中是否有任何可能对我们有用的信息?
2025-05-16 17:33:42 [INFO ] ---- The current run runs as a docker image.
2025-05-16 17:33:42 [INFO ] ---- The current repository version is v1.6.6, and the repository address is https://github.com/ARC-MX/sgcc_electricity_new.git
2025-05-16 17:33:42 [INFO ] ---- The current date is 2025-05-16 17:33:42.
2025-05-16 17:33:42 [INFO ] ---- chromium-driver version is 134
2025-05-16 17:33:42 [INFO ] ---- The current logged-in user name is xxxxxxx, the homeassistant address is xxxxxxx, and the program will be executed every day at 07:00.
2025-05-16 17:33:42 [INFO ] ---- Run job now! The next run will be at 07:00 and 19:00 every day
2025-05-16 17:33:42 [INFO ] ---- patching driver executable /usr/bin/chromedriver
2025-05-16 17:33:58 [INFO ] ---- Webdriver initialized.
2025-05-16 17:33:59 [INFO ] ---- Open LOGIN_URL:https://www.95598.cn/osgweb/login.
2025-05-16 17:34:14 [INFO ] ---- find_element 'user'.
2025-05-16 17:34:29 [INFO ] ---- Click the Agree option.
2025-05-16 17:34:44 [INFO ] ---- input_elements username : xxxxxxx
2025-05-16 17:34:44 [INFO ] ---- input_elements password : xxxxxxx
2025-05-16 17:35:14 [INFO ] ---- Click login button.
2025-05-16 17:35:14 [INFO ] ---- Get electricity canvas image successfully.
2025-05-16 17:35:14 [INFO ] ---- Image CaptCHA distance is 113.
2025-05-16 17:35:30 [INFO ] ---- login successed !
2025-05-16 17:35:30 [INFO ] ---- Login successfully on https://www.95598.cn/osgweb/login
2025-05-16 17:35:45 [INFO ] ---- Try to get the userid list
2025-05-16 17:37:16 [INFO ] ---- Here are a total of 1 userids, which are ['xxxxxxx'] among which ['xxxxxxx', 'xxxxxxx', 'xxxxxxx'] will be ignored.
2025-05-16 17:39:32 [INFO ] ---- Get electricity charge balance for xxxxxxx successfully, balance is 464.36 CNY.
2025-05-16 17:42:03 [INFO ] ---- Get year power usage for xxxxxxx successfully, usage is 2272 kwh
2025-05-16 17:42:03 [INFO ] ---- Get year power charge for xxxxxxx successfully, yealrly charge is 1471.35 CNY
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-01-01-2025-01-31 usage is 561 KWh, charge is 288.9 CNY.
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-02-01-2025-02-28 usage is 535 KWh, charge is 415.7 CNY.
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-03-01-2025-03-31 usage is 604 KWh, charge is 322.31 CNY.
2025-05-16 17:42:18 [INFO ] ---- Get month power charge for xxxxxxx successfully, 2025-04-01-2025-04-30 usage is 572 KWh, charge is 444.44 CNY.
2025-05-16 17:43:33 [ERROR ] ---- The yesterday data get failed : Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@Class='el-tab-pane dayd']//div[@Class='el-table__body-wrapper is-scrolling-none']/table/tbody/tr[1]/td[2]/div"}
(Session info: chrome=134.0.6998.117); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
#0 0x615f70b567ee
#1 0x615f7062a57b
#2 0x615f706746a4
#3 0x615f70674831
#4 0x615f706c1704
#5 0x615f7069e3ed
#6 0x615f706bf625
#7 0x615f7069e173
#8 0x615f706683a7
#9 0x615f70669158
#10 0x615f70b2399a
#11 0x615f70b26dee
#12 0x615f70b26898
#13 0x615f70b27275
#14 0x615f70b0d07b
#15 0x615f70b275e0
#16 0x615f70af5519
#17 0x615f70b45ac5
#18 0x615f70b45cab
#19 0x615f70b55945
#20 0x7aed0818e1f5
2025-05-16 17:43:33 [INFO ] ---- The current user xxxxxxx data fetching failed cannot unpack non-iterable NoneType object, the next user data will be fetched.
附加信息
No response
The text was updated successfully, but these errors were encountered: