SM Electronics

Energy Monitoring

Manuale di installazione — gateway SMEL-BPI e portale di monitoraggio
Rev. 1.0Dicembre 2026SM Electronics S.r.l.

Indice

  1. Il sistema in breve
  2. L'installazione passo per passo
  3. Gateway: montaggio e collegamenti
  4. Gateway: pannello di configurazione
  5. Gateway: porte seriali e CCI
  6. Registrazione al portale con l'invito
  7. Procedura guidata: aggiungere un impianto
  8. Configurare i dispositivi
  9. Invitare il cliente
  10. La pagina Account
  11. Il portale di monitoraggio
  12. Allarmi
  13. Contatori fiscali e scheda Contatore
  14. App SM Monitor e API
  15. Amministrazione
  16. Risoluzione problemi
  17. Sicurezza e privacy
  18. Glossario

1. Il sistema in breve

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:

Gateway SMEL-BPI

Installato in impianto, legge i dispositivi su RS485, RS232 o rete locale e invia i dati al server in modo cifrato. Se la rete cade tiene i dati in coda e li manda appena torna. Lascia sempre la precedenza al CCI.

Portale di monitoraggio

Calcola energia, resa, PR, disponibilità e allarmi; mostra portfolio, dashboard d'impianto e pagine dei dispositivi. Da qui l'installatore configura l'impianto con la procedura guidata.

La terza parte è l'app SM Monitor per smartphone, che usa le stesse credenziali del portale.

Impianto Inverter (Modbus) Batterie / BMS Contatori fiscali (DLMS/IEC) Solarimetri, sensori CCI (ARERA 385/2025) RS485 · LAN Gateway SMEL-BPI Lettura dispositivi (Telegraf) Coda locale dei dati API contatori · relè Priorità CCI · VPN Pannello web (porta 80) MQTT TLS · VPN Server Broker MQTT Calcoli ed energia Allarmi Database Portale AppSM Monitor
Fig. 1 — Flusso dei dati dall'impianto al portale

1.1 Chi fa cosa

RuoloCome si ottieneCosa può fare
AmministratoreAccount del costruttoreTutto: impianti, dispositivi, utenti, inviti, credenziali, parametri BMS, convalida delle configurazioni.
OperatoreCreato 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.
InstallatoreSi 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.
ClienteSi 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.

1.2 Cosa serve

2. L'installazione passo per passo

Il percorso completo, dal gateway nella scatola all'impianto visibile al cliente. Ogni passo rimanda al capitolo con i dettagli.

  1. Monta e collega il gateway: guida DIN, alimentazione, Ethernet verso internet, bus RS485 verso inverter e contatori (cap. 3).
  2. Imposta le porte dal pannello del gateway: modalità di ogni RS485, priorità CCI, parametri seriali (cap. 5).
  3. Inquadra il QR dell'etichetta e crea il tuo account installatore (cap. 6). Se hai già un account, entra e riapri il link.
  4. Segui la procedura guidata: anagrafica, posizione sulla mappa, dati tecnici (cap. 7).
  5. Abbina il gateway: il seriale è già compilato, inserisci il codice di 8 caratteri letto nel pannello del gateway (tab Monitoraggio).
  6. Aggiungi i dispositivi scegliendo il modello e la porta del gateway (cap. 8).
  7. Invita il cliente: gli fai inquadrare il QR, crea il suo account e vede subito l'impianto (cap. 9).
  8. Controlla il riepilogo e premi Completa: dopo qualche minuto arrivano i primi dati.
Si può interrompere in ogni momentoUn impianto non completato resta "in configurazione" e si riprende dalla pagina Account → Impianti → Continua la configurazione, dal passo in cui era rimasto.

3. Gateway: montaggio e collegamenti

Gateway SMEL-BPI
Fig. 2 — Gateway SMEL-BPI con morsettiere RS485

3.1 Montaggio e alimentazione

Non superare 48 V DCNon collegare il gateway direttamente a 230 V AC: usare un alimentatore DC da quadro.

3.2 Rete

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.

3.3 Porte seriali

EtichettaTipoDeviceMorsettiCoppia
RS485-1RS485/dev/ttyS2A+ / B− / GNDcon RS485-3
RS485-2RS485/dev/ttyS1A+ / B− / GNDcon RS485-4
RS485-3RS485/dev/ttyS3A+ / B− / GNDcon RS485-1
RS485-4RS485/dev/ttyS4A+ / B− / GNDcon RS485-2
RS232RS232/dev/ttyS0TX / RX / GND—
Attenzione all'ordineRS485-1 corrisponde a ttyS2 e RS485-2 a ttyS1. Il portale e il pannello mostrano sempre il nome dell'etichetta (RS485-1…4): usa quello.

Buone regole di cablaggio RS485

3.4 Relè

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.

4. Gateway: pannello di configurazione

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.

Login pannello
Fig. 3 — Accesso al pannello del gateway
SchedaA cosa serve
IdentitàHostname, identificativi e chiavi SSH del dispositivo (da rigenerare se l'immagine è stata clonata).
ReteModalità router o bridge, DHCP o IP statico delle due Ethernet.
RS485Modalità di ogni porta, priorità CCI, baudrate e formato (cap. 5).
RS232Porta raw TCP o libera per un contatore.
MonitoraggioSeriale e codice di abbinamento, stato del collegamento al portale, servizi Telegraf e API contatori, log.
VPNConnessione IKEv2 verso il server (normalmente già configurata in fabbrica).
Inoltro porteRende raggiungibile dalla VPN la pagina web di un dispositivo della rete locale (es. inverter, datalogger) per l'assistenza remota.
Account / SistemaPassword del pannello; aggiornamento, riavvio, ripristino di fabbrica.

4.1 Scheda Monitoraggio: seriale e codice di abbinamento

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.

Gateway in attesa di abbinamento
Fig. 4 — Gateway in attesa di abbinamento: seriale e codice

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).

Gateway abbinato
Fig. 5 — Gateway abbinato

5. Gateway: porte seriali e CCI

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
MonitoraggioIl 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.
ContatorePorta lasciata libera per la lettura DLMS/IEC dei contatori fiscali da parte del server.
BMS SeplosPorta 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 / OffServer Modbus TCP sulla seriale, passthrough trasparente, porta spenta.
Porte 3 e 4 in monitoraggio
Fig. 6 — Porte RS485 in modalità Monitoraggio con priorità CCI

5.1 Priorità del CCI

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.

PortaCCI (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)503127.0.0.1:1503
RS485-4 (ttyS4)504127.0.0.1:1504
Non serve ricordare questi numeriDopo l'abbinamento il gateway comunica al portale l'elenco delle sue porte e la loro modalità: nella procedura guidata scegli semplicemente "RS485-3 (monitor)" dal menu Porta del gateway e il portale compila da solo il collegamento corretto.

6. Registrazione al portale con l'invito

Al portale ci si registra solo con un invito: un link personale, di solito stampato come QR. Gli inviti sono di due tipi.

InvitoChi lo generaCosa dà
InstallatoreIl costruttore (etichetta nella scatola del gateway)Un account installatore, con il gateway della scatola già pronto da abbinare.
ClienteL'installatore, dalla procedura guidataUn account cliente che vede gli impianti dell'invito. Vale 30 giorni.
Etichetta con QR
Fig. 7 — Etichetta di registrazione nella scatola del gateway

6.1 Creare l'account

  1. Inquadra il QR con la fotocamera del telefono (o apri il link stampato sotto).
  2. Compila nome, cognome, email, nome utente e password (almeno 8 caratteri, non solo numeri). L'email non deve essere già usata da un altro account.
  3. Premi Crea l'account: sei subito dentro. L'installatore arriva nella procedura guidata, il cliente vede i suoi impianti.
Registrazione installatore
Fig. 8 — Registrazione con invito installatore
Hai già un account?Entra nel portale e riapri il link dell'invito: ti viene chiesto di attivarlo sul tuo account (per esempio un installatore che riceve un altro gateway o un cliente che ha un secondo impianto).
Un invito vale una voltaDopo l'uso il link non funziona più. Se l'account creato viene cancellato, l'invito torna valido. Un link scaduto, revocato o già usato mostra "Invito non valido": chiedi un nuovo invito a chi te l'ha dato.

6.2 Accesso, lingua e tema

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.

7. Procedura guidata: aggiungere un impianto

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.

Passo 1 Anagrafica
Fig. 9 — Passo 1: anagrafica dell'impianto

Passo 1 — Anagrafica

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.

Passo 2 — Posizione

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.

Passo 2 Posizione
Fig. 10 — Passo 2: posizione sulla mappa

Passo 3 — Dati tecnici

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:

Quanto è precisoIl dato da satellite arriva con 20 minuti – 2 ore di ritardo ed è una media della zona: sulla giornata è affidabile, su un singolo quarto d'ora con nuvole sparse può scostarsi molto dal valore reale. In dashboard è indicato come "stimato (satellite)".
Passo 3 Dati tecnici
Fig. 11 — Passo 3: dati tecnici

Passo 4 — Gateway

  1. Collega il gateway alla rete e accendilo: dopo qualche minuto si presenta al server.
  2. Il seriale è già compilato se sei arrivato dal QR; altrimenti copialo dall'etichetta o dal pannello.
  3. Scrivi il codice di abbinamento letto nel pannello del gateway (scheda Monitoraggio) e premi Abbina.

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.

Passo 4 Gateway
Fig. 12 — Passo 4: abbinamento del gateway
Perché serve il codice anche con il QRIl seriale è stampato sull'etichetta e chiunque potrebbe leggerlo. Il codice invece si vede solo dal pannello del gateway: così nessuno può abbinare a sé un gateway che non ha in mano e ricevere credenziali e configurazione dell'impianto.

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.

Passo 5 — Dispositivi

Vedi il capitolo 8.

Passo 6 — Clienti

Vedi il capitolo 9.

Passo 7 — Riepilogo

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.

Passo 7 Riepilogo
Fig. 13 — Passo 7: riepilogo e controlli

8. Configurare i dispositivi

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

Passo 5 Dispositivi
Fig. 14 — Passo 5: dispositivi, aggiunta e fonte della potenza

8.1 Inverter o batteria (Modbus)

CampoCosa inserire
NomeUn nome riconoscibile, es. "Inverter 1 – falda sud".
PresetIl 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 IDIndirizzo Modbus del dispositivo (1–247), impostato sul dispositivo stesso.
kWpPotenza dei moduli collegati a quell'inverter: serve per la resa e il confronto tra inverter.
Porta del gatewayScegli 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).

Dispositivi su una porta in monitoraggioAnche se scrivi a mano una porta seriale in monitoraggio (es. /dev/ttyS3), il gateway la legge comunque attraverso il proxy con priorità CCI: non serve altro.

8.2 Contatore fiscale (DLMS/IEC)

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.

8.3 Batterie Seplos

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.

8.4 Fonte della potenza

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.

8.5 Regole

9. Invitare il cliente

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.

Passo 6 Clienti
Fig. 15 — Passo 6: invito del cliente con QR

10. La pagina Account

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

Account impianti
Fig. 16 — Account, scheda Impianti

11. Il portale di monitoraggio

11.1 Portfolio

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.

Portfolio
Fig. 17 — Portfolio degli impianti

11.2 Dashboard dell'impianto

Dashboard impianto
Fig. 18 — Dashboard dell'impianto: indicatori, flussi di energia, grafico e dispositivi
IndicatoreSignificato
Potenza attualeDalla fonte scelta (somma inverter o contatore), con la percentuale sulla potenza di picco.
Energia oggiEnergia prodotta da mezzanotte e resa specifica (kWh/kWp).
IrraggiamentoDal solarimetro dell'impianto oppure stimato da satellite (ultimo quarto d'ora disponibile), in W/m².
PR oggiPerformance ratio: energia ÷ (kWp × irraggiamento cumulato). Serve un solarimetro o l'irraggiamento online.
DisponibilitàLetture ricevute oggi rispetto a quelle attese, media dei dispositivi attivi.

11.3 Scheda Inverter

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).

Scheda Inverter
Fig. 19 — Confronto tra inverter

11.4 Pagina del dispositivo

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.

Pagina dispositivo
Fig. 20 — Pagina del dispositivo

12. Allarmi

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.

AllarmeLivelloQuando scatta
Impianto non comunicaAllarmeNessun dispositivo ha inviato dati di recente.
Device non comunica / Nessun dato ricevutoAllarme o avvisoUn dispositivo non invia dati da oltre 15 minuti (35 per i contatori DLMS) o non li ha mai inviati.
Inverter fermoAllarmePotenza sotto l'1% dei kWp con irraggiamento sopra 150 W/m² (300 W/m² con l'irraggiamento stimato da satellite).
Rendimento bassoAvvisoResa di un inverter più del 15% sotto la mediana degli inverter di oggi.
PR bassoAvvisoPR di oggi sotto il 70% (con almeno 1 kWh/m² di irraggiamento).
Disponibilità bassaAvvisoDisponibilità di oggi sotto il 90%.
Allarmi del dispositivoAllarme o avvisoVariabili segnate come allarme (es. protezioni del BMS) diverse da zero.
Allarmi
Fig. 21 — Pagina Allarmi

13. Contatori fiscali e scheda Contatore

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.

Scheda Contatore
Fig. 22 — Scheda Contatore (staff)

14. App SM Monitor e API

14.1 App

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.

14.2 API delle letture dei contatori

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.

15. Amministrazione

L'area di amministrazione (/admin/) è riservata ad amministratori e operatori. Il menu contiene Impianti, Gateway in attesa, Inviti (solo amministratore), Utenti e Gruppi.

15.1 Inviti installatore e etichette

Inviti in blocco
Fig. 23 — Inviti installatore in blocco da una lista di seriali
Foglio etichette
Fig. 24 — Foglio delle etichette pronto da stampare
Elenco inviti
Fig. 25 — Elenco inviti con stato (valido, usato, scaduto, revocato)
Indirizzo nei QRI QR puntano all'indirizzo pubblico del portale impostato sul server (PORTAL_PUBLIC_URL), anche se l'amministratore li genera da una rete interna.

15.2 Scheda impianto

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.

Scheda impianto admin
Fig. 26 — Scheda impianto nell'amministrazione

15.3 Gateway in attesa

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.

15.4 Utenti, ruoli e convalida

15.5 Gateway senza abbinamento e parametri BMS

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.

15.6 Aggiornamenti del software dei gateway (OTA)

I gateway abbinati si aggiornano dal server a cui sono collegati, senza andare sul posto.

  1. Creare la release (amministratore): Release del gateway → Aggiungi, con versione (es. 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).
  2. Provarla su un gateway: nell'elenco impianti seleziona l'impianto, azione Aggiorna il software dei gateway…, scegli la release. Il gateway si aggiorna al prossimo contatto (entro 5 minuti).
  3. Pubblicarla: spunta Pubblicata. La ricevono da sole, nella fascia notturna (01:00–05:00), i gateway con Aggiornamenti: Automatici (scheda Gateway dell'impianto); quelli A mano solo quando li aggiorni tu.

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).

16. Risoluzione problemi

ProblemaCosa 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 erratoIl codice vale 24 ore: rigeneralo nel pannello (scheda Monitoraggio) e reinseriscilo.
Il menu "Porta del gateway" è vuotoIl 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 graficiNormali durante le sessioni del CCI (priorità al CCI).
Dati recuperati in ritardoDopo un'interruzione di rete il gateway invia i dati in coda: grafici ed energia si completano da soli.
Il contatore non viene lettoPorta in modalità Contatore, modello e costante K corretti, matricola letta (pagina del dispositivo).
PR non disponibileServono i kWp dell'impianto e un solarimetro, oppure l'irraggiamento online (passo Dati tecnici).
Password del portale dimenticataChiedi all'amministratore di reimpostarla.
Password del pannello dimenticataRipristino via SSH o reset di fabbrica (manuale del gateway, sez. 12–13).

17. Sicurezza e privacy

18. Glossario

TermineSignificato
CCIControllore Centrale d'Impianto (delibera ARERA 385/2025): ha sempre priorità sul bus degli inverter.
DLMS / IEC 62056-21Protocolli dei contatori fiscali.
kWpPotenza di picco dei moduli fotovoltaici.
Resa specificaEnergia prodotta per kWp installato (kWh/kWp).
PRPerformance ratio: rapporto tra energia prodotta e energia teorica dall'irraggiamento.
PODCodice del punto di prelievo, sulla bolletta.
PresetMappa dei registri Modbus di un modello di dispositivo.
Slave IDIndirizzo Modbus di un dispositivo sul bus.
Costante KMoltiplicatore delle letture del contatore (TA × TV).

Il manuale completo del gateway (specifiche, pinout, rete, VPN, inoltro porte, sistema) è qui.

SM Electronics

Energy Monitoring

Installation manual — SMEL-BPI gateway and monitoring portal
Rev. 1.0December 2026SM Electronics S.r.l.

Contents

  1. The system at a glance
  2. Installation step by step
  3. Gateway: mounting and wiring
  4. Gateway: configuration panel
  5. Gateway: serial ports and CCI
  6. Signing up with an invite
  7. Setup wizard: adding a plant
  8. Setting up devices
  9. Inviting the customer
  10. The Account page
  11. The monitoring portal
  12. Alarms
  13. Fiscal meters and Meter tab
  14. SM Monitor app and APIs
  15. Administration
  16. Troubleshooting
  17. Security and privacy
  18. Glossary

1. The system at a glance

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:

SMEL-BPI gateway

Installed at the plant, it reads the devices over RS485, RS232 or the local network and sends the data to the server encrypted. If the network drops it queues the data and sends it as soon as the link is back. It always gives way to the CCI.

Monitoring portal

Computes energy, specific yield, PR, availability and alarms; shows the portfolio, the plant dashboard and the device pages. Installers set up plants here with the setup wizard.

The third part is the SM Monitor smartphone app, which uses the same credentials as the portal.

Plant Inverters (Modbus) Batteries / BMS Fiscal meters (DLMS/IEC) Irradiance sensors CCI (ARERA 385/2025) RS485 · LAN SMEL-BPI gateway Device reading (Telegraf) Local data queue Meter API · relays CCI priority · VPN Web panel (port 80) MQTT TLS · VPN Server MQTT broker Energy computation Alarms Database Portal AppSM Monitor
Fig. 1 — Data flow from the plant to the portal

1.1 Who does what

RoleHow you get itWhat it can do
AdministratorManufacturer accountEverything: plants, devices, users, invites, credentials, BMS parameters, validation of configurations.
OperatorCreated 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.
InstallerSigns 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.
CustomerSigns 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.

1.2 What you need

2. Installation step by step

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.

  1. Mount and wire the gateway: DIN rail, power, Ethernet to the internet, RS485 bus to inverters and meters (ch. 3).
  2. Set the ports in the gateway panel: mode of every RS485 port, CCI priority, serial settings (ch. 5).
  3. Scan the QR code on the label and create your installer account (ch. 6). If you already have an account, log in and open the link again.
  4. Follow the setup wizard: details, position on the map, technical data (ch. 7).
  5. Pair the gateway: the serial number is already filled in; type the 8-character code shown in the gateway panel (Monitoraggio tab).
  6. Add the devices by choosing the model and the gateway port (ch. 8).
  7. Invite the customer: they scan the QR code, create their account and see the plant right away (ch. 9).
  8. Check the summary and press Finish: the first data arrive within a few minutes.
You can stop at any timeAn unfinished plant stays "being set up" and can be resumed from Account → Plants → Continue setup, at the step where you left it.

3. Gateway: mounting and wiring

SMEL-BPI gateway
Fig. 2 — SMEL-BPI gateway with RS485 terminal blocks

3.1 Mounting and power

Do not exceed 48 V DCNever connect the gateway directly to 230 V AC: use a DIN-rail DC power supply.

3.2 Network

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.

3.3 Serial ports

LabelTypeDeviceTerminalsPair
RS485-1RS485/dev/ttyS2A+ / B− / GNDwith RS485-3
RS485-2RS485/dev/ttyS1A+ / B− / GNDwith RS485-4
RS485-3RS485/dev/ttyS3A+ / B− / GNDwith RS485-1
RS485-4RS485/dev/ttyS4A+ / B− / GNDwith RS485-2
RS232RS232/dev/ttyS0TX / RX / GND—
Mind the orderRS485-1 is ttyS2 and RS485-2 is ttyS1. The portal and the panel always show the label name (RS485-1…4): use that.

RS485 wiring good practice

3.4 Relays

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.

4. Gateway: configuration panel

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.

Panel login
Fig. 3 — Gateway panel login
TabWhat it is for
IdentitàHostname, identifiers and SSH keys of the device (regenerate them if the image was cloned).
ReteRouter or bridge mode, DHCP or static IP of the two Ethernet ports.
RS485Mode of every port, CCI priority, baud rate and format (ch. 5).
RS232Raw TCP port or left free for a meter.
MonitoraggioSerial number and pairing code, link status with the portal, Telegraf and meter API services, logs.
VPNIKEv2 connection to the server (normally configured at the factory).
Inoltro porteMakes the web page of a local device (e.g. inverter, datalogger) reachable from the VPN for remote support.
Account / SistemaPanel password; update, reboot, factory reset.

4.1 Monitoraggio tab: serial number and pairing code

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.

Gateway waiting for pairing
Fig. 4 — Gateway waiting for pairing: serial number and code

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).

Paired gateway
Fig. 5 — Paired gateway

5. Gateway: serial ports and CCI

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.

ModeWhen 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 SeplosPort 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 / OffModbus TCP server on the serial port, transparent passthrough, port off.
Ports 3 and 4 in monitor mode
Fig. 6 — RS485 ports in monitor mode with CCI priority

5.1 CCI priority

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.

PortCCI (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)503127.0.0.1:1503
RS485-4 (ttyS4)504127.0.0.1:1504
No need to remember these numbersAfter pairing the gateway sends the portal the list of its ports and their mode: in the setup wizard you simply pick "RS485-3 (monitor)" from the Gateway port menu and the portal fills in the right connection.

6. Signing up with an invite

You can only sign up to the portal with an invite: a personal link, usually printed as a QR code. There are two kinds.

InviteCreated byWhat it gives
InstallerThe manufacturer (label in the gateway box)An installer account, with the gateway from the box ready to pair.
CustomerThe installer, from the setup wizardA customer account that sees the invite's plants. Valid for 30 days.
Label with QR code
Fig. 7 — Sign-up label in the gateway box (Italian text with an English line)

6.1 Creating the account

  1. Scan the QR code with the phone camera (or open the link printed below it).
  2. Fill in first name, last name, email, username and password (at least 8 characters, not only digits). The email must not be used by another account.
  3. Press Create account: you are logged in at once. Installers land in the setup wizard, customers see their plants.
Installer sign-up
Fig. 8 — Sign-up with an installer invite
Already have an account?Log in to the portal and open the invite link again: you are asked to activate it on your account (for example an installer receiving another gateway, or a customer with a second plant).
An invite works onceAfter use the link no longer works. If the account created with it is deleted, the invite becomes valid again. An expired, revoked or used link shows "Invalid invite": ask whoever gave it to you for a new one.

6.2 Login, language and theme

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.

7. Setup wizard: adding a plant

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.

Step 1 Details
Fig. 9 — Step 1: plant details

Step 1 — Details

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.

Step 2 — Position

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.

Step 2 Position
Fig. 10 — Step 2: position on the map

Step 3 — Technical data

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:

How accurate it isSatellite data arrive 20 minutes to 2 hours late and are an area average: reliable over the day, but a single quarter-hour with scattered clouds can differ a lot from the real value. The dashboard marks it as "estimated (satellite)".
Step 3 Technical data
Fig. 11 — Step 3: technical data

Step 4 — Gateway

  1. Connect the gateway to the network and power it on: after a few minutes it announces itself to the server.
  2. The serial number is already filled in if you came from the QR code; otherwise copy it from the label or the panel.
  3. Type the pairing code shown in the gateway panel (Monitoraggio tab) and press Pair.

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.

Step 4 Gateway
Fig. 12 — Step 4: gateway pairing
Why the code is needed even with the QR codeThe serial number is printed on the label and anyone could read it. The code is visible only in the gateway panel: this way nobody can pair a gateway they do not physically have and receive the plant's credentials and configuration.

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.

Step 5 — Devices

See chapter 8.

Step 6 — Customers

See chapter 9.

Step 7 — Summary

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.

Step 7 Summary
Fig. 13 — Step 7: summary and checks

8. Setting up devices

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

Step 5 Devices
Fig. 14 — Step 5: devices, adding one and power source

8.1 Inverter or battery (Modbus)

FieldWhat to enter
NameA recognisable name, e.g. "Inverter 1 – south roof".
PresetThe 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 IDModbus address of the device (1–247), set on the device itself.
kWpPower of the modules connected to that inverter: used for yield and inverter comparison.
Gateway portPick 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).

Devices on a monitor portEven if you type a monitor serial port by hand (e.g. /dev/ttyS3), the gateway still reads it through the proxy with CCI priority: nothing else to do.

8.2 Fiscal meter (DLMS/IEC)

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.

8.3 Seplos batteries

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.

8.4 Power source

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.

8.5 Rules

9. Inviting the customer

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.

Step 6 Customers
Fig. 15 — Step 6: customer invite with QR code

10. The Account page

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

Account plants
Fig. 16 — Account, Plants tab

11. The monitoring portal

11.1 Portfolio

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.

Portfolio
Fig. 17 — Plant portfolio

11.2 Plant dashboard

Plant dashboard
Fig. 18 — Plant dashboard: KPIs, energy flows, chart and devices
KPIMeaning
Current powerFrom the chosen source (sum of inverters or meter), with the percentage of peak power.
Energy todayEnergy produced since midnight and specific yield (kWh/kWp).
IrradianceFrom the plant's irradiance sensor or estimated by satellite (latest available quarter-hour), in W/m².
PR todayPerformance ratio: energy ÷ (kWp × cumulated irradiation). Needs an irradiance sensor or online irradiance.
AvailabilityReadings received today compared to the expected ones, averaged over enabled devices.

11.3 Inverters tab

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).

Inverters tab
Fig. 19 — Inverter comparison

11.4 Device page

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.

Device page
Fig. 20 — Device page

12. Alarms

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.

AlarmLevelWhen it fires
Plant not communicatingAlarmNo device has sent data recently.
Device not communicating / No data receivedAlarm or warningA device has not sent data for over 15 minutes (35 for DLMS meters) or never did.
Inverter stoppedAlarmPower below 1% of kWp with irradiance above 150 W/m² (300 W/m² with satellite-estimated irradiance).
Low performanceWarningAn inverter's yield more than 15% below today's inverter median.
Low PRWarningToday's PR below 70% (with at least 1 kWh/m² of irradiation).
Low availabilityWarningToday's availability below 90%.
Device alarmsAlarm or warningVariables marked as alarm (e.g. BMS protections) other than zero.
Alarms
Fig. 21 — Alarms page

13. Fiscal meters and Meter tab

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.

Meter tab
Fig. 22 — Meter tab (staff)

14. SM Monitor app and APIs

14.1 App

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.

14.2 Meter readings API

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.

15. Administration

The administration area (/admin/) is for administrators and operators. The menu contains Plants, Pending gateways, Invites (administrator only), Users and Groups.

15.1 Installer invites and labels

Bulk invites
Fig. 23 — Bulk installer invites from a list of serial numbers
Label sheet
Fig. 24 — Label sheet ready to print
Invite list
Fig. 25 — Invite list with status (valid, used, expired, revoked)
Address in the QR codesQR codes point to the public portal address set on the server (PORTAL_PUBLIC_URL), even when the administrator creates them from an internal network.

15.2 Plant page

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.

Admin plant page
Fig. 26 — Plant page in the administration area

15.3 Pending gateways

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.

15.4 Users, roles and validation

15.5 Unpaired gateways and BMS parameters

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.

15.6 Gateway software updates (OTA)

Paired gateways update from the server they are connected to, without a site visit.

  1. Create the release (administrator): Gateway releases → Add, with a version (e.g. 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).
  2. Try it on one gateway: in the plant list select the plant, action Update gateway software…, choose the release. The gateway updates at its next contact (within 5 minutes).
  3. Publish it: tick Published. Gateways with Updates: Automatic (plant Gateway tab) get it on their own in the night window (01:00–05:00); Manual ones only when you update them.

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).

16. Troubleshooting

ProblemWhat 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 codeThe code is valid for 24 hours: regenerate it in the panel (Monitoraggio tab) and type it again.
The "Gateway port" menu is emptyThe 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 chartsNormal during CCI sessions (CCI priority).
Data recovered lateAfter a network outage the gateway sends the queued data: charts and energy complete by themselves.
The meter is not readPort in Contatore mode, correct model and K constant, serial number read (device page).
PR not availablePlant kWp and an irradiance sensor, or online irradiance (Technical data step), are needed.
Forgotten portal passwordAsk the administrator to reset it.
Forgotten panel passwordReset over SSH or factory reset (gateway manual, sections 12–13).

17. Security and privacy

18. Glossary

TermMeaning
CCICentral plant controller (ARERA resolution 385/2025): always has priority on the inverter bus.
DLMS / IEC 62056-21Fiscal meter protocols.
kWpPeak power of the PV modules.
Specific yieldEnergy produced per installed kWp (kWh/kWp).
PRPerformance ratio: produced energy over the theoretical energy from irradiation.
PODItalian supply point code, on the electricity bill.
PresetModbus register map of a device model.
Slave IDModbus address of a device on the bus.
K constantMultiplier of the meter readings (CT × VT).

The full gateway manual (specifications, pinout, network, VPN, port forwarding, system) is here.