AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.74k stars 416 forks source link

Sonoff Touch 3Gang - reading only 1st and 2nd switch #186

Closed denzelm5 closed 4 years ago

denzelm5 commented 4 years ago

Hi ,

I just installed the integration via HACS. I noticed that on my Sonoff touch 3 Gang the 3rd switch is "Entity not available " .

HA Version : 0.112.4 HACS: 1.1.2 sonoff switch device Version(T1 3) : 3.4.1 FW Name : PSF-Bo4-GL Lan Control : enabled

AlexxIT commented 4 years ago

Please show logs https://youtu.be/Lt5fT4N5Pm8

denzelm5 commented 4 years ago

Hi,

Here with logs and posted a screenshot from the lovelace :

2020-07-10 09:38:52  DEBUG    main          SysInfo: {'version': '0.112.4', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.7.7', 'docker': True, 'arch': 'x86_64', 'os_name': 'Linux', 'os_version': '5.4.50', 'supervisor': '228', 'host_os': 'HassOS 4.11', 'chassis': 'vm', 'docker_version': '19.03.8'}
2020-07-10 09:38:52  DEBUG    main          AUTO mode start
2020-07-10 09:38:55  DEBUG    sonoff_cloud  19 devices loaded from the Cloud Server
2020-07-10 09:38:55  DEBUG    main          Init force_update for attributes: {'power', 'temperature'}
2020-07-10 09:38:55  DEBUG    main          Init auto sensors for: ['temperature', 'humidity', 'power', 'current', 'voltage']
2020-07-10 09:38:55  DEBUG    main          10008a9591 == Init   | {'uiid': 6, 'extra': {'manufacturer': 'New Smart ', 'model': 'G1', 'sw_version': 'PSF-B01-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': ['...']}, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.4.1', 'rssi': -72, 'staMac': '...', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'version': 8, 'partnerApikey': '...', 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047a6d9 == Init   | {'uiid': 6, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 1C', 'sw_version': 'PSF-B01-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.4.1', 'rssi': -68, 'staMac': '...', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047a6f6 == Init   | {'uiid': 6, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 1C', 'sw_version': 'PSF-B01-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.4.1', 'rssi': -71, 'staMac': '...', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          1000478a3a == Init   | {'uiid': 6, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 1C', 'sw_version': 'PSF-B01-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.4.1', 'rssi': -74, 'staMac': '...', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047efac == Init   | {'uiid': 8, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 3C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.1', 'staMac': '...', 'rssi': -60, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'controlType': 8, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047d482 == Init   | {'uiid': 8, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 3C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.1', 'staMac': '...', 'rssi': -73, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          10003dc936 == Init   | {'uiid': 8, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 3C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.1', 'staMac': '...', 'rssi': -70, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'controlType': 8, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047ecb5 == Init   | {'uiid': 8, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 3C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': [], 'scene': 4}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.1', 'staMac': '...', 'rssi': -54, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'controlType': 8, 'partnerApikey': '...', 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047b88f == Init   | {'uiid': 7, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 2C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': [], 'scene': 8}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.1', 'staMac': '...', 'rssi': -65, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...', 'controlType': 8, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047e6ca == Init   | {'uiid': 8, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 3C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.1', 'staMac': '...', 'rssi': -62, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...', 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          1000207877 == Init   | {'uiid': 9, 'extra': {'manufacturer': 'ITEAD', 'model': 'Sonoff 4CH Pro', 'sw_version': 'PSF-A04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.1', 'staMac': '...', 'rssi': -58, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'on', 'width': 500, 'outlet': 1}, {'pulse': 'off', 'width': 3500, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...', 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          100047e708 == Init   | {'uiid': 8, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 3C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': [], 'scene': 12}, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'fwVersion': '3.4.1', 'rssi': -71, 'staMac': '...', 'version': 8, 'sledOnline': 'on', 'init': 1, 'lock': 0, 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'controlType': 8, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          10004787c6 == Init   | {'uiid': 6, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 1C', 'sw_version': 'PSF-B01-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': [], 'scene': 4}, 'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.4.1', 'rssi': -53, 'staMac': '...', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'controlType': 8, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          10005b1ca7 == Init   | {'uiid': 8, 'extra': {'manufacturer': 'Sonoff', 'model': 'T1 3C', 'sw_version': 'PSF-B04-GL v3.4.1'}, 'params': {'bindInfos': {'alexa': [], 'scene': 4}, 'init': 1, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'fwVersion': '3.4.1', 'rssi': -54, 'staMac': '...', 'pulse': 'off', 'pulseWidth': 0, 'version': 8, 'sledOnline': 'on', 'lock': 0, 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'controlType': 8, 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          1000d78913 == Init   | {'uiid': 44, 'extra': {'manufacturer': 'SONOFF', 'model': 'D1', 'sw_version': 'PSF-BLD-GL v3.5.0'}, 'params': {'bindInfos': {'alexa': []}, 'version': 8, 'sledOnline': 'on', 'init': 1, 'fwVersion': '3.5.0', 'rssi': -69, 'staMac': '...', 'switch': 'off', 'brightness': 16, 'startup': 'on', 'mode': 0, 'brightMin': 0, 'brightMax': 255, 'rsn': 'ots', 'cmd': 'dimmable', 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          10004c7f9d == Init   | {'uiid': 32, 'extra': {'manufacturer': 'Sonoff', 'model': 'Pow_R2', 'sw_version': 'PSC-B67-GL v3.4.0'}, 'params': {'bindInfos': {'alexa': []}, 'switch': 'on', 'power': '0.00', 'voltage': '221.89', 'current': '0.00', 'fwVersion': '3.4.0', 'rssi': -36, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, 14], 'alarmPValue': [-1, -1], 'oneKwh': 'start', 'timeZone': 2, 'version': 8, 'sledOnline': 'on', 'staMac': '...', 'startup': 'stay', 'pulse': 'off', 'pulseWidth': 500, 'uiActive': 60, 'hundredDaysKwh': 'get', 'endTime': '', 'startTime': '2020-07-06T12:32:36.924Z', 'sledonline': 'on', 'cloud': 'online'}}
2020-07-10 09:38:55  DEBUG    main          1000dee8c5 == Init   | {'uiid': 102, 'extra': {'manufacturer': 'SONOFF', 'model': 'DW2', 'sw_version': 'OPL-DMA-GL v1000.2.917'}, 'params': {'bindInfos': {'alexa': []}, 'switch': 'on', 'battery': 3, 'fwVersion': '1000.2.917', 'type': 4, 'chipID': 'd02701bdceda', 'mac': 'd02701bdceda', 'rssi': -82, 'lastUpdateTime': '2020-07-10T07:19:46.977Z', 'partnerApikey': '...', 'actionTime': '2020-07-09T19:39:39.725Z', 'cloud': 'offline'}}
2020-07-10 09:38:55  DEBUG    main          1000dee70d == Init   | {'uiid': 102, 'extra': {'manufacturer': 'SONOFF', 'model': 'DW2', 'sw_version': 'OPL-DMA-GL v1000.2.917'}, 'params': {'bindInfos': {'alexa': []}, 'switch': 'off', 'battery': 3, 'fwVersion': '1000.2.917', 'type': 4, 'chipID': 'd02701bdcb6a', 'mac': 'd02701bdcb6a', 'rssi': -79, 'lastUpdateTime': '2020-07-10T06:57:52.457Z', 'partnerApikey': '...', 'actionTime': '2020-07-09T19:27:23.508Z', 'cloud': 'offline'}}
2020-07-10 09:38:55  DEBUG    main          1000b0bc1f == Init   | {'uiid': 11, 'extra': {'manufacturer': 'BINTHEN', 'model': 'BCM Series', 'sw_version': 'PSF-BTA-GL v2.7.0'}, 'params': {'bindInfos': {'alexa': []}, 'sledOnline': 'on', 'rssi': -53, 'fwVersion': '2.7.0', 'staMac': '...', 'setclose': 49, 'switch': 'pause', 'sequence': '1594324038930', 'cloud': 'online'}}
2020-07-10 09:38:56  DEBUG    sonoff_cloud  Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1594366736766'}

image

AlexxIT commented 4 years ago

Not available 100033c... and 1000242896.

You do not have such devices in your ewelink account. Maybe you deleted them?

denzelm5 commented 4 years ago

HI ,

Thanks for your prompt response . The Issue is related to the switch being replaced after I started using your integration .

This missing was :

Sonoff D1 Eachen Curtain Sonoff D1

Both got replaced with different lovelace cards.

All working now! Thanks!!!

Regards Denzel

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: Alex Xmailto:notifications@github.com Sent: Friday, 10 July 2020 10:49 To: AlexxIT/SonoffLANmailto:SonoffLAN@noreply.github.com Cc: Denzel Marimuthumailto:denzel@skycloud.co.za; Authormailto:author@noreply.github.com Subject: Re: [AlexxIT/SonoffLAN] Sonoff Touch 3Gang - reading only 1st and 2nd switch (#186)

Not available 100033c... and 1000242896.

You do not have such devices in your ewelink account. Maybe you deleted them?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/SonoffLAN/issues/186#issuecomment-656564021, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANWEXBCZP7R2QWP42OCYNRTR23IZVANCNFSM4OWJYKAA.