Energy Monitoring raccoglie i dati degli impianti fotovoltaici (inverter, batterie, contatori fiscali, solarimetri) e li mostra in un portale web e nell'app SM Monitor. È composto da tre parti:
La terza parte è l'app SM Monitor per smartphone, che usa le stesse credenziali del portale.
| Ruolo | Come si ottiene | Cosa può fare |
|---|---|---|
| Amministratore | Account del costruttore | Tutto: impianti, dispositivi, utenti, inviti, credenziali, parametri BMS, convalida delle configurazioni. |
| Operatore | Creato dall'amministratore (gruppo "Operatori") | Lavora nell'amministrazione sugli impianti assegnati; non può eliminare impianti né vedere credenziali. Manda i comandi agli inverter degli impianti assegnati. |
| Installatore | Si registra da solo con l'invito installatore (QR nella scatola del gateway) | Aggiunge impianti con la procedura guidata, abbina il gateway, aggiunge i dispositivi, invita i clienti, manda i comandi agli inverter. Vede solo i propri impianti. |
| Cliente | Si registra con l'invito cliente generato dall'installatore (gruppo "Clienti") | Consulta i propri impianti dal portale e dall'app; comanda i pulsanti/relè abilitati. Nessun comando agli inverter. |
Il percorso completo, dal gateway nella scatola all'impianto visibile al cliente. Ogni passo rimanda al capitolo con i dettagli.

Il gateway ha due porte Ethernet Gigabit. Di fabbrica lavora in modalità router: una porta va verso internet (DHCP), l'altra crea la rete d'impianto 192.168.10.1/24 con DHCP per i dispositivi Modbus TCP. In alternativa la modalità bridge unisce le due porte nella rete del cliente. Il gateway deve poter raggiungere internet: verso il server usa la VPN IKEv2 e MQTT cifrato (TLS), entrambe in uscita, senza aprire porte sul router del cliente.
| Etichetta | Tipo | Device | Morsetti | Coppia |
|---|---|---|---|---|
| RS485-1 | RS485 | /dev/ttyS2 | A+ / B− / GND | con RS485-3 |
| RS485-2 | RS485 | /dev/ttyS1 | A+ / B− / GND | con RS485-4 |
| RS485-3 | RS485 | /dev/ttyS3 | A+ / B− / GND | con RS485-1 |
| RS485-4 | RS485 | /dev/ttyS4 | A+ / B− / GND | con RS485-2 |
| RS232 | RS232 | /dev/ttyS0 | TX / RX / GND | — |
ttyS2 e RS485-2 a ttyS1. Il portale e il pannello mostrano sempre il nome dell'etichetta (RS485-1…4): usa quello.Due uscite a 3,3 V (connettore interno CON10, pin 12 = GPIO 198 e pin 9 = GPIO 199; GND ai pin 17/18) comandano un modulo relè esterno optoisolato alimentato a parte. I relè si accendono, spengono o danno un impulso dal portale (pulsanti nella dashboard dell'impianto). Dettagli nel manuale del gateway, sez. 3.6.
Dal PC collegato alla stessa rete del gateway apri http://<IP del gateway> (in modalità router: http://192.168.10.1 dalla porta LAN). Credenziali di fabbrica admin / admin: cambiale al primo accesso (scheda Account). Dopo 5 tentativi errati l'accesso si blocca per 5 minuti.

| Scheda | A cosa serve |
|---|---|
| Identità | Hostname, identificativi e chiavi SSH del dispositivo (da rigenerare se l'immagine è stata clonata). |
| Rete | Modalità router o bridge, DHCP o IP statico delle due Ethernet. |
| RS485 | Modalità di ogni porta, priorità CCI, baudrate e formato (cap. 5). |
| RS232 | Porta raw TCP o libera per un contatore. |
| Monitoraggio | Seriale e codice di abbinamento, stato del collegamento al portale, servizi Telegraf e API contatori, log. |
| VPN | Connessione IKEv2 verso il server (normalmente già configurata in fabbrica). |
| Inoltro porte | Rende raggiungibile dalla VPN la pagina web di un dispositivo della rete locale (es. inverter, datalogger) per l'assistenza remota. |
| Account / Sistema | Password del pannello; aggiornamento, riavvio, ripristino di fabbrica. |
Il gateway si presenta da solo al server pochi minuti dopo l'accensione (se ha internet e VPN). La scheda mostra il seriale (lo stesso dell'etichetta) e il codice di abbinamento: 8 caratteri, valido 24 ore, rigenerabile con un clic. Il codice serve nella procedura guidata del portale (passo Gateway) e dimostra che chi abbina ha davvero il gateway davanti.

Dopo l'abbinamento la scheda mostra l'impianto, l'ultimo contatto e l'ultimo aggiornamento della configurazione. Credenziali MQTT, token dell'API contatori e configurazione di Telegraf arrivano cifrati con una chiave che esiste solo su quel gateway, e vengono riscaricati da soli a ogni modifica dei dispositivi sul portale (entro 5 minuti, o subito con Sincronizza ora).

Le quattro RS485 formano due coppie: 1↔3 e 2↔4. Ogni porta ha una modalità, scelta nella scheda RS485 del pannello.
| Modalità | Quando usarla |
|---|---|
| Monitoraggio | Il caso normale: inverter e dispositivi Modbus letti dal nostro monitoraggio. Il gateway fa da proxy: il monitoraggio legge da 127.0.0.1:150N, il CCI si collega in Modbus TCP alla porta 500+N (N = numero della ttyS). |
| Bridge (solo porte 1 e 2) | Un datalogger esterno sulla porta 1/2 parla direttamente con gli inverter della porta 3/4. Datalogger e nostro monitoraggio non condividono mai la stessa coppia. |
| Contatore | Porta lasciata libera per la lettura DLMS/IEC dei contatori fiscali da parte del server. |
| BMS Seplos | Porta dedicata alle batterie con BMS Seplos V3 (una sola per gateway, 19200 8N1). Sul bus non vanno altri dispositivi e il CCI è disattivato. |
| Slave / Raw TCP / Off | Server Modbus TCP sulla seriale, passthrough trasparente, porta spenta. |

Il CCI (Controllore Centrale d'Impianto, delibera ARERA 385/2025) ha sempre la precedenza sul monitoraggio. Con la spunta Priorità CCI sulla coppia a cui è collegato:
Nei grafici possono quindi comparire brevi vuoti durante le sessioni del CCI: è il comportamento previsto.
| Porta | CCI (Modbus TCP) | Monitoraggio (interno) |
|---|---|---|
| RS485-1 (ttyS2) | 502 (monitoraggio) · 503 (bridge) | 127.0.0.1:1502 |
| RS485-2 (ttyS1) | 501 (monitoraggio) · 504 (bridge) | 127.0.0.1:1501 |
| RS485-3 (ttyS3) | 503 | 127.0.0.1:1503 |
| RS485-4 (ttyS4) | 504 | 127.0.0.1:1504 |
Al portale ci si registra solo con un invito: un link personale, di solito stampato come QR. Gli inviti sono di due tipi.
| Invito | Chi lo genera | Cosa dà |
|---|---|---|
| Installatore | Il costruttore (etichetta nella scatola del gateway) | Un account installatore, con il gateway della scatola già pronto da abbinare. |
| Cliente | L'installatore, dalla procedura guidata | Un account cliente che vede gli impianti dell'invito. Vale 30 giorni. |


Si entra da /login/ con nome utente e password. In alto a destra si scelgono la lingua (italiano, inglese, tedesco, francese, spagnolo) e il tema chiaro o scuro; la scelta resta memorizzata. Per una password dimenticata rivolgiti all'amministratore del portale.
La procedura guidata si apre da sola dopo la registrazione con l'invito installatore, oppure da Account → Impianti → Aggiungi impianto. Ha sette passi; la barra in alto mostra quelli completati e permette di tornare indietro. Ogni passo si salva con Salva e continua.

Nome dell'impianto (obbligatorio), indirizzo, comune, provincia e POD (sulla bolletta, es. IT001E12345678). Al salvataggio l'impianto viene creato in bozza e tu ne diventi utente.
Clicca sulla mappa (o trascina il segnaposto) nel punto dell'impianto: latitudine e longitudine si compilano da sole. La posizione serve per la mappa del portfolio e per il meteo.

Potenza di picco (kWp, somma dei moduli) e data di entrata in esercizio: servono per resa specifica (kWh/kWp) e performance ratio. L'opzione Flussi di energia mostra nella dashboard lo schema con fotovoltaico, rete, batteria e consumi.
Irraggiamento: con un solarimetro lascia Solarimetro dell'impianto. Se l'impianto non ha solarimetro scegli Online (stimato da satellite): il portale prende ogni quarto d'ora l'irraggiamento stimato da satellite nella posizione dell'impianto (Open-Meteo) e lo usa per grafico, PR e allarmi. Indica la struttura dei moduli per averlo sul loro piano:

Il riquadro Stato si aggiorna da solo ogni 5 secondi: abbinamento, ultima configurazione scaricata dal gateway, elenco delle porte ricevuto e ultimo dato. Se il gateway non è ancora pronto puoi premere Salta per ora e tornare dopo.

Messaggi possibili: "Questo gateway non si è ancora presentato al server" (controlla alimentazione, internet e VPN, riprova dopo qualche minuto); codice errato o scaduto (rigenera il codice nel pannello). Per sostituire un gateway guasto basta abbinare qui il nuovo: riceve da solo la configurazione.
Vedi il capitolo 8.
Vedi il capitolo 9.
Riassume i dati dell'impianto e controlla i punti principali: posizione sulla mappa, gateway abbinato, almeno un dispositivo, primi dati ricevuti. Puoi completare anche con dei punti aperti (cerchio arancione) e tornare a configurare in seguito. Completa toglie lo stato "in configurazione" e apre la dashboard dell'impianto; per un impianto già completato il pulsante è Vai alla dashboard.

Il passo Dispositivi elenca i dispositivi dell'impianto (modello, collegamento, ultimo dato) e permette di aggiungerne di nuovi.

| Campo | Cosa inserire |
|---|---|
| Nome | Un nome riconoscibile, es. "Inverter 1 – falda sud". |
| Preset | Il modello del dispositivo (inverter di molte marche, batterie Seplos). Crea da solo i blocchi di registri e le variabili, compresa la potenza e il contatore di energia. È obbligatorio. |
| Slave ID | Indirizzo Modbus del dispositivo (1–247), impostato sul dispositivo stesso. |
| kWp | Potenza dei moduli collegati a quell'inverter: serve per la resa e il confronto tra inverter. |
| Porta del gateway | Scegli la porta dal menu (es. "RS485-3 (monitor)"). Il menu mostra le porte che il gateway ha comunicato e quali dispositivi le usano già. |
Se il gateway non ha ancora mandato l'elenco delle porte (succede dopo l'abbinamento), scegli Personalizza… e compila a mano il collegamento: seriale (porta, baud, bit, parità, stop) oppure Modbus TCP (IP e porta del dispositivo nella rete locale del gateway).
/dev/ttyS3), il gateway la legge comunque attraverso il proxy con priorità CCI: non serve altro.Scegli Contatore fiscale come tipo, poi il modello (Itron/Actaris SL7000, Landis+Gyr ZMD/ZMQ, Iskra, EMH, CEWE, Elster, DPEE o generico DLMS / IEC 62056-21), la costante K (rapporto TA × TV; 1 se il contatore legge già i valori primari) e la porta (in modalità Contatore sul gateway, oppure la RS232). Al salvataggio il gateway legge la matricola del contatore e la scrive nel portale. Il contatore viene letto una volta per quarto d'ora chiuso; i quarti mancanti degli ultimi 85 giorni vengono recuperati da soli dalla curva di carico.
I BMS Seplos V3 vanno su una porta RS485 dedicata (modalità BMS Seplos sul gateway), senza altri dispositivi sullo stesso bus. Un dispositivo per pacco (slave ID = indirizzo DIP del pacco) oppure il preset "sistema in parallelo" per i dati aggregati del master.
In fondo alla pagina scegli da dove prendere potenza ed energia dell'impianto mostrate in portfolio e dashboard: somma degli inverter (predefinita), un contatore Modbus o un contatore DLMS dell'impianto.
Nel passo Clienti scrivi il nome del cliente (o una nota) e premi Genera invito. Compaiono il QR e il link: il cliente inquadra il QR dal tuo telefono o dal foglio stampato con Stampa etichetta, crea il suo account e vede subito l'impianto, anche dall'app.

Dalla voce Account del menu (o cliccando sul tuo nome utente):

La pagina iniziale riassume tutti gli impianti visibili: numero e kWp installati, potenza attuale, energia di oggi, impianti con anomalie. La tabella mostra per ogni impianto stato, potenza, energia, resa, PR, disponibilità, dispositivi in comunicazione e ultimo dato; la mappa li posiziona con il colore dello stato. La pagina si aggiorna da sola ogni 2 minuti.


| Indicatore | Significato |
|---|---|
| Potenza attuale | Dalla fonte scelta (somma inverter o contatore), con la percentuale sulla potenza di picco. |
| Energia oggi | Energia prodotta da mezzanotte e resa specifica (kWh/kWp). |
| Irraggiamento | Dal solarimetro dell'impianto oppure stimato da satellite (ultimo quarto d'ora disponibile), in W/m². |
| PR oggi | Performance ratio: energia ÷ (kWp × irraggiamento cumulato). Serve un solarimetro o l'irraggiamento online. |
| Disponibilità | Letture ricevute oggi rispetto a quelle attese, media dei dispositivi attivi. |
Grafico della potenza di tutti gli inverter e confronto del giorno: energia, resa e scostamento della resa dalla mediana degli inverter. Un inverter che rende molto meno degli altri si vede subito (barra rossa).

Cliccando su un dispositivo: indicatori (potenza, energia di giorno/settimana/mese/anno, disponibilità), grafico giornaliero, valori attuali, energia dal contatore del dispositivo e, per i contatori, il token per l'API delle letture. Nel menu delle variabili sopra il grafico si spuntano tutte quelle da sovrapporre (es. potenza, tensioni e correnti MPPT, temperatura): ognuna ha il suo asse per unità di misura; all'apertura c'è solo la potenza.
Comandi inverter (amministratore, operatori e installatori, sugli impianti assegnati; mai i clienti): per gli inverter con un preset che li prevede, accensione/spegnimento, riavvio, limite di potenza attiva, potenza reattiva o fattore di potenza, limite di immissione in rete. Leggi valori attuali rilegge i registri dall'inverter. Ogni comando passa da una pagina di conferma con valore attuale e nuovo valore; dopo l'invio il registro viene riletto e il comando finisce nello storico del dispositivo. Il CCI ha sempre la precedenza; molti inverter salvano i limiti in memoria permanente, quindi non vanno cambiati di continuo. Le mappe dei comandi vengono da progetti open source o dalla documentazione del costruttore: verifica l'effetto sul primo inverter di ogni modello. Servono un dispositivo che il gateway raggiunge in Modbus TCP (porta in monitoraggio, slave o convertitore in rete) e il token dell'API del gateway.

Gli allarmi sono calcolati di continuo dallo stato attuale dell'impianto (non serve chiuderli: spariscono quando la causa è risolta). Il numero di allarmi attivi compare nel menu; la pagina Allarmi li elenca tutti, la scheda Allarmi dell'impianto solo i suoi.
| Allarme | Livello | Quando scatta |
|---|---|---|
| Impianto non comunica | Allarme | Nessun dispositivo ha inviato dati di recente. |
| Device non comunica / Nessun dato ricevuto | Allarme o avviso | Un dispositivo non invia dati da oltre 15 minuti (35 per i contatori DLMS) o non li ha mai inviati. |
| Inverter fermo | Allarme | Potenza sotto l'1% dei kWp con irraggiamento sopra 150 W/m² (300 W/m² con l'irraggiamento stimato da satellite). |
| Rendimento basso | Avviso | Resa di un inverter più del 15% sotto la mediana degli inverter di oggi. |
| PR basso | Avviso | PR di oggi sotto il 70% (con almeno 1 kWh/m² di irraggiamento). |
| Disponibilità bassa | Avviso | Disponibilità di oggi sotto il 90%. |
| Allarmi del dispositivo | Allarme o avviso | Variabili segnate come allarme (es. protezioni del BMS) diverse da zero. |

Per gli impianti con contatori DLMS/IEC lo staff ha la scheda Contatore: letture manuali di registri, curva di carico (profilo, fino a 62 giorni), eventi, ora del contatore e matricola. Le letture si scaricano nei formati CSV e nei file grezzi compatibili con OpenLP. Durante una lettura la porta seriale del contatore resta occupata.

L'app SM Monitor per smartphone si collega con nome utente e password del portale e mostra gli stessi impianti: indicatori, grafici giorno/mese/anno, flussi di energia, inverter, allarmi, dispositivi e pulsanti. Ogni telefono riceve un proprio accesso; l'amministratore può revocarlo dalla scheda dell'utente. Dopo 10 tentativi di accesso errati in 15 minuti l'accesso è sospeso per qualche minuto.
Programmi esterni possono leggere un contatore fiscale (ultimo quarto, registri, profilo, eventi, valori istantanei, ora) attraverso /api/meters/<matricola>/… con il token del contatore, visibile nella pagina del dispositivo. Il token apre solo quel contatore; l'amministratore può rigenerarlo.
L'area di amministrazione (/admin/) è riservata ad amministratori e operatori. Il menu contiene Impianti, Gateway in attesa, Inviti (solo amministratore), Utenti e Gruppi.



PORTAL_PUBLIC_URL), anche se l'amministratore li genera da una rete interna.La pagina di un impianto è divisa in schede: Dati impianto (con mappa), Gateway (abbinamento, modalità, credenziali MQTT per l'amministratore), Dispositivi, Pulsanti (relè), Dati (letture grezze) e Utenti. Il collegamento Apri dashboard porta alla vista del cliente. Aggiungi impianto apre la stessa procedura guidata dell'installatore.

Elenca i gateway che si sono presentati al server e non sono ancora abbinati, con seriale, hostname e ultimo contatto. Da qui l'amministratore vede se un gateway installato è online prima dell'abbinamento.
Per gateway non abbinati resta il metodo manuale: scaricare il bundle del gateway dalla scheda impianto e caricarlo nel pannello, e copiare il token dell'API contatori. Per le batterie Seplos l'amministratore legge e scrive i parametri del BMS dalla pagina Parametri BMS del dispositivo, con anteprima e conferma.
I gateway abbinati si aggiornano dal server a cui sono collegati, senza andare sul posto.
2026.12.1) e note. La release si crea dal codice del server e viene firmata con la chiave del server; il gateway accetta solo pacchetti firmati da quella chiave (fissata al primo aggiornamento).Durante l'aggiornamento il gateway sostituisce pannello, agente, script, servizi e API contatori, e riavvia solo i servizi cambiati (pochi secondi di pausa del monitoraggio; il proxy del CCI solo se è cambiato). VPN, porte, relè e configurazione non vengono toccati. Se un servizio non riparte rimette la versione di prima e segnala l'errore: nella scheda Gateway compaiono versione installata, esito e, se non riuscito, il registro. Una release non riuscita non viene riprovata finché non la rilanci. Se cambiano le librerie Python dell'API contatori il gateway le scarica da internet. I gateway installati prima di questa funzione vanno aggiornati una volta a mano (install.sh).
| Problema | Cosa controllare |
|---|---|
| Il QR dice "Invito non valido" | L'invito è già stato usato, è scaduto o è stato revocato. Chiedi un nuovo invito. |
| "Esiste già un account con questa email" | Entra con il tuo account e riapri il link dell'invito. |
| "Il gateway non si è ancora presentato al server" | Gateway acceso da almeno 5 minuti, cavo Ethernet verso internet, VPN attiva (pannello, scheda VPN). Controlla di aver scritto il seriale giusto. |
| Codice di abbinamento errato | Il codice vale 24 ore: rigeneralo nel pannello (scheda Monitoraggio) e reinseriscilo. |
| Il menu "Porta del gateway" è vuoto | Il gateway manda le porte dopo l'abbinamento e ogni 10 minuti. Usa Personalizza… oppure attendi qualche minuto. |
| Dispositivo "Non comunica" | Slave ID, baudrate e formato uguali al dispositivo; cablaggio A+/B−; porta in modalità Monitoraggio; preset corretto. Nel pannello del gateway controlla il log di Telegraf. |
| Brevi vuoti nei grafici | Normali durante le sessioni del CCI (priorità al CCI). |
| Dati recuperati in ritardo | Dopo un'interruzione di rete il gateway invia i dati in coda: grafici ed energia si completano da soli. |
| Il contatore non viene letto | Porta in modalità Contatore, modello e costante K corretti, matricola letta (pagina del dispositivo). |
| PR non disponibile | Servono i kWp dell'impianto e un solarimetro, oppure l'irraggiamento online (passo Dati tecnici). |
| Password del portale dimenticata | Chiedi all'amministratore di reimpostarla. |
| Password del pannello dimenticata | Ripristino via SSH o reset di fabbrica (manuale del gateway, sez. 12–13). |
| Termine | Significato |
|---|---|
| CCI | Controllore Centrale d'Impianto (delibera ARERA 385/2025): ha sempre priorità sul bus degli inverter. |
| DLMS / IEC 62056-21 | Protocolli dei contatori fiscali. |
| kWp | Potenza di picco dei moduli fotovoltaici. |
| Resa specifica | Energia prodotta per kWp installato (kWh/kWp). |
| PR | Performance ratio: rapporto tra energia prodotta e energia teorica dall'irraggiamento. |
| POD | Codice del punto di prelievo, sulla bolletta. |
| Preset | Mappa dei registri Modbus di un modello di dispositivo. |
| Slave ID | Indirizzo Modbus di un dispositivo sul bus. |
| Costante K | Moltiplicatore delle letture del contatore (TA × TV). |
Il manuale completo del gateway (specifiche, pinout, rete, VPN, inoltro porte, sistema) è qui.
Energy Monitoring collects data from solar plants (inverters, batteries, fiscal meters, irradiance sensors) and shows it in a web portal and in the SM Monitor app. It has three parts:
The third part is the SM Monitor smartphone app, which uses the same credentials as the portal.
| Role | How you get it | What it can do |
|---|---|---|
| Administrator | Manufacturer account | Everything: plants, devices, users, invites, credentials, BMS parameters, validation of configurations. |
| Operator | Created by the administrator ("Operatori" group) | Works in the administration area on assigned plants; cannot delete plants or see credentials. Sends commands to the inverters of assigned plants. |
| Installer | Signs up alone with the installer invite (QR in the gateway box) | Adds plants with the setup wizard, pairs the gateway, adds devices, invites customers, sends inverter commands. Sees only their own plants. |
| Customer | Signs up with the customer invite created by the installer ("Clienti" group) | Views their plants on the portal and in the app; uses the enabled buttons/relays. No inverter commands. |
The whole path, from the gateway in its box to the plant visible to the customer. Each step points to the chapter with the details.

The gateway has two Gigabit Ethernet ports. Out of the factory it works in router mode: one port goes to the internet (DHCP), the other creates the plant network 192.168.10.1/24 with DHCP for Modbus TCP devices. Alternatively, bridge mode joins both ports to the customer network. The gateway must reach the internet: it talks to the server over IKEv2 VPN and encrypted MQTT (TLS), both outgoing, with no ports to open on the customer router.
| Label | Type | Device | Terminals | Pair |
|---|---|---|---|---|
| RS485-1 | RS485 | /dev/ttyS2 | A+ / B− / GND | with RS485-3 |
| RS485-2 | RS485 | /dev/ttyS1 | A+ / B− / GND | with RS485-4 |
| RS485-3 | RS485 | /dev/ttyS3 | A+ / B− / GND | with RS485-1 |
| RS485-4 | RS485 | /dev/ttyS4 | A+ / B− / GND | with RS485-2 |
| RS232 | RS232 | /dev/ttyS0 | TX / RX / GND | — |
ttyS2 and RS485-2 is ttyS1. The portal and the panel always show the label name (RS485-1…4): use that.Two 3.3 V outputs (internal connector CON10, pin 12 = GPIO 198 and pin 9 = GPIO 199; GND on pins 17/18) drive an external opto-isolated relay module with its own power supply. Relays are switched on, off or pulsed from the portal (buttons on the plant dashboard). Details in the gateway manual, section 3.4.
From a PC on the same network as the gateway open http://<gateway IP> (router mode: http://192.168.10.1 from the LAN port). Factory credentials admin / admin: change them at the first login (Account tab). After 5 wrong attempts the login is locked for 5 minutes. The panel is in Italian; the tab names below are those shown on screen.

| Tab | What it is for |
|---|---|
| Identità | Hostname, identifiers and SSH keys of the device (regenerate them if the image was cloned). |
| Rete | Router or bridge mode, DHCP or static IP of the two Ethernet ports. |
| RS485 | Mode of every port, CCI priority, baud rate and format (ch. 5). |
| RS232 | Raw TCP port or left free for a meter. |
| Monitoraggio | Serial number and pairing code, link status with the portal, Telegraf and meter API services, logs. |
| VPN | IKEv2 connection to the server (normally configured at the factory). |
| Inoltro porte | Makes the web page of a local device (e.g. inverter, datalogger) reachable from the VPN for remote support. |
| Account / Sistema | Panel password; update, reboot, factory reset. |
The gateway announces itself to the server a few minutes after power-on (if it has internet and VPN). The tab shows the serial number (the same as on the label) and the pairing code: 8 characters, valid for 24 hours, regenerated with one click. The code is needed in the portal wizard (Gateway step) and proves that whoever pairs really has the gateway in front of them.

After pairing the tab shows the plant, the last contact and the last configuration update. MQTT credentials, meter API token and Telegraf configuration arrive encrypted with a key that exists only on that gateway, and are downloaded again by themselves after every device change on the portal (within 5 minutes, or at once with Sincronizza ora).

The four RS485 ports form two pairs: 1↔3 and 2↔4. Every port has a mode, chosen in the RS485 tab of the panel.
| Mode | When to use it |
|---|---|
| Monitoraggio (monitor) | The normal case: inverters and Modbus devices read by our monitoring. The gateway acts as a proxy: monitoring reads from 127.0.0.1:150N, the CCI connects over Modbus TCP to port 500+N (N = ttyS number). |
| Bridge (ports 1 and 2 only) | An external datalogger on port 1/2 talks directly to the inverters on port 3/4. Datalogger and our monitoring never share the same pair. |
| Contatore (meter) | Port left free for the server to read DLMS/IEC fiscal meters. |
| BMS Seplos | Port dedicated to batteries with a Seplos V3 BMS (one per gateway, 19200 8N1). No other devices on that bus and the CCI is disabled. |
| Slave / Raw TCP / Off | Modbus TCP server on the serial port, transparent passthrough, port off. |

The CCI (central plant controller, ARERA resolution 385/2025) always has priority over monitoring. With the Priorità CCI box ticked on the pair it is connected to:
Short gaps may therefore appear in the charts during CCI sessions: this is expected.
| Port | CCI (Modbus TCP) | Monitoring (internal) |
|---|---|---|
| RS485-1 (ttyS2) | 502 (monitor) · 503 (bridge) | 127.0.0.1:1502 |
| RS485-2 (ttyS1) | 501 (monitor) · 504 (bridge) | 127.0.0.1:1501 |
| RS485-3 (ttyS3) | 503 | 127.0.0.1:1503 |
| RS485-4 (ttyS4) | 504 | 127.0.0.1:1504 |
You can only sign up to the portal with an invite: a personal link, usually printed as a QR code. There are two kinds.
| Invite | Created by | What it gives |
|---|---|---|
| Installer | The manufacturer (label in the gateway box) | An installer account, with the gateway from the box ready to pair. |
| Customer | The installer, from the setup wizard | A customer account that sees the invite's plants. Valid for 30 days. |


Log in at /login/ with username and password. At the top right you choose the language (Italian, English, German, French, Spanish) and the light or dark theme; the choice is remembered. If you forget your password, ask the portal administrator.
The wizard opens by itself after signing up with an installer invite, or from Account → Plants → Add plant. It has seven steps; the bar at the top shows the completed ones and lets you go back. Every step is saved with Save and continue.

Plant name (required), address, town, province and POD (Italian supply point code, on the electricity bill, e.g. IT001E12345678). On save the plant is created as a draft and you become one of its users.
Click on the map (or drag the marker) where the plant is: latitude and longitude are filled in automatically. The position is used for the portfolio map and the weather.

Peak power (kWp, sum of the modules) and commissioning date: used for specific yield (kWh/kWp) and performance ratio. The Energy flows option shows on the dashboard the diagram with PV, grid, battery and load.
Irradiance: with an irradiance sensor keep Plant irradiance sensor. If the plant has no sensor choose Online (satellite estimate): every quarter of an hour the portal takes the satellite-estimated irradiance at the plant's position (Open-Meteo) and uses it for the chart, PR and alarms. Set the module mounting to get it on the module plane:

The Status box refreshes by itself every 5 seconds: pairing, last configuration downloaded by the gateway, port list received and last data. If the gateway is not ready yet you can press Skip for now and come back later.

Possible messages: "This gateway has not contacted the server yet" (check power, internet and VPN, try again in a few minutes); wrong or expired code (regenerate the code in the panel). To replace a faulty gateway simply pair the new one here: it receives the configuration by itself.
See chapter 8.
See chapter 9.
Summarises the plant data and checks the main points: position on the map, gateway paired, at least one device, first data received. You can finish with open points (orange circle) and come back to the setup later. Finish clears the "being set up" state and opens the plant dashboard; for a plant already set up the button is Go to the dashboard.

The Devices step lists the plant's devices (model, connection, last data) and lets you add new ones.

| Field | What to enter |
|---|---|
| Name | A recognisable name, e.g. "Inverter 1 – south roof". |
| Preset | The device model (inverters of many brands, Seplos batteries). It creates the register blocks and variables by itself, including power and the energy counter. Required. |
| Slave ID | Modbus address of the device (1–247), set on the device itself. |
| kWp | Power of the modules connected to that inverter: used for yield and inverter comparison. |
| Gateway port | Pick the port from the menu (e.g. "RS485-3 (monitor)"). The menu shows the ports reported by the gateway and which devices already use them. |
If the gateway has not sent its port list yet (it does after pairing), choose Customise… and fill in the connection by hand: serial (port, baud, bits, parity, stop) or Modbus TCP (IP and port of the device on the gateway's local network).
/dev/ttyS3), the gateway still reads it through the proxy with CCI priority: nothing else to do.Choose Utility meter (DLMS/IEC) as the type, then the model (Itron/Actaris SL7000, Landis+Gyr ZMD/ZMQ, Iskra, EMH, CEWE, Elster, DPEE or generic DLMS / IEC 62056-21), the K constant (CT × VT ratio; 1 if the meter already reads primary values) and the port (in Contatore mode on the gateway, or the RS232). On save the gateway reads the meter's serial number and writes it into the portal. The meter is read once per closed quarter-hour; missing quarters of the last 85 days are recovered automatically from the load profile.
Seplos V3 BMSs go on a dedicated RS485 port (BMS Seplos mode on the gateway), with no other devices on the same bus. One device per pack (slave ID = pack DIP address) or the "parallel system" preset for the master's aggregated data.
At the bottom of the page choose where the plant power and energy shown in portfolio and dashboard come from: sum of inverters (default), a Modbus meter or a DLMS meter of the plant.
In the Customers step type the customer's name (or a note) and press Create invite. A QR code and a link appear: the customer scans the QR code from your phone or from the sheet printed with Print label, creates their account and sees the plant right away, also in the app.

From the Account menu item (or by clicking your username):

The home page summarises all visible plants: number and installed kWp, current power, today's energy, plants with issues. The table shows for each plant status, power, energy, yield, PR, availability, devices communicating and last data; the map places them with the status colour. The page refreshes by itself every 2 minutes.


| KPI | Meaning |
|---|---|
| Current power | From the chosen source (sum of inverters or meter), with the percentage of peak power. |
| Energy today | Energy produced since midnight and specific yield (kWh/kWp). |
| Irradiance | From the plant's irradiance sensor or estimated by satellite (latest available quarter-hour), in W/m². |
| PR today | Performance ratio: energy ÷ (kWp × cumulated irradiation). Needs an irradiance sensor or online irradiance. |
| Availability | Readings received today compared to the expected ones, averaged over enabled devices. |
Power chart of all inverters and daily comparison: energy, yield and deviation of the yield from the inverters' median. An inverter yielding much less than the others stands out (red bar).

Clicking a device: KPIs (power, energy per day/week/month/year, availability), daily chart, current values, energy from the device counter and, for meters, the token for the readings API. In the variables menu above the chart tick all those to overlay (e.g. power, MPPT voltages and currents, temperature): each unit gets its own axis; the page opens with the power only.
Inverter commands (administrator, operators and installers, on assigned plants; never customers): for inverters whose preset provides them, on/off, restart, active power limit, reactive power or power factor, grid feed-in limit. Read current values reads the registers back from the inverter. Every command goes through a confirmation page with the current and new value; after sending, the register is read back and the command is logged in the device history. The CCI always has priority; many inverters save limits in permanent memory, so do not change them continuously. Command maps come from open-source projects or the manufacturer's documentation: check the effect on the first inverter of each model. The gateway must reach the device over Modbus TCP (monitored port, slave port or network converter) and the gateway API token is needed.

Alarms are computed continuously from the plant's current state (no need to acknowledge them: they disappear when the cause is gone). The number of active alarms appears in the menu; the Alarms page lists them all, the plant's Alarms tab only that plant's.
| Alarm | Level | When it fires |
|---|---|---|
| Plant not communicating | Alarm | No device has sent data recently. |
| Device not communicating / No data received | Alarm or warning | A device has not sent data for over 15 minutes (35 for DLMS meters) or never did. |
| Inverter stopped | Alarm | Power below 1% of kWp with irradiance above 150 W/m² (300 W/m² with satellite-estimated irradiance). |
| Low performance | Warning | An inverter's yield more than 15% below today's inverter median. |
| Low PR | Warning | Today's PR below 70% (with at least 1 kWh/m² of irradiation). |
| Low availability | Warning | Today's availability below 90%. |
| Device alarms | Alarm or warning | Variables marked as alarm (e.g. BMS protections) other than zero. |

For plants with DLMS/IEC meters, staff have the Meter tab: manual reads of registers, load profile (up to 62 days), events, meter clock and serial number. Reads are downloaded as CSV and as raw files compatible with OpenLP. During a read the meter's serial port stays busy.

The SM Monitor smartphone app logs in with the portal username and password and shows the same plants: KPIs, day/month/year charts, energy flows, inverters, alarms, devices and buttons. Every phone gets its own access; the administrator can revoke it from the user's page. After 10 wrong login attempts in 15 minutes login is suspended for a few minutes.
External software can read a fiscal meter (last quarter, registers, profile, events, instantaneous values, clock) through /api/meters/<serial>/… with the meter token, shown on the device page. The token opens only that meter; the administrator can regenerate it.
The administration area (/admin/) is for administrators and operators. The menu contains Plants, Pending gateways, Invites (administrator only), Users and Groups.



PORTAL_PUBLIC_URL), even when the administrator creates them from an internal network.A plant page is split into tabs: Plant data (with map), Gateway (pairing, mode, MQTT credentials for the administrator), Devices, Buttons (relays), Data (raw readings) and Users. The Open dashboard link goes to the customer view. Add plant opens the same setup wizard used by installers.

Lists the gateways that have contacted the server and are not paired yet, with serial number, hostname and last contact. The administrator can see here whether an installed gateway is online before pairing.
For unpaired gateways the manual method remains: download the gateway bundle from the plant page and upload it in the panel, and copy the meter API token. For Seplos batteries the administrator reads and writes the BMS parameters from the device's BMS parameters page, with preview and confirmation.
Paired gateways update from the server they are connected to, without a site visit.
2026.12.1) and notes. The release is built from the server's code and signed with the server's key; the gateway accepts only packages signed with that key (pinned at the first update).During the update the gateway replaces panel, agent, scripts, services and meter API, and restarts only the services that changed (a few seconds of monitoring pause; the CCI proxy only if it changed). VPN, ports, relays and configuration are not touched. If a service does not start it puts the previous version back and reports the error: the Gateway tab shows the installed version, the result and, if it failed, the log. A failed release is not retried until you start it again. If the meter API's Python libraries change the gateway downloads them from the internet. Gateways installed before this feature need one manual update (install.sh).
| Problem | What to check |
|---|---|
| The QR code says "Invalid invite" | The invite was already used, expired or was revoked. Ask for a new invite. |
| "An account with this email already exists" | Log in with your account and open the invite link again. |
| "This gateway has not contacted the server yet" | Gateway on for at least 5 minutes, Ethernet cable to the internet, VPN up (panel, VPN tab). Check the serial number you typed. |
| Wrong pairing code | The code is valid for 24 hours: regenerate it in the panel (Monitoraggio tab) and type it again. |
| The "Gateway port" menu is empty | The gateway sends its ports after pairing and every 10 minutes. Use Customise… or wait a few minutes. |
| Device "Not communicating" | Slave ID, baud rate and format matching the device; A+/B− wiring; port in monitor mode; correct preset. Check the Telegraf log in the gateway panel. |
| Short gaps in the charts | Normal during CCI sessions (CCI priority). |
| Data recovered late | After a network outage the gateway sends the queued data: charts and energy complete by themselves. |
| The meter is not read | Port in Contatore mode, correct model and K constant, serial number read (device page). |
| PR not available | Plant kWp and an irradiance sensor, or online irradiance (Technical data step), are needed. |
| Forgotten portal password | Ask the administrator to reset it. |
| Forgotten panel password | Reset over SSH or factory reset (gateway manual, sections 12–13). |
| Term | Meaning |
|---|---|
| CCI | Central plant controller (ARERA resolution 385/2025): always has priority on the inverter bus. |
| DLMS / IEC 62056-21 | Fiscal meter protocols. |
| kWp | Peak power of the PV modules. |
| Specific yield | Energy produced per installed kWp (kWh/kWp). |
| PR | Performance ratio: produced energy over the theoretical energy from irradiation. |
| POD | Italian supply point code, on the electricity bill. |
| Preset | Modbus register map of a device model. |
| Slave ID | Modbus address of a device on the bus. |
| K constant | Multiplier of the meter readings (CT × VT). |
The full gateway manual (specifications, pinout, network, VPN, port forwarding, system) is here.