Open valexi7 opened 2 months ago
First maybe change password to some more unique (don't know if default password gives some troubles).
Hope thatthere is no new way of logging to A versions...
I will try to push new build for username in a few days then you can try
I have issue a new version for test, can you give it a try ? can you select router wit A that ones have username support.
https://github.com/Kajkac/ZTE-MC-Home-assistant-repo/releases/tag/v1.0.24
Still does not work. It seems that it does not use the "admin" as login:
2024-08-30 11:53:36.445 WARNING (SyncWorker_27) [custom_components.zte_router.sensor] Attempt 1 failed with error: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '7', '']' returned non-zero exit status 1.. Retrying in 2 seconds...
2024-08-30 11:53:39.125 WARNING (SyncWorker_27) [custom_components.zte_router.sensor] Attempt 2 failed with error: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '7', '']' returned non-zero exit status 1.. Retrying in 4 seconds...
2024-08-30 11:53:43.831 WARNING (SyncWorker_27) [custom_components.zte_router.sensor] Attempt 3 failed with error: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '7', '']' returned non-zero exit status 1.. Retrying in 8 seconds...
It also states that my modem is MC801A, but I surely chose MC889A
With OLD code it works with this payload, so the MULTI_USER is the right one for MC889A
payload = "isTest=false&goformId=LOGIN_MULTI_USER&user=admin&password=" + ztePass
https://github.com/Kajkac/ZTE-MC-Home-assistant-repo/releases/tag/v1.0.25
please give it a new try
Now the username is passed to the mc.py script, but still does not work...
2024-08-30 14:01:36.412 ERROR (SyncWorker_2) [custom_components.zte_router.sensor] All 3 attempts failed for command 7. Raising error.
2024-08-30 14:01:36.414 ERROR (MainThread) [custom_components.zte_router.sensor] Error during _async_update_data: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '7', 'admin']' returned non-zero exit status 1.
2024-08-30 14:01:37.106 ERROR (SyncWorker_5) [custom_components.zte_router.sensor] Error running SMS command 6: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '6', 'admin']' returned non-zero exit status 1.
2024-08-30 14:01:37.107 ERROR (MainThread) [custom_components.zte_router.sensor] Error during _async_update_data (SMS): Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '6', 'admin']' returned non-zero exit status 1.
2024-08-30 14:01:37.792 WARNING (SyncWorker_6) [custom_components.zte_router.sensor] Attempt 1 failed with error: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '3', 'admin']' returned non-zero exit status 1.. Retrying in 2 seconds...
2024-08-30 14:01:40.468 WARNING (SyncWorker_6) [custom_components.zte_router.sensor] Attempt 2 failed with error: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '3', 'admin']' returned non-zero exit status 1.. Retrying in 4 seconds...
2024-08-30 14:01:45.177 WARNING (SyncWorker_6) [custom_components.zte_router.sensor] Attempt 3 failed with error: Command '['python3', '/config/custom_components/zte_router/mc.py', '192.168.8.1', '1234', '3', 'admin']' returned non-zero exit status 1.. Retrying in 8 seconds...
I wish there would be more debug logging in payload section to see what it tries to send.
will add more logging , and try to capture what actualy returnes
https://github.com/Kajkac/ZTE-MC-Home-assistant-repo/releases/tag/v1.0.26
can you try this version and provide logs , now i incorporate logs to see what script is getting
also make sure that you enabled the logging : Example configuration.yaml entry -- and watch for yaml indent logger: default: info logs: custom_components.zte_router: debug
2024-09-06 19:45:20.067 INFO (MainThread) [custom_components.zte_router.sensor] Initializing DataUpdateCoordinator with ping interval: 360 seconds
2024-09-06 19:45:20.067 INFO (MainThread) [custom_components.zte_router.sensor] Initializing SMSUpdateCoordinator with SMS check interval: 200 seconds
2024-09-06 19:45:20.068 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in DataUpdateCoordinator at 2024-09-06 19:45:20.068085
2024-09-06 19:45:24.071 INFO (SyncWorker_7) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
2024-09-06 19:45:24.676 WARNING (zeroconf-ServiceBrowser-_googlecast._tcp-116) [pychromecast.dial] Failed to determine cast type for host <unknown> (<urlopen error [Errno -5] Name has no usable address>) (services:{MDNSServiceInfo(name='TPM171E-abf886688d17eba9f84ad525e9664d18._googlecast._tcp.local.')})
2024-09-06 19:45:24.830 DEBUG (SyncWorker_7) [custom_components.zte_router.sensor] Output for command 7: 2024-09-06 19:45:24,620 - homeassistant.components.zte_router - DEBUG - Generating SMS time
2024-09-06 19:45:24,620 - homeassistant.components.zte_router - DEBUG - Encoding GSM message: BRZINA
2024-09-06 19:45:24,620 - homeassistant.components.zte_router - INFO - Initializing ZTE Router with IP 192.168.8.1
2024-09-06 19:45:24,662 - homeassistant.components.zte_router - INFO - Protocol set to http
2024-09-06 19:45:24,662 - homeassistant.components.zte_router - DEBUG - Fetching ZTE info 3
2024-09-06 19:45:24,662 - homeassistant.components.zte_router - DEBUG - Fetching LD value
2024-09-06 19:45:24,681 - homeassistant.components.zte_router - INFO - LD: FBB2A73B0BACF3953186A92029E3E9B130373A9FF1449407E6125B3481F4F0CA
2024-09-06 19:45:24,681 - homeassistant.components.zte_router - DEBUG - Getting cookie for authentication
2024-09-06 19:45:24,681 - homeassistant.components.zte_router - DEBUG - Hashed string: 03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4
2024-09-06 19:45:24,682 - homeassistant.components.zte_router - DEBUG - Hashed string: 2435eb0626760fefce557755e8a6798626688526e4400a98eee556ed1e8ca7a7
2024-09-06 19:45:24,682 - homeassistant.components.zte_router - DEBUG - Fetching router version
2024-09-06 19:45:24,700 - homeassistant.components.zte_router - INFO - Router version: MC889A_DNAY_B13_FWA
2024-09-06 19:45:24,738 - homeassistant.components.zte_router - ERROR - Failed to obtain a valid cookie from the router
2024-09-06 19:45:24,739 - homeassistant.components.zte_router - ERROR - Failed to obtain cookie: Failed to obtain a valid cookie from the router
2024-09-06 19:45:24,739 - homeassistant.components.zte_router - ERROR - Failed to fetch ZTE info 3: Failed to obtain a valid cookie from the router
2024-09-06 19:45:24.867 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-06 19:45:24,620 - homeassistant.components.zte_router - DEBUG - Generating SMS time
2024-09-06 19:45:24,620 - homeassistant.components.zte_router - DEBUG - Encoding GSM message: BRZINA
2024-09-06 19:45:24,620 - homeassistant.components.zte_router - INFO - Initializing ZTE Router with IP 192.168.8.1
2024-09-06 19:45:24,662 - homeassistant.components.zte_router - INFO - Protocol set to http
2024-09-06 19:45:24,662 - homeassistant.components.zte_router - DEBUG - Fetching ZTE info 3
2024-09-06 19:45:24,662 - homeassistant.components.zte_router - DEBUG - Fetching LD value
2024-09-06 19:45:24,681 - homeassistant.components.zte_router - INFO - LD: FBB2A73B0BACF3953186A92029E3E9B130373A9FF1449407E6125B3481F4F0CA
2024-09-06 19:45:24,681 - homeassistant.components.zte_router - DEBUG - Getting cookie for authentication
2024-09-06 19:45:24,681 - homeassistant.components.zte_router - DEBUG - Hashed string: 03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4
2024-09-06 19:45:24,682 - homeassistant.components.zte_router - DEBUG - Hashed string: 2435eb0626760fefce557755e8a6798626688526e4400a98eee556ed1e8ca7a7
2024-09-06 19:45:24,682 - homeassistant.components.zte_router - DEBUG - Fetching router version
2024-09-06 19:45:24,700 - homeassistant.components.zte_router - INFO - Router version: MC889A_DNAY_B13_FWA
2024-09-06 19:45:24,738 - homeassistant.components.zte_router - ERROR - Failed to obtain a valid cookie from the router
2024-09-06 19:45:24,739 - homeassistant.components.zte_router - ERROR - Failed to obtain cookie: Failed to obtain a valid cookie from the router
2024-09-06 19:45:24,739 - homeassistant.components.zte_router - ERROR - Failed to fetch ZTE info 3: Failed to obtain a valid cookie from the router
2024-09-06 19:45:24.868 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
2024-09-06 19:45:24.868 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.800 seconds (success: True)
2024-09-06 19:45:24.868 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in SMSUpdateCoordinator at 2024-09-06 19:45:24.868444
2024-09-06 19:45:24.873 INFO (SyncWorker_4) [custom_components.zte_router.sensor] Running mc.py script for SMS command 6
2024-09-06 19:45:24.968 ERROR (Thread-4) [pychromecast.socket_client] [Philips Ambilight(abf88668-8d17-eba9-f84a-d525e9664d18.local.):8009] Failed to connect to service MDNSServiceInfo(name='TPM171E-abf886688d17eba9f84ad525e9664d18._googlecast._tcp.local.'), retrying in 5.0s
2024-09-06 19:45:25.640 DEBUG (SyncWorker_4) [custom_components.zte_router.sensor] Output for SMS command 6: 2024-09-06 19:45:25,430 - homeassistant.components.zte_router - DEBUG - Generating SMS time
https://github.com/Kajkac/ZTE-MC-Home-assistant-repo/releases/tag/v1.0.28
i have added aditional loging, so please give me this log, i think somehow i dont pass username from integration to script but i need to confirm it, i dont have this kind a router to test it on my own
This might be related to my issue with MC7010 #15
I was finally able to check newest logs from HA
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.255 INFO (SyncWorker_3) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.986 DEBUG (SyncWorker_3) [custom_components.zte_router.sensor] Output for command 7: 2024-09-27 19:32:01,755 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,756 - homeassistant.components.zte_router - DEBUG - Encoding GSM message: BRZINA
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,756 - homeassistant.components.zte_router - INFO - Initializing ZTE Router with IP 192.168.8.1, Username: admin, Password: 1234
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,808 - homeassistant.components.zte_router - INFO - Protocol set to http
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,808 - homeassistant.components.zte_router - INFO - Command: 7, Username: admin, Password: 1234
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,808 - homeassistant.components.zte_router - INFO - Calling method: zteinfo3 with username: admin, password: 1234
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,809 - homeassistant.components.zte_router - DEBUG - Fetching ZTE info 3
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,809 - homeassistant.components.zte_router - DEBUG - Fetching LD value
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,826 - homeassistant.components.zte_router - INFO - LD: 7ADDAAFED7639A12D8344A033F3B4DD2A8DBDA264D28CA4290B5848AE00E977B
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Getting cookie for username: admin, password: 1234, LD: 7ADDAAFED7639A12D8344A033F3B4DD2A8DBDA264D28CA4290B5848AE00E977B
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed string: 03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed password: 03AC674216F3E15C761EE1A5E255F067953623C8B388B4459E13F978D7C846F4
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed string: 2f5fa5fe153f96c2211d94dbe90bd7332385ce0a9b796100b02fe24675026356
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed password+LD: 2F5FA5FE153F96C2211D94DBE90BD7332385CE0A9B796100B02FE24675026356
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Fetching router version
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,846 - homeassistant.components.zte_router - INFO - Router version: MC889A_DNAY_B13_FWA
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,846 - homeassistant.components.zte_router - DEBUG - Username is not none selecting LOGIN_MULTI_USER
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,909 - homeassistant.components.zte_router - ERROR - Failed to obtain a valid cookie from the router
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,910 - homeassistant.components.zte_router - ERROR - Failed to obtain cookie: Failed to obtain a valid cookie from the router
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,910 - homeassistant.components.zte_router - ERROR - Failed to fetch ZTE info 3: Failed to obtain a valid cookie from the router
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.987 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-27 19:32:01,755 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,756 - homeassistant.components.zte_router - DEBUG - Encoding GSM message: BRZINA
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,756 - homeassistant.components.zte_router - INFO - Initializing ZTE Router with IP 192.168.8.1, Username: admin, Password: 1234
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,808 - homeassistant.components.zte_router - INFO - Protocol set to http
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,808 - homeassistant.components.zte_router - INFO - Command: 7, Username: admin, Password: 1234
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,808 - homeassistant.components.zte_router - INFO - Calling method: zteinfo3 with username: admin, password: 1234
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,809 - homeassistant.components.zte_router - DEBUG - Fetching ZTE info 3
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,809 - homeassistant.components.zte_router - DEBUG - Fetching LD value
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,826 - homeassistant.components.zte_router - INFO - LD: 7ADDAAFED7639A12D8344A033F3B4DD2A8DBDA264D28CA4290B5848AE00E977B
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Getting cookie for username: admin, password: 1234, LD: 7ADDAAFED7639A12D8344A033F3B4DD2A8DBDA264D28CA4290B5848AE00E977B
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed string: 03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed password: 03AC674216F3E15C761EE1A5E255F067953623C8B388B4459E13F978D7C846F4
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed string: 2f5fa5fe153f96c2211d94dbe90bd7332385ce0a9b796100b02fe24675026356
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Hashed password+LD: 2F5FA5FE153F96C2211D94DBE90BD7332385CE0A9B796100B02FE24675026356
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,827 - homeassistant.components.zte_router - DEBUG - Fetching router version
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,846 - homeassistant.components.zte_router - INFO - Router version: MC889A_DNAY_B13_FWA
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,846 - homeassistant.components.zte_router - DEBUG - Username is not none selecting LOGIN_MULTI_USER
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,909 - homeassistant.components.zte_router - ERROR - Failed to obtain a valid cookie from the router
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,910 - homeassistant.components.zte_router - ERROR - Failed to obtain cookie: Failed to obtain a valid cookie from the router
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01,910 - homeassistant.components.zte_router - ERROR - Failed to fetch ZTE info 3: Failed to obtain a valid cookie from the router
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.987 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.987 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.734 seconds (success: True)
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.988 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly Usage sensor. Retaining last state: None
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.988 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly TX GB sensor. Retaining last state: None
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.988 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly RX GB sensor. Retaining last state: None
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.989 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Data Left sensor. Retaining last state: None
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.989 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Connection Uptime sensor. Retaining last state: None
Sep 27 16:32:01 odroid f49cc101c7bb[663]: 2024-09-27 19:32:01.989 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Connected Bands sensor. Retaining last state: None
Sep 27 16:33:31 odroid f49cc101c7bb[663]: 2024-09-27 19:33:31.418 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in DataUpdateCoordinator at 2024-09-27 19:33:31.418329
Sep 27 16:33:35 odroid f49cc101c7bb[663]: 2024-09-27 19:33:35.419 INFO (SyncWorker_7) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
Sep 27 16:33:36 odroid f49cc101c7bb[663]: 2024-09-27 19:33:36.151 DEBUG (SyncWorker_7) [custom_components.zte_router.sensor] Output for command 7: 2024-09-27 19:33:35,929 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:33:36 odroid f49cc101c7bb[663]: 2024-09-27 19:33:36.152 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-27 19:33:35,929 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:33:36 odroid f49cc101c7bb[663]: 2024-09-27 19:33:36.152 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:33:36 odroid f49cc101c7bb[663]: 2024-09-27 19:33:36.152 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.734 seconds (success: True)
Sep 27 16:33:41 odroid f49cc101c7bb[663]: 2024-09-27 19:33:41.253 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in DataUpdateCoordinator at 2024-09-27 19:33:41.253899
Sep 27 16:33:45 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.256 INFO (SyncWorker_1) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
Sep 27 16:33:45 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.996 DEBUG (SyncWorker_1) [custom_components.zte_router.sensor] Output for command 7: 2024-09-27 19:33:45,774 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.998 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-27 19:33:45,774 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.998 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.998 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.745 seconds (success: True)
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.998 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly Usage sensor. Retaining last state: None
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.999 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly TX GB sensor. Retaining last state: None
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.999 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly RX GB sensor. Retaining last state: None
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:45.999 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Data Left sensor. Retaining last state: None
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:46.000 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Connection Uptime sensor. Retaining last state: None
Sep 27 16:33:46 odroid f49cc101c7bb[663]: 2024-09-27 19:33:46.000 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Connected Bands sensor. Retaining last state: None
Sep 27 16:35:45 odroid f49cc101c7bb[663]: 2024-09-27 19:35:45.778 INFO (MainThread) [custom_components.zte_router.sensor] Initializing DataUpdateCoordinator with ping interval: 100 seconds
Sep 27 16:35:45 odroid f49cc101c7bb[663]: 2024-09-27 19:35:45.778 INFO (MainThread) [custom_components.zte_router.sensor] Initializing SMSUpdateCoordinator with SMS check interval: 200 seconds
Sep 27 16:35:45 odroid f49cc101c7bb[663]: 2024-09-27 19:35:45.779 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in DataUpdateCoordinator at 2024-09-27 19:35:45.779070
Sep 27 16:35:49 odroid f49cc101c7bb[663]: 2024-09-27 19:35:49.780 INFO (SyncWorker_2) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
Sep 27 16:35:50 odroid f49cc101c7bb[663]: 2024-09-27 19:35:50.481 DEBUG (SyncWorker_2) [custom_components.zte_router.sensor] Output for command 7: 2024-09-27 19:35:50,287 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:35:50 odroid f49cc101c7bb[663]: 2024-09-27 19:35:50.482 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-27 19:35:50,287 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:35:50 odroid f49cc101c7bb[663]: 2024-09-27 19:35:50.482 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:35:50 odroid f49cc101c7bb[663]: 2024-09-27 19:35:50.483 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.704 seconds (success: True)
Sep 27 16:35:50 odroid f49cc101c7bb[663]: 2024-09-27 19:35:50.483 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in SMSUpdateCoordinator at 2024-09-27 19:35:50.483170
Sep 27 16:35:50 odroid f49cc101c7bb[663]: 2024-09-27 19:35:50.483 INFO (SyncWorker_3) [custom_components.zte_router.sensor] Running mc.py script for SMS command 6
Sep 27 16:35:51 odroid f49cc101c7bb[663]: 2024-09-27 19:35:51.177 DEBUG (SyncWorker_3) [custom_components.zte_router.sensor] Output for SMS command 6: 2024-09-27 19:35:50,984 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:35:51 odroid f49cc101c7bb[663]: 2024-09-27 19:35:51.178 DEBUG (MainThread) [custom_components.zte_router.sensor] SMS data received from mc.py script: 2024-09-27 19:35:50,984 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:35:51 odroid f49cc101c7bb[663]: 2024-09-27 19:35:51.179 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:35:51 odroid f49cc101c7bb[663]: 2024-09-27 19:35:51.179 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router_sms data in 0.696 seconds (success: True)
Sep 27 16:35:51 odroid f49cc101c7bb[663]: 2024-09-27 19:35:51.179 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in DataUpdateCoordinator at 2024-09-27 19:35:51.179463
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.181 INFO (SyncWorker_4) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.876 DEBUG (SyncWorker_4) [custom_components.zte_router.sensor] Output for command 7: 2024-09-27 19:35:55,678 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.878 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-27 19:35:55,678 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.878 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.878 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.699 seconds (success: True)
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.879 INFO (MainThread) [custom_components.zte_router.sensor] Router type selected: MC889A
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.879 INFO (MainThread) [custom_components.zte_router.sensor] Ping interval: 100 seconds
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.879 INFO (MainThread) [custom_components.zte_router.sensor] SMS check interval: 200 seconds
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.879 INFO (MainThread) [custom_components.zte_router.sensor] Initializing DataUpdateCoordinator with ping interval: 100 seconds
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.879 INFO (MainThread) [custom_components.zte_router.sensor] Initializing SMSUpdateCoordinator with SMS check interval: 200 seconds
Sep 27 16:35:55 odroid f49cc101c7bb[663]: 2024-09-27 19:35:55.879 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in DataUpdateCoordinator at 2024-09-27 19:35:55.879846
Sep 27 16:35:59 odroid f49cc101c7bb[663]: 2024-09-27 19:35:59.881 INFO (SyncWorker_1) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
Sep 27 16:36:00 odroid f49cc101c7bb[663]: 2024-09-27 19:36:00.583 DEBUG (SyncWorker_1) [custom_components.zte_router.sensor] Output for command 7: 2024-09-27 19:36:00,379 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:00 odroid f49cc101c7bb[663]: 2024-09-27 19:36:00.584 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-27 19:36:00,379 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:00 odroid f49cc101c7bb[663]: 2024-09-27 19:36:00.585 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:36:00 odroid f49cc101c7bb[663]: 2024-09-27 19:36:00.585 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.705 seconds (success: True)
Sep 27 16:36:00 odroid f49cc101c7bb[663]: 2024-09-27 19:36:00.585 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in SMSUpdateCoordinator at 2024-09-27 19:36:00.585452
Sep 27 16:36:00 odroid f49cc101c7bb[663]: 2024-09-27 19:36:00.589 INFO (SyncWorker_5) [custom_components.zte_router.sensor] Running mc.py script for SMS command 6
Sep 27 16:36:01 odroid f49cc101c7bb[663]: 2024-09-27 19:36:01.352 DEBUG (SyncWorker_5) [custom_components.zte_router.sensor] Output for SMS command 6: 2024-09-27 19:36:01,113 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:01 odroid f49cc101c7bb[663]: 2024-09-27 19:36:01.353 DEBUG (MainThread) [custom_components.zte_router.sensor] SMS data received from mc.py script: 2024-09-27 19:36:01,113 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:01 odroid f49cc101c7bb[663]: 2024-09-27 19:36:01.354 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:36:01 odroid f49cc101c7bb[663]: 2024-09-27 19:36:01.354 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router_sms data in 0.769 seconds (success: True)
Sep 27 16:36:01 odroid f49cc101c7bb[663]: 2024-09-27 19:36:01.355 INFO (SyncWorker_6) [custom_components.zte_router.sensor] Running mc.py script for command 3, attempt 1
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.043 DEBUG (SyncWorker_6) [custom_components.zte_router.sensor] Output for command 3: 2024-09-27 19:36:01,849 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.044 DEBUG (MainThread) [custom_components.zte_router.sensor] Data for command 3: 2024-09-27 19:36:01,849 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.044 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.045 INFO (SyncWorker_4) [custom_components.zte_router.sensor] Running mc.py script for command 6, attempt 1
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.771 DEBUG (SyncWorker_4) [custom_components.zte_router.sensor] Output for command 6: 2024-09-27 19:36:02,549 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.772 DEBUG (MainThread) [custom_components.zte_router.sensor] Data for command 6: 2024-09-27 19:36:02,549 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.772 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.772 INFO (MainThread) [custom_components.zte_router.sensor] Initializing Connected Bands sensor
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.772 INFO (MainThread) [custom_components.zte_router.sensor] Initializing Monthly Usage sensor
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.773 INFO (MainThread) [custom_components.zte_router.sensor] Initializing Monthly TX GB sensor
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.773 INFO (MainThread) [custom_components.zte_router.sensor] Initializing Monthly RX GB sensor
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.773 INFO (MainThread) [custom_components.zte_router.sensor] Initializing Data Left sensor
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.773 INFO (MainThread) [custom_components.zte_router.sensor] Initializing Connection Uptime sensor
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.773 INFO (MainThread) [custom_components.zte_router.sensor] Sensors added: ['Connected Bands', 'Monthly Usage', 'Monthly TX GB', 'Monthly RX GB', 'Data Left', 'Connection Uptime']
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.773 INFO (MainThread) [custom_components.zte_router.sensor] Diagnostics sensors: ['Connected Bands', 'Connection Uptime']
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.773 INFO (MainThread) [custom_components.zte_router.sensor] Manual update requested for Connected Bands sensor at 2024-09-27 19:36:02.773893
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.774 INFO (MainThread) [custom_components.zte_router.sensor] Starting _async_update_data in DataUpdateCoordinator at 2024-09-27 19:36:02.774168
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.774 INFO (MainThread) [custom_components.zte_router.sensor] Manual update requested for Monthly Usage sensor at 2024-09-27 19:36:02.774431
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.775 INFO (MainThread) [custom_components.zte_router.sensor] Entity Monthly Usage added to hass at 2024-09-27 19:36:02.775458
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.775 DEBUG (MainThread) [custom_components.zte_router.sensor] Restored state for Monthly Usage: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.775 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly Usage sensor. Retaining last state: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.776 INFO (MainThread) [custom_components.zte_router.sensor] Manual update requested for Monthly TX GB sensor at 2024-09-27 19:36:02.776791
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.779 INFO (MainThread) [custom_components.zte_router.sensor] Entity Monthly TX GB added to hass at 2024-09-27 19:36:02.779752
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.779 DEBUG (MainThread) [custom_components.zte_router.sensor] Restored state for Monthly TX GB: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.780 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly TX GB sensor. Retaining last state: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.781 INFO (MainThread) [custom_components.zte_router.sensor] Manual update requested for Monthly RX GB sensor at 2024-09-27 19:36:02.781241
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.782 INFO (MainThread) [custom_components.zte_router.sensor] Entity Monthly RX GB added to hass at 2024-09-27 19:36:02.782067
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.782 DEBUG (MainThread) [custom_components.zte_router.sensor] Restored state for Monthly RX GB: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.782 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly RX GB sensor. Retaining last state: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.783 INFO (MainThread) [custom_components.zte_router.sensor] Manual update requested for Data Left sensor at 2024-09-27 19:36:02.783181
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.783 INFO (MainThread) [custom_components.zte_router.sensor] Entity Data Left added to hass at 2024-09-27 19:36:02.783815
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.783 DEBUG (MainThread) [custom_components.zte_router.sensor] Restored state for Data Left: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.784 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Data Left sensor. Retaining last state: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.787 INFO (MainThread) [custom_components.zte_router.sensor] Manual update requested for Connection Uptime sensor at 2024-09-27 19:36:02.787195
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.788 INFO (MainThread) [custom_components.zte_router.sensor] Entity Connection Uptime added to hass at 2024-09-27 19:36:02.788111
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.788 DEBUG (MainThread) [custom_components.zte_router.sensor] Restored state for Connection Uptime: unknown
Sep 27 16:36:02 odroid f49cc101c7bb[663]: 2024-09-27 19:36:02.788 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Connection Uptime sensor. Retaining last state: unknown
Sep 27 16:36:06 odroid f49cc101c7bb[663]: 2024-09-27 19:36:06.775 INFO (SyncWorker_4) [custom_components.zte_router.sensor] Running mc.py script for command 7, attempt 1
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.469 DEBUG (SyncWorker_4) [custom_components.zte_router.sensor] Output for command 7: 2024-09-27 19:36:07,274 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.470 DEBUG (MainThread) [custom_components.zte_router.sensor] Data received from mc.py script: 2024-09-27 19:36:07,274 - homeassistant.components.zte_router - DEBUG - Generating SMS time
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.470 ERROR (MainThread) [custom_components.zte_router.sensor] Failed to extract JSON: substring not found
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.471 DEBUG (MainThread) [custom_components.zte_router.sensor] Finished fetching zte_router data in 4.697 seconds (success: True)
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.471 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly Usage sensor. Retaining last state: unknown
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.472 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly TX GB sensor. Retaining last state: unknown
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.472 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Monthly RX GB sensor. Retaining last state: unknown
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.472 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Data Left sensor. Retaining last state: unknown
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.473 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Connection Uptime sensor. Retaining last state: unknown
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.474 INFO (MainThread) [custom_components.zte_router.sensor] Entity Connected Bands added to hass at 2024-09-27 19:36:07.474468
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.474 DEBUG (MainThread) [custom_components.zte_router.sensor] Restored state for Connected Bands: unknown
Sep 27 16:36:07 odroid f49cc101c7bb[663]: 2024-09-27 19:36:07.474 WARNING (MainThread) [custom_components.zte_router.sensor] No data available for Connected Bands sensor. Retaining last state: unknown
I tried to setup this with HACS. Password for the router is default: 1234, username is admin.
The integration says: "Failed to setup. Check the logs"
Logs are flooded with