Open moebius911 opened 2 months ago
Hey there @scop, @fphammerle, mind taking a look at this issue as it has been labeled with an integration (huawei_lte
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
huawei_lte documentation huawei_lte source (message by IssueLinks)
I have similar issue with Huawei B525s-23a router.
I've written an automation to send messages 2 - first when smoke alarm starts/second when it stops beeping.
Manually running them everything seems to be fine, but couple of times when it was triggered by smoke alarm I didn't receive either first or second message. Docker logs show:
homeassistant | 2024-10-21 19:20:33.643 ERROR (SyncWorker_9) [homeassistant.components.huawei_lte.notify] Could not send to ['3706xxxxxxx', '3706xxxxxxx', '3706xxxxxxx']: 125003: Wrong Session Token
And in HA logs I see:
The problem
Hello, I use the Huawei E3372h-320 3G key. It works well from time to time it no longer sends SMS and displays 'Wrong session token'. Reloading the integration does not resolve the problem, however restarting the Home Assistant container works. The problem is really related to home assistant because when I get this error message I can still send SMS via the key's web interface. Do you have an idea to solve the problem?
What version of Home Assistant Core has the issue?
2024.9.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
huawei_lte
Link to integration documentation on our website
No response
Diagnostics information
Example YAML snippet
No response
Anything in the logs that might be useful for us?
here are the logs that I recovered in the integration when sending the SMS :
2024-09-28 10:46:44.262 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting dialup_mobile_dataswitch for subscribers ['switch/dataswitch'] 2024-09-28 10:46:44.320 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] dialup_mobile_dataswitch={'dataswitch': '0'} 2024-09-28 10:46:44.320 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting monitoring_month_statistics for subscribers ['sensor/CurrentMonthDownload', 'sensor/MonthDuration', 'sensor/CurrentMonthUpload', 'sensor/MonthDuration', 'sensor/CurrentDayUsed', 'sensor/CurrentDayDuration'] 2024-09-28 10:46:44.370 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] monitoring_month_statistics={'CurrentMonthDownload': '0', 'CurrentMonthUpload': '0', 'MonthDuration': '0', 'MonthLastClearTime': '2024-09-01', 'CurrentDayUsed': '0', 'CurrentDayDuration': '0'} 2024-09-28 10:46:44.370 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting monitoring_check_notifications for subscribers ['binary_sensor/SmsStorageFull', 'sensor/UnreadMessage', 'sensor/SimOperEvent'] 2024-09-28 10:46:44.420 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] monitoring_check_notifications={'UnreadMessage': '0', 'SmsStorageFull': '1', 'OnlineUpdateStatus': '10', 'SimOperEvent': '0'} 2024-09-28 10:46:44.420 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting monitoring_status for subscribers ['binary_sensor/ConnectionStatus', 'sensor/BatteryPercent', 'sensor/PrimaryDns', 'sensor/SecondaryDns', 'sensor/PrimaryIPv6Dns', 'sensor/SecondaryIPv6Dns', 'sensor/CurrentWifiUser'] 2024-09-28 10:46:44.471 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] monitoring_status={'ConnectionStatus': '902', 'WifiConnectionStatus': None, 'SignalStrength': None, 'SignalIcon': '2', 'CurrentNetworkType': '4', 'CurrentServiceDomain': '3', 'RoamingStatus': '0', 'BatteryStatus': None, 'BatteryLevel': None, 'BatteryPercent': None, 'simlockStatus': '0', 'PrimaryDns': None, 'SecondaryDns': None, 'wififrequence': '0', 'flymode': '0', 'PrimaryIPv6Dns': None, 'SecondaryIPv6Dns': None, 'CurrentWifiUser': None, 'TotalWifiUser': None, 'currenttotalwifiuser': '0', 'ServiceStatus': '2', 'SimStatus': '1', 'WifiStatus': None, 'CurrentNetworkTypeEx': '41', 'maxsignal': '5', 'wifiindooronly': '0', 'classify': 'hilink', 'usbup': '0', 'wifiswitchstatus': '0', 'WifiStatusExCustom': '0', 'hvdcp_online': '0'} 2024-09-28 10:46:44.471 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting monitoring_traffic_statistics for subscribers ['sensor/CurrentConnectTime', 'sensor/CurrentUpload', 'sensor/CurrentDownload', 'sensor/CurrentDownloadRate', 'sensor/CurrentUploadRate', 'sensor/TotalUpload', 'sensor/TotalDownload', 'sensor/TotalConnectTime'] 2024-09-28 10:46:44.520 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] monitoring_traffic_statistics={'CurrentConnectTime': '0', 'CurrentUpload': '0', 'CurrentDownload': '0', 'CurrentDownloadRate': '0', 'CurrentUploadRate': '0', 'TotalUpload': '0', 'TotalDownload': '0', 'TotalConnectTime': '0', 'showtraffic': '1'} 2024-09-28 10:46:44.520 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting net_current_plmn for subscribers ['sensor/State', 'sensor/FullName', 'sensor/Numeric'] 2024-09-28 10:46:44.650 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] net_current_plmn={'State': '0', 'FullName': 'Free', 'ShortName': 'Free', 'Numeric': '20815', 'Rat': '2', 'Spn': None} 2024-09-28 10:46:44.650 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting net_net_mode for subscribers ['select/NetworkMode', 'sensor/NetworkMode'] 2024-09-28 10:46:44.720 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] net_net_mode={'NetworkMode': '00', 'NetworkBand': '2000000680380', 'LTEBand': '80800C5'} 2024-09-28 10:46:44.720 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting sms_sms_count for subscribers ['sensor/LocalUnread', 'sensor/LocalInbox', 'sensor/LocalOutbox', 'sensor/LocalDraft', 'sensor/LocalDeleted', 'sensor/SimUnread', 'sensor/SimInbox', 'sensor/SimOutbox', 'sensor/SimDraft', 'sensor/LocalMax', 'sensor/SimMax', 'sensor/SimUsed', 'sensor/NewMsg'] 2024-09-28 10:46:44.770 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] sms_sms_count={'LocalUnread': '0', 'LocalInbox': '0', 'LocalOutbox': '406', 'LocalDraft': '94', 'LocalDeleted': '0', 'SimUnread': '0', 'SimInbox': '0', 'SimOutbox': '0', 'SimDraft': '0', 'LocalMax': '500', 'SimMax': '50', 'SimUsed': '0', 'NewMsg': '0'} 2024-09-28 10:46:44.771 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] Getting lan_host_info for subscribers ['device_tracker/device_scan'] 2024-09-28 10:46:44.860 DEBUG (SyncWorker_62) [homeassistant.components.huawei_lte] lan_host_info={'Hosts': {'Host': []}} 2024-09-28 10:46:50.080 ERROR (SyncWorker_12) [homeassistant.components.huawei_lte.notify] Could not send to ['33xxxxxxxx']: 125003: Wrong Session Token 2024-09-28 10:46:53.878 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] Getting device_information for subscribers ['sensor/WanIPAddress', 'sensor/WanIPv6Address', 'sensor/uptime'] 2024-09-28 10:46:53.981 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] device_information={'DeviceName': 'E3372h-320', 'SerialNumber': 'VQNDW21235416862', 'Imei': '862816852486858', 'Imsi': '208752145692998', 'Iccid': '8933157851365498386', 'Msisdn': '+33787391545', 'HardwareVersion': 'CL4E3372HM', 'SoftwareVersion': '10.0.3.1(H192SP2C983)', 'WebUIVersion': 'WEBUI 10.0.3.1(W13SP1C7401)', 'MacAddress1': '00:10:20:30:40:50', 'MacAddress2': None, 'WanIPAddress': None, 'wan_dns_address': None, 'WanIPv6Address': None, 'wan_ipv6_dns_address': None, 'ProductFamily': 'LTE', 'Classify': 'hilink', 'supportmode': 'LTE|WCDMA|GSM', 'workmode': 'WCDMA', 'submask': None, 'Mccmnc': '20815', 'iniversion': 'E3372h-320-CUST 10.0.3.2(C1072)', 'uptime': '140770', 'ImeiSvn': '05', 'spreadname_en': None, 'spreadname_zh': None} 2024-09-28 10:46:53.982 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] Getting device_signal for subscribers ['sensor/pci', 'sensor/sc', 'sensor/cell_id', 'sensor/rsrq', 'sensor/rsrp', 'sensor/rssi', 'sensor/sinr', 'sensor/rscp', 'sensor/ecio', 'sensor/mode', 'sensor/ulbandwidth', 'sensor/dlbandwidth', 'sensor/txpower', 'sensor/tdd', 'sensor/ul_mcs', 'sensor/dl_mcs', 'sensor/earfcn', 'sensor/rrc_status', 'sensor/rac', 'sensor/lac', 'sensor/tac', 'sensor/band', 'sensor/nei_cellid', 'sensor/plmn', 'sensor/ims', 'sensor/wdlfreq', 'sensor/lteulfreq', 'sensor/ltedlfreq', 'sensor/transmode', 'sensor/enodeb_id', 'sensor/cqi0', 'sensor/cqi1', 'sensor/ulfrequency', 'sensor/dlfrequency', 'sensor/arfcn', 'sensor/bsic', 'sensor/rxlev'] 2024-09-28 10:46:54.262 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] device_signal={'pci': None, 'sc': '135', 'cell_id': '122594253', 'rsrq': None, 'rsrp': None, 'rssi': '-92dBm', 'sinr': None, 'rscp': '-107dBm', 'ecio': '-15dB', 'mode': '2', 'ulbandwidth': None, 'dlbandwidth': None, 'txpower': None, 'tdd': None, 'ul_mcs': None, 'dl_mcs': None, 'earfcn': None, 'rrc_status': None, 'rac': '1', 'lac': '3210', 'tac': None, 'band': None, 'nei_cellid': None, 'plmn': '20815', 'ims': None, 'wdlfreq': '3037', 'lteulfreq': None, 'ltedlfreq': None, 'transmode': None, 'enodeb_id': None, 'cqi0': None, 'cqi1': None, 'ulfrequency': None, 'dlfrequency': None, 'arfcn': None, 'bsic': None, 'rxlev': None} 2024-09-28 10:46:54.263 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] Getting dialup_mobile_dataswitch for subscribers ['switch/dataswitch'] 2024-09-28 10:46:54.319 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] dialup_mobile_dataswitch={'dataswitch': '0'} 2024-09-28 10:46:54.319 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] Getting monitoring_month_statistics for subscribers ['sensor/CurrentMonthDownload', 'sensor/MonthDuration', 'sensor/CurrentMonthUpload', 'sensor/MonthDuration', 'sensor/CurrentDayUsed', 'sensor/CurrentDayDuration'] 2024-09-28 10:46:54.369 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] monitoring_month_statistics={'CurrentMonthDownload': '0', 'CurrentMonthUpload': '0', 'MonthDuration': '0', 'MonthLastClearTime': '2024-09-01', 'CurrentDayUsed': '0', 'CurrentDayDuration': '0'} 2024-09-28 10:46:54.369 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] Getting monitoring_check_notifications for subscribers ['binary_sensor/SmsStorageFull', 'sensor/UnreadMessage', 'sensor/SimOperEvent'] 2024-09-28 10:46:54.419 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] monitoring_check_notifications={'UnreadMessage': '0', 'SmsStorageFull': '1', 'OnlineUpdateStatus': '10', 'SimOperEvent': '0'} 2024-09-28 10:46:54.419 DEBUG (SyncWorker_38) [homeassistant.components.huawei_lte] Getting monitoring_status for subscribers ['binary_sensor/ConnectionStatus', 'sensor/BatteryPercent', 'sensor/PrimaryDns', 'sensor/SecondaryDns', 'sensor/PrimaryIPv6Dns', 'sensor/SecondaryIPv6Dns', 'sensor/CurrentWifiUser']
Additional information
No response