1. Introducing eWeLink Home Assistant Add-on
- Priority to control devices on LAN. If the device does not support LAN mode or is not on LAN, you can control the device through the cloud.
- Only supports Home Assistant installed through HassOS and Supervisor.
Log in to the Home Assistant Lovelace console (usually, the URL is http://homeassistant.local:8123/), click Supervisor at the sidebar to open the HassOS dashboard, switch to the Add-on Store tab. Click the vertical ellipsis (three vertical dots) in the upper right corner, select Repositories in the pop-up menu, enter the official add-on address of eWeLink: https://github.com/CoolKit-Technologies/ha-addon in the Manage add-on repositories modal box, click ADD. After closing the modal box, you can see the newly added eWeLink add-on on the Add-on Store page.
Click the eWeLink Smart Home card to open the add-on information page, click INSTALL and wait for the installation to complete, click START to enable the “eWeLink Smart Home” add-on.
Note: To facilitate quick access to the eWeLink Smart Home add-on, you can enable the Show in sidebar option.
*Tip: You need to change the home_assistant_url if you are using docker or other versions of Home Assistant that are not Home Assistant OS.
3. Sync SONOFF Devices to Home Assistant
- Control SONOFF DIY Mode devices on LAN
Click OPEN WEB UI, the eWeLink Smart Home Web UI page will list all DIY devices on LAN searched by mDNS.
- Log in to eWeLink account to control all eWeLink Support devices
- Setup Scene, Automation to control eWeLink Support devices
Devices connected through Home Assistant REST API and WebSocket API can only be mapped as entities instead of devices, which makes it impossible to directly control devices via Home Assistant’s Scene and Automation.
To solve this problem, you need to enable the Advanced Mode (Lovelace Console > Profile > Advanced Mode).
To use eWeLink Support devices in Automation, you need to first create a Scene that contains your devices, and then select Activate Scenario in Action > Action Type of Automation.
4. Sync Home Assistant Devices to eWeLink App
You can sync your Home Assistant devices to eWeLink, then control all your devices via eWeLink APP.（Scene Linkage and Voice Control by Amazon Alexa and Google Home are upcoming）
How to Sync?
Open eWeLink Smart Home Add-on, click Sync Home Assistant Devices and you will see the Devices List, enable its toggle switch on the right to sync your Home Assistant devices to eWeLink App.
Tip: Entities supported by current version are displayed in the Devices List. (Current version only supports Switch and Light entities)
Tip: Please agree with the Terms of Service when syncing your devices for the first time.
And then open eWeLink App, you will see and control all your devices together after login.
Tip: Please keep eWeLink Smart Home Add-on logged in and its network in good quality for better control your devices in eWeLink App.
When you disable the toggle switch in Sync Home Assistant Devices of eWeLink Smart Home Add-on, all previously synced devices will be offline. You could also enable the toggle switch again to bring devices back online.
Control Home Assistant Devices on NSPanel
After syncing Home Assistant’s devices to the eWeLink App in the previous step, you can then sync Home Assistant’s devices to the NSPanel screen for control in the same way as you would add a widget.