question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with with sonoff basic R3 firmware version 3.5.0

See original GitHub issue

Hi AlexxIT

Firstly many thanks for you work so far This device was working before upgrading to firmware 3.5.0

Currently running Home Assistant 0.111.4 and sonoff lan v2.1.4 ,

As you can see below I have several devices all working fine except “100090516a” this works fine in the app and was working in home assistant prior to the firmware upgrade

Is there anything I can do to make this work

I reloaded the sonoff.json config and enabled debugging and get the following in the log

2020-06-19 14:37:07  DEBUG    main          SysInfo: {'version': '0.111.4', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.7.7', 'docker': True, 'arch': 'armv7l', 'os_name': 'Linux', 'os_version': '4.19.126-v7', 'supervisor': '227', 'host_os': 'HassOS 4.10', 'chassis': 'embedded', 'docker_version': '19.03.8'}
2020-06-19 14:37:07  DEBUG    main          CLOUD mode start
2020-06-19 14:37:10  DEBUG    sonoff_cloud  Redirect to region: as
2020-06-19 14:37:14  DEBUG    sonoff_cloud  5 devices loaded from the Cloud Server
2020-06-19 14:37:14  DEBUG    main          10004460a6 == Init   | {'uiid': 14, 'extra': {'manufacturer': 'Sonoff', 'model': 'Basic', 'sw_version': 'ITA-GZ1-GL v3.4.0'}, 'params': {'bindInfos': {'alexa': ['...']}, 'version': 8, 'switch': 'off', 'fwVersion': '3.4.0', 'startup': 'on', 'staMac': '...', 'rssi': -60, 'partnerApikey': '...', 'sledOnline': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'cmd': {'switch': 'off'}, 'entity_id': 'switch.sonoff_10004460a6', 'cloud': 'online'}}
2020-06-19 14:37:14  DEBUG    main          10002a9681 == Init   | {'uiid': 7, 'extra': {'manufacturer': 'KingArt', 'model': 'KING-N2', 'sw_version': 'PSF-B04-GL v3.4.0'}, 'params': {'init': 1, 'rssi': -46, 'staMac': '...', 'pulseWidth': 0, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'pulse': 'off', 'fwVersion': '3.4.0', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'controlType': '7', 'timers': [{'enabled': 1, 'coolkit_timer_type': 'repeat', 'at': '10 23 * * 1,2,3,4,5,6,0', 'type': 'repeat', 'do': {'switch': 'off', 'outlet': 0}, 'mId': '...'}, {'enabled': 1, 'coolkit_timer_type': 'repeat', 'at': '9 23 * * 1,2,3,4,5,6,0', 'type': 'repeat', 'do': {'switch': 'on', 'outlet': 1}, 'mId': '...'}], 'partnerApikey': '...', '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}], 'bindInfos': {'alexa': ['...']}, 'cloud': 'online'}}
2020-06-19 14:37:14  DEBUG    main          100043eb05 == Init   | {'uiid': 14, 'extra': {'manufacturer': 'Sonoff', 'model': 'Basic', 'sw_version': 'ITA-GZ1-GL v3.4.0'}, 'params': {'partnerApikey': '...', 'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.4.0', 'startup': 'on', 'staMac': '...', 'rssi': -81, 'version': 8, 'timers': [], 'bindInfos': {'alexa': ['...']}, 'cloud': 'online'}}
2020-06-19 14:37:14  DEBUG    main          100090516a == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'BASIC', 'sw_version': 'PSF-BD1-GL v3.5.0'}, 'params': {'version': 8, 'sledOnline': 'off', 'switch': 'off', 'fwVersion': '3.5.0', 'rssi': -57, 'staMac': '...', 'startup': 'on', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'partnerApikey': '...', 'bindInfos': {'alexa': ['...']}, 'swMode': 2, 'cloud': 'online'}}
2020-06-19 14:37:14  DEBUG    main          1000a40fca == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'MINI', 'sw_version': 'PSF-BD1-GL v3.3.0'}, 'params': {'bindInfos': {'alexa': ['...']}, 'version': 8, 'sledOnline': 'off', 'switch': 'off', 'fwVersion': '3.3.0', 'rssi': -54, 'staMac': '...', 'startup': 'stay', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'partnerApikey': '...', 'cloud': 'online'}}
2020-06-19 14:37:15  DEBUG    sonoff_cloud  Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1592573835146'}

in home assistant I get this error in the dashboard

Entity not available: switch.sonoff_100090516a

Please let me know if i can provide any further information.

thanks Joe K.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
AlexxITcommented, Jul 8, 2020

@poltergejst you need remove mini from ewelink account. Component is trying to use devicekey from the cloud

1reaction
poltergejstcommented, Jul 9, 2020

@poltergejst you need remove mini from ewelink account. Component is trying to use devicekey from the cloud

So simple! Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic R3 Issue with fw 3.5.0 and 3.6.0 in DIY mode #317
The latest units that I've acquired with latest firmware versions (3.5.0 and 3.6.0) are not recognized by HA and stay unavailable every time...
Read more >
SONOFF DIY developer documentation
The DIY Mode is designed for IoT home automation users and developers who would like to control the SONOFF device via existing home...
Read more >
eWeLink & Sonoff User Group | Does anyone have problems ...
Does anyone have problems with Sonoff pow R2 after updating 3.3.0. Monitoring is very slow or not ... 3.5.8 and the 2.8.0 firmware...
Read more >
Sonoff R3 DIY mode & why it sucks - NotEnoughTech
Sonoff Basic R3 & Sonoff RF R3 · Buy Sonoff Basic R3 · Firmware update issues.
Read more >
Flashing Tasmota firmware onto Sonoff devices over-the-air
Templates are device-specific definitions of how their GPIO pins are assigned. Copy the template for your Sonoff device: Sonoff Basic R3: {"NAME ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found