Cloud devices: Tuya, Smart Life, eWeLink
Casamote never connects to a cloud. Devices that only work with their maker's app (Tuya, Smart Life, eWeLink…) can still be controlled from the TV, through a gateway running in your home: Home Assistant.
Why a gateway?
Casamote only talks to equipment on your local network: no account, no server, nothing leaves your home. Tuya, Smart Life and eWeLink plugs, bulbs and switches, however, go through their maker's servers. Casamote does not connect to them: Home Assistant, on your network, makes the link, and Casamote controls Home Assistant.
You already have a smart home hub
Add your cloud devices to your hub (Home Assistant, Jeedom or Homey, through their dedicated integration or plugin): they then show up in Casamote like any other device. Nothing else to install.
No hub: Home Assistant as a gateway
Home Assistant is free. Its “Container” version is lightweight and more than enough to act as a gateway. Two simple ways to host it:
- On a Windows PC that stays on, with WSL: follow the Home Assistant on Windows guide.
- On a Raspberry Pi with a minimal system: see below. Silent, a few watts, left plugged in next to your router.
On a Raspberry Pi (minimal system)
- A Raspberry Pi 4 or newer (64-bit system), its power supply and a microSD card of 32 GB or more.
- The Pi connected to the same network as the TV, preferably over Ethernet.
1. Prepare the card
With Raspberry Pi Imager, write Raspberry Pi OS Lite (64-bit) to the card. In the Imager settings, set a user and password, then enable SSH. Start the Pi and connect to it over SSH from a computer.
2. Install Docker
In the Pi's terminal:
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USERLog out, then log back in.
3. Start Home Assistant
Still on the Pi:
docker run -d --name homeassistant --restart=unless-stopped --privileged \
-e TZ=Europe/Paris -v ~/homeassistant:/config -v /run/dbus:/run/dbus:ro \
--network=host ghcr.io/home-assistant/home-assistant:stableThe first start takes a few minutes. Home Assistant then restarts on its own with the Pi.
4. Open Home Assistant
From a browser, on a computer or phone on the same network:
http://PI-IP:8123Create your account.
Shortcut: everything in one command
In the Linux terminal (Ubuntu under WSL, or the Raspberry Pi), this command replaces the “Install Docker” and “Start Home Assistant” steps: it installs Docker if needed, starts Home Assistant, waits until it answers and prints the address to open. It is safe to run again. You can read the script at that address before running it.
curl -fsSL https://casamote.app/assets/ha-setup.sh | bashAdd your devices to Home Assistant
- Tuya / Smart Life: in Home Assistant, Settings › Devices & services › Add integration › Tuya, then follow the on-screen instructions (user code and QR code to scan from the Smart Life or Tuya Smart app).
- eWeLink (Sonoff): Home Assistant has no built-in eWeLink integration. The community integration Sonoff LAN, installed through HACS, is the most widely used: it signs in with your eWeLink account.
- No cloud at all: a Sonoff device switched to DIY mode, or any device running Tasmota, connects directly to Casamote, with no gateway. See Sonoff / eWeLink and Tasmota.
Lighter for Tuya / Smart Life: TinyTuya (advanced users)
TinyTuya is a small open-source tool (Python) that controls Tuya / Smart Life devices directly on the local network, without going through the cloud day to day. Its local server (port 8888) offers simple addresses, for example http://IP:8888/turnon/DEVICE-ID/1 and /turnoff/DEVICE-ID/1, which you declare in Casamote with the HTTP connector. It is much lighter than Home Assistant, but more technical: you need to create a Tuya developer account (iot.tuya.com), link your Smart Life app to it, then run the TinyTuya wizard to get each device's local key; each device is then described by hand in Casamote. Fine for a few plugs or lamps; for an air conditioner or many devices, Home Assistant remains simpler. Community solution, not tested by Casamote: see github.com/jasonacox/tinytuya. It does not cover eWeLink.
Connect Casamote
In Casamote: Systems › Add a system › Home Assistant, with the address http://GATEWAY-IP:8123. See the Home Assistant guide.
Good to know
- The link to the maker's cloud is between Home Assistant and that maker. Casamote itself stays strictly local.
- These devices still depend on the Internet and on their maker's servers: during an outage they may stop responding.
- The gateway (PC or Raspberry Pi) must stay on.
- Tuya, Smart Life, eWeLink, Sonoff, Raspberry Pi and Home Assistant are trademarks of their respective owners. Casamote is not affiliated with any of them; this guide is not provided by them.