No bridge needed, but my “out of the box” comment was getting ahead of myself. I actually needed to install the Sonoff eWeLink custom component. Just follow the readme about where things should go.
Then if you don’t have it already, add the following code in configuration.yaml:
Hmm… I cannot get it working with HASS v0.90.2. It seems that the component may need to be patched to support a different directory structure. To install I’m just dong a:
2019-04-02 20:13:28 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sonoff.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/src/app/homeassistant/loader.py", line 166, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sonoff.sensor'; 'custom_components.sonoff' is not a package
2019-04-02 20:13:28 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-04-02 20:13:28 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change sensor/sonoff.py to sonoff/sensor.py. This will stop working soon.
2019-04-02 20:13:28 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sonoff.switch. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/src/app/homeassistant/loader.py", line 166, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 962, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sonoff.switch'; 'custom_components.sonoff' is not a package
2019-04-02 20:13:28 WARNING (MainThread) [homeassistant.loader] You are using a custom component for switch.sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-04-02 20:13:28 WARNING (MainThread) [homeassistant.loader] Integrations need to be in their own folder. Change switch/sonoff.py to sonoff/switch.py. This will stop working soon.
Not sure what the error as it’s not my component but it might be easier to install manually. You can grab the raw files from github and save as individual files. This is what my file structure looks like. I am also on v90.2.
hi all, i’m the creator of the sonoff component.
for those of you who are in doubt on how to install it 1st of all please read the description (that’s the main problem usually) and/or follow up in the original thread.
if you want to help integrating the device mentioned by @sfgabe feel free to join (and help) the discussion https://github.com/peterbuga/HASS-sonoff-ewelink/issues/83
also, HA v0.88+ needs a different structure of the files (@sfgabe) and there are branches that follow this change.
A bit late but I just want to share my recent experience. I also bought this one: https://m.aliexpress.com/item/33014570952.html
They nicely show in the video and images that is compatible with eWeLink but it’s not. It can pair only with Tuya or Smart Life and it’s not recognized by HA. So be careful guys.
As with regards to the eWeLink ones, did you manage to integrate it in HA? Can you adjust more settings than only the power?
As I see Smart Life can connect with IFTTT but the diffusers are not recognized as compatible devices. So, as a workaround for people who don’t want to install too many things, you can create a scene in Smart Life that turns the diffuser on/off which is recognized by IFTTT. Therefore you will have something like HA -> IFTTT -> Smart Life -> diffuser.
Really don’t like this solution but it works for now.
I have got a similar one as the OP. I have ordered a replacement board (see link below) which should work just on/off with power switch. I will report back once I receive my part.
If you are running Node-red there is a tuya node that can control various tuya devices locally, mine do not have internet connectivity but i can control them. it takes a little time to figure out a few things like which setting is controllable but can be done
I found the codes for this model, they are commands “AT + UPDATE =” serial codes similar to sonoff-L1
Diffuser and Light ON FAN LOW
backlog serialsend4 AT+UPDATE=“sequence”:“1579752745631”,“switch”:“on”,“state”:1; serialsend5 1B
Diffuser and Light ON FAN HIGH
backlog serialsend4 AT+UPDATE=“sequence”:“1579752745631”,“switch”:“on”,“state”:2; serialsend5 1B
Diffuser and Light OFF FAN OFF(LOW)
backlog serialsend4 AT+UPDATE=“sequence”:“1579752745631”,“switch”:“off”,“state”:1; serialsend5 1B
Hi all. I have the Maxcio oil diffuser connected with smart life and google assistant. I didn’t understand how to have it working inside HA. I’m not interested in hacking the firmware. Just normal integration. What shall I do? How to use with sonoff? Shall I create an account?