Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonoff iFan03 fw 3.4.0 detected but does not work #153

Closed
anandsuppiah12 opened this issue Jun 6, 2020 · 14 comments
Closed

Sonoff iFan03 fw 3.4.0 detected but does not work #153

anandsuppiah12 opened this issue Jun 6, 2020 · 14 comments
Labels
bug Something isn't working wait feedback

Comments

@anandsuppiah12
Copy link

Hi. Thanks for the great work on this. Added my sonoff switches and working perfectly.

I have an issue with the Sonoff iFan03 (light and fan with speed control) fw 3.4.0.

I installed sonoff lan 2.1.2 on Home Assistant 0.112.0.dev20200605 .

I can see the fan and light switches on the iFan03. When I click on it to toggle on / off, the status changes but nothing happens to the device. If I turn on and off the device with ewelink app, the status doesnt change in HA.

Hope you could look into it. Thanks again for the awesome job.

@anandsuppiah12
Copy link
Author

As a temporary fix. I installed peterbuga's addon at https://github.com/peterbuga/HASS-sonoff-ewelink. to run both plugins together, i editied the init file in peterbuga's addon by changing the domain to sonoffcloud. I changed the folder name to sonoffcloud and edited the switch.py and sensor.py to call from sonoffcloud. not ideal but i got everything working.

@AlexxIT
Copy link
Owner

AlexxIT commented Jun 7, 2020

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

@anandsuppiah12
Copy link
Author

anandsuppiah12 commented Jun 7, 2020

Hi. Thanks for the reply.

2020-06-07 19:48:33  DEBUG    main          SysInfo: {'version': '0.112.0.dev20200605', 'dev': True, 'hassio': False, 'virtualenv': False, 'python_version': '3.7.7', 'docker': True, 'arch': 'armv7l', 'os_name': 'Linux', 'os_version': '4.19.106'}
2020-06-07 19:48:33  DEBUG    main          AUTO mode start
2020-06-07 19:48:35  DEBUG    sonoff_cloud  Redirect to region: as
2020-06-07 19:48:37  DEBUG    sonoff_cloud  7 devices loaded from the Cloud Server
2020-06-07 19:48:37  DEBUG    main          10008a62a6 == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'BASIC', 'sw_version': 'PSF-B01-GL v3.4.0'}, 'params': {'bindInfos': {'gaction': ['...', '...'], 'miot': ['...']}, 'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.4.0', 'rssi': -52, 'staMac': '...', 'startup': 'on', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'partnerApikey': '...', 'controlType': '7', 'cloud': 'online'}}
2020-06-07 19:48:37  DEBUG    main          10008a346b == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'BASIC', 'sw_version': 'PSF-B01-GL v3.4.0'}, 'params': {'controlType': 8, 'partnerApikey': '...', 'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'startup': 'on', 'staMac': '...', 'rssi': -57, 'fwVersion': '3.4.0', 'switch': 'on', 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...'], 'scene': 0}, 'cloud': 'online'}}
2020-06-07 19:48:37  DEBUG    main          10007d954b == Init   | {'uiid': 1, 'extra': {'manufacturer': 'Sonoff', 'model': 'Basic2', 'sw_version': 'PSF-B01-GL v3.3.0'}, 'params': {'partnerApikey': '...', 'version': 8, 'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'startup': 'on', 'staMac': '...', 'rssi': -34, 'fwVersion': '3.3.0', 'switch': 'on', 'sledOnline': 'on', 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...'], 'scene': 0}, 'controlType': 8, 'cloud': 'online'}}
2020-06-07 19:48:37  DEBUG    main          10007da4c3 == Init   | {'uiid': 1, 'extra': {'manufacturer': 'Sonoff', 'model': 'Basic2', 'sw_version': 'PSF-B01-GL v3.4.0'}, 'params': {'timers': [{'mId': '...', 'do': {'switch': 'on'}, 'type': 'repeat', 'at': '30 11 * * 1,2,3,4,5,6,0', 'coolkit_timer_type': 'repeat', 'enabled': 1}], 'controlType': 8, 'partnerApikey': '...', 'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'startup': 'on', 'staMac': '...', 'rssi': -75, 'fwVersion': '3.4.0', 'switch': 'on', 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'cloud': 'online'}}
2020-06-07 19:48:37  DEBUG    main          1000954778 == Init   | {'uiid': 34, 'extra': {'manufacturer': 'SONOFF', 'model': 'iFan', 'sw_version': 'PSF-BFB-GL v3.4.0'}, 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'off', 'light': 'off', 'cloud': 'online'}}
2020-06-07 19:48:37  DEBUG    main          10004ea43b == Init   | {'uiid': 8, 'extra': {'manufacturer': 'KingArt', 'model': 'KING-N3', 'sw_version': 'PSF-B04-GL v3.4.0'}, 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': '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}], 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'lock': 0, 'init': 1, 'rssi': -74, 'staMac': '...', 'fwVersion': '3.4.0', 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...'], 'scene': 0}, 'controlType': 8, 'cloud': 'online'}}
2020-06-07 19:48:37  DEBUG    main          100090867f == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'BASIC', 'sw_version': 'PSF-BD1-GL v3.5.0'}, 'params': {'bindInfos': {'gaction': ['...'], 'miot': ['...'], 'scene': 0}, 'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.5.0', 'rssi': -25, 'staMac': '...', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 2, 'partnerApikey': '...', 'cloud': 'online'}}
2020-06-07 19:48:38  DEBUG    sonoff_cloud  Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1591530518044'}
2020-06-07 19:49:29  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'fan': 'on'}
2020-06-07 19:49:30  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530569980'}
2020-06-07 19:49:30  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530570313
2020-06-07 19:49:30  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530570313', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'on', 'light': 'off'}}
2020-06-07 19:49:31  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'fan': 'off'}
2020-06-07 19:49:31  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530571359'}
2020-06-07 19:49:31  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530571401
2020-06-07 19:49:31  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530571401', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'off', 'light': 'off'}}
2020-06-07 19:49:32  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'fan': 'on'}
2020-06-07 19:49:32  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530572270'}
2020-06-07 19:49:32  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530572420
2020-06-07 19:49:32  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530572420', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'on', 'light': 'off'}}
2020-06-07 19:49:33  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'fan': 'off'}
2020-06-07 19:49:33  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530573389'}
2020-06-07 19:49:33  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530573456
2020-06-07 19:49:33  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530573456', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'off', 'light': 'off'}}
2020-06-07 19:49:34  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'light': 'on'}
2020-06-07 19:49:34  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530574890'}
2020-06-07 19:49:34  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530574974
2020-06-07 19:49:34  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530574974', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'off', 'light': 'on'}}
2020-06-07 19:49:36  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'light': 'off'}
2020-06-07 19:49:36  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530576490'}
2020-06-07 19:49:36  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530576541
2020-06-07 19:49:36  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530576541', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'off', 'light': 'off'}}
2020-06-07 19:49:37  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'light': 'on'}
2020-06-07 19:49:37  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530577552'}
2020-06-07 19:49:37  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530577593
2020-06-07 19:49:37  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530577593', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'off', 'light': 'on'}}
2020-06-07 19:49:38  DEBUG    sonoff_cloud  1000954778 => Cloud4 | {'light': 'off'}
2020-06-07 19:49:38  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530578822'}
2020-06-07 19:49:38  DEBUG    sonoff_cloud  1000954778 => Cloud5 | Force update sequence: 1591530578920
2020-06-07 19:49:38  DEBUG    sonoff_cloud  1000954778 <= Cloud3 | {'error': 0, 'deviceid': '1000954778', 'apikey': '...', 'sequence': '1591530578920', 'params': {'partnerApikey': '...', 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'rssi': -60, 'staMac': '...', 'fwVersion': '3.4.0', 'init': 1, 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...', '...'], 'miot': ['...', '...']}, 'fan': 'off', 'light': 'off'}}

@AlexxIT
Copy link
Owner

AlexxIT commented Jun 7, 2020

Can you share it with my account? sonofflan@gmail.com
I think local and cloud API different for this device.

@AlexxIT AlexxIT added the bug Something isn't working label Jun 7, 2020
@anandsuppiah12
Copy link
Author

Can you share it with my account? sonofflan@gmail.com
I think local and cloud API different for this device.

I cant seem to share the device. Which region is your account registration in?

@anandsuppiah12
Copy link
Author

If this is any help, i edited the uiid to switch4 and i get 4 switches which can control the device.

@AlexxIT
Copy link
Owner

AlexxIT commented Jun 7, 2020

@anandsuppiah12 First one turn on light, second - fan, 3rd and 4th - speed?

@anandsuppiah12
Copy link
Author

@anandsuppiah12 First one turn on light, second - fan, 3rd and 4th - speed?

Correct . Thats exactly how it works

@AlexxIT
Copy link
Owner

AlexxIT commented Jun 7, 2020

@anandsuppiah12
Copy link
Author

Hi. It's working now. I do have a question though. Why not leave it at 4 switch default? The current setup doesn't have speed controls. any reason for it?

@AlexxIT
Copy link
Owner

AlexxIT commented Jun 8, 2020

Speed control should work. Do you have custom config for this device?

@anandsuppiah12
Copy link
Author

No i dont have custom config. Just username and password. It gives me 2 switch. 1 for light and 1 for fan. No speed control.

@AlexxIT
Copy link
Owner

AlexxIT commented Jun 8, 2020

Have you opened entity window?

download

@anandsuppiah12
Copy link
Author

I did not realize there was an option. Thanks for pointing out. And thank you very much for all the work on this addon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wait feedback
Projects
None yet
Development

No branches or pull requests

2 participants