Smappee smart home integration, free and open source

Smappee energy monitors: consumption, solar, sub-meters and plugs, read locally or from the cloud.
Developed without the hardware: feedback welcome. This integration was written from the Smappee library of Home Assistant (pysmappee) and the official API, and tested against simulated monitors. If something looks wrong with your Smappee, please open an issue: https://github.com/guim31/gladys-smappee/issues
Overview
This integration brings your Smappee energy monitors into Gladys: home consumption, solar production, grid import and export, sub-meters, Smappee Switches and Comfort Plugs. It reads the monitors on your local network first, and through the Smappee cloud the ones whose address you do not type.
| Monitor | Read through |
|---|---|
| Smappee Energy, Solar, Pro/Plus | local web API (HTTP), every 5 to 60 seconds |
| Smappee Infinity, Genius, Connect | local MQTT broker (port 1883), pushed live |
| Any monitor of your Smappee account | Smappee cloud (optional), every 5 minutes |
| Charging stations of your account | Smappee cloud, every 5 minutes, read-only |
Requirements
- Gladys Assistant 5.1 or later (5.2 for the energy tab).
- For local access: the IP address of each monitor, on the network of Gladys. Give it a fixed
address in your router. Energy, Solar and Pro need the password of their local web interface
(
adminunless you changed it). - For the cloud (optional): an API client id and secret, which Smappee gives on request (ask the Smappee support for "API access"), and the user name and password of your Smappee account.
Configuration
Local access
In Integrations → Smappee → Configuration, type the IP addresses of your monitors, separated by commas. For each address the integration tries the local web API, then the MQTT broker. The Local web interface password is only used by Energy, Solar and Pro; leave it empty for the factory password.
Cloud access
Fill in the four fields of the Smappee cloud section to read the monitors that are not on your network, and to control the plugs known to the cloud. A monitor whose address is typed is read locally only, never through the cloud: remove its address to read it through the cloud. With three fields out of four, the cloud stays off.
Options
- Local refresh interval: how often the local readings are sent to Gladys (10 seconds by default). The energy indexes are always computed from every reading.
- Control the Smappee plugs and switches: off, they are shown read only.
- Cost the monitor's consumption in the energy tab (on by default): turn it off when another meter already measures the whole home, see Energy tab.
- Language of the device names: the names given to the features when a device is added.
Then open the Discovery tab and add the devices you want.
Devices
Monitor
One device per monitor, named after its model and serial number (Smappee Genius 5010000101):
- Consumption (W) and Consumption index (kWh): the whole home;
- with solar panels: Solar production and Solar production index, Grid import and Grid export (W), Grid import index and Grid export index (kWh), deduced from consumption minus production. The Grid import index is then the billed counter, and Consumption index the home use (shown, not priced);
- Infinity, Genius and Connect: Voltage L1 to Voltage L3.
The monitors give powers, not counters, over their local API: the integration adds up power × time into the indexes, kept in its data volume. A gap of more than 3 minutes (Gladys or the monitor stopped) is not filled in. Through the cloud, the indexes add up the 5-minute totals of Smappee. The indexes start at 0 the first time.
Sub-meters
Infinity, Genius and Connect: one device per sub-circuit set up in the Smappee app (CT clamps), named as in the app, or Smappee sub-meter and its channel number: Power, Energy index and Current.
Plugs and switches
One device per Smappee Switch, Comfort Plug or cloud output module, with an On/Off feature (named as in the app, else Smappee plug and its number). A Comfort Plug (433 MHz) never tells its state: Gladys shows the last command sent.
Charging stations
One read-only device per connector of a Smappee charging station (EV Wall...), named as in the app, else Smappee charger and its number. Only the Smappee cloud gives them: fill in the cloud section, even if the monitor is read locally. All the values are refreshed every 5 minutes.
- Connector: free, or occupied while a vehicle is connected;
- Charging state: charging, vehicle connected, paused by the charger, or idle;
- Charging power (kW): the average of the last 5 minutes, for a monitor read through the cloud, and 0 when no session is under way;
- Last session energy (kWh) and Last session duration: the session under way, else the last one. During a charge, the energy is the one measured on the charger, a few minutes late;
- Total charged energy (kWh): the meter of the charger, as read in the sessions. It moves when a session stops, and stays empty until the first session of the last 30 days;
- Charging station energy index (kWh): the energy measured on the charger's channel by the Smappee monitor (not the meter of the charger), added up block by block from the cloud's 5-minute data, a few minutes late. Only for a charger whose monitor is read through the cloud and that has a measuring channel. It starts at 0 when the integration is updated: no history before.
Only the Charging station energy index is costed in the energy tab: it shows, day by day and half-hour by half-hour, what the car takes. That energy is already counted by the main meter: in the energy settings of Gladys, place the charger's index under the main meter (the index of the monitor, or a Linky/Lixee meter), or it is counted twice.
A charger added before the update gets the new index from the Discovery tab of the integration: click Update on the charger's device. Its other features, history and scenes are kept.
Use the standard trigger on a device value to start a scene, for example when the Charging state changes.
Energy tab
The energy tab of Gladys 5.2 prices what the grid delivers: the Consumption index of a monitor without solar panels, the Grid import index of a monitor with solar panels (its Consumption index, which includes the solar energy used at home, is shown but not priced). The Energy index of the sub-meters is a consumption counter too, and the Solar production index a production counter. Set the sub-meters, and the Charging station energy index of the chargers, under the main meter in the energy settings, so they are not counted twice. The grid export is shown, never added up again.
With another main meter (charging station)
You already have a main meter in Gladys (Linky through Lixee, Enedis...) and the Smappee is there mostly to isolate what the car takes? Left as is, the home is counted twice: by the Linky and by the index of the monitor.
- In the configuration of the integration, turn off Cost the monitor's consumption in the energy tab and save.
- Open the Discovery tab and click Update on the monitor. The Grid import index (or the Consumption index without solar panels) becomes a grid index: still shown, with its history, but no longer costed. Its derived consumption and cost leave the energy tab.
- In the energy settings, place the Charging station energy index under your main meter: the energy tab then isolates what the car takes, day by day. The sub-meters stay costed the same way.
Without another meter, leave the option on: the monitor stays your main meter.
Widget
Smappee energy flow shows one site (the first monitor, or the one chosen in its settings): Home, and with solar panels Solar, Import and Export, the grid as a gauge (Grid, import to the right, export to the left) and the Self-use share of the production, with the state of the monitor.
Scene triggers
- A Smappee monitor goes offline: the monitor stops answering (3 local readings in a row, one minute without MQTT message, or 30 minutes without new cloud data).
- A Smappee monitor is back online: it answers again.
Both can be limited to one monitor, and give its name as a variable. For a high consumption, use the standard trigger of Gladys on a device value: "Consumption" of the monitor above, for example, 6000 W.
Actions
Search for Smappee monitors (Configuration tab): connects again to the addresses and the cloud, and tells what answered, how, and what went wrong (password, address, cloud credentials).
Scene examples
- When Consumption of the monitor is above 6000 W, turn off the Smappee Switch of the water heater and send a message.
- When Grid export is above 1500 W, turn on the Comfort Plug of the pool pump.
- When A Smappee monitor goes offline, send a message (power cut, Wi-Fi down).
Troubleshooting
- No device in Discovery: run Search for Smappee monitors and read its report.
- "refused the password": type the password of the monitor's local web interface.
- "no Smappee answers there": check the address; an Infinity, Genius or Connect must accept connections on port 1883 from Gladys's network.
- "waiting for the monitor's configuration": the MQTT broker answers but has not sent its configuration yet; wait a minute, then search again.
- "credentials refused": check the client id and secret given by Smappee, and your account.
- Detailed logs: start the integration with
LOG_LEVEL=debug.
Limits
- Charging stations: read-only, no start, pause or charging mode from Gladys. Only sessions of the last 30 days are read the first time.
- Developed without the hardware: the message formats come from pysmappee and the official documentation. Feedback welcome.
- Energy, Solar and Pro give no voltage and no sub-meter over their local API.
- Local indexes are computed by the integration: they may drift a little from the Smappee app.
- The cloud gives 5-minute data: powers are 5-minute averages, read every 5 minutes.
- No automatic discovery: type the addresses.
- Not affiliated with Smappee.
Configuration settings
These are the settings Smappee asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Your Smappee monitors | section | No | Type the IP address of each Smappee: Energy, Solar and Pro are read over their local web API, Infinity, Genius and Connect over their local MQTT broker. Give it a fixed address in your router. |
| IP addresses of the Smappee monitors | string | No | Separated by commas. Leave empty to use the cloud only. |
| Local web interface password | secret | No | Energy, Solar and Pro only. Empty: the factory password (admin). |
| Smappee cloud (optional) | section | No | For a monitor not reachable on your network, and for the plugs and charging stations of the cloud account. Ask Smappee support for an API client id and secret, then type them with your Smappee account. Read every 5 minutes. |
| API client id | string | No | |
| API client secret | secret | No | |
| Smappee account user name | string | No | |
| Smappee account password | secret | No | |
| Options | section | No | |
| Local refresh interval | select | Yes | How often the local readings are sent to Gladys. |
| Control the Smappee plugs and switches | boolean | No | Off: they are shown, read only. |
| Cost the monitor's consumption in the energy tab | boolean | No | Turn off when another meter (Linky, Lixee...) already measures the whole home. The monitor's indexes stay shown and keep their history, but are no longer costed; the charging stations and sub-meters stay costed. Then click Update on the monitor in the Discovery tab. |
| Language of the device names | select | Yes | Used when a device is added to Gladys. |
How to install Smappee in Gladys
- In Gladys, open Integrations: Smappee appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/guim31/gladys-smappee:1.3.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/guim31/gladys-smappee.
Smappee requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Smappee is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation