
First install on you PC the Node-RED, on Internet there are a lot of guide for Windows, Linux and Chromebook.
Per prima cosa installa sul tuo PC Node-RED, su Internet ci sono molte guide per Windows, Linux e Chromebook.
Now run Node-RED and click on 3 horizontal bar that there are on top on right. See image below.
Ora esegui Node-RED e clicca sulle 3 barre orizzontali in alto a destra. Vedi immagine qui sotto.

Choose:
Manage Palette
and install:
node-red-contrib-shelly
Scegli:
Manage Palette
e installa:
node-red-contrib-shelly

EXAMPLE – ESEMPIO

TIMESTAMP

The INJECT node, in the flow (Shelly) is named:
timestamp
is use for start the process manually.
Il nodo INJECT nel flusso (Shelly) è denominato:
timestamp
e viene utilizzato per avviare il processo manualmente.

SET.MSG.PAYLOAD

The CHANGE node, in the flow (Shelly) is named:
set.msg.payload
is the node that request the information regarding a Shelly object, in our case a power meter.
Il nodo CHANGE nel flusso (chiamato Shelly) è denominato:
set.msg.payload
è il nodo che richiede le informazioni relative a un oggetto Shelly, nel nostro caso un misuratore di potenza.

Below there is the expansion of the field:
to the value
that you obtained by pressing on the 3 dots present at the end of the same line of the field.
Di seguito è riportata l’espansione del campo:
to the value
ottenuto premendo sui 3 punti presenti alla fine della stessa riga del campo.

type is the command that we send to shelly object.
id is the identification to your shelly object.
channel is the channel of the communication.
NOTE:
You can get your Shelly object id by going to the Shelly app on your phone, selecting the object, and going to Settings (see below).
type è il comando che inviamo all’oggetto Shelly.
id è l’identificativo del tuo oggetto Shelly.
channel è il canale di comunicazione.
NOTA:
Puoi ottenere l’id del tuo oggetto Shelly accedendo all’app Shelly sul tuo telefono, selezionando l’oggetto e andando su Impostazioni (vedi sotto).

SHELLY CLOUD

The Shelly Cloud is the node that interact with your Shelly Cloud.
First click on the pencil, see below.
Shelly Cloud è il nodo che interagisce con il tuo Shelly Cloud.
Per prima cosa clicca sulla matita, vedi sotto.

From the new page that appear you must specify the:
Server URI
and the:
Authentication Key
Nella nuova pagina visualizzata è necessario specificare:
Server URI
e la
Authentication Key

NOTE:
The Server URI and Authentication Key can be found in the Shelly app under Settings, see image below.
NOTA:
Server e la Authentication Key si trovano nell’app Shelly in Impostazioni, come mostrato nell’immagine qui sotto.

DEBUG 1

debug1 is used to see the result.
debug1 viene utilizzato per visualizzare il risultato.

If you expand the received message by pressing on the arrow, see below, you has a lot of data in particular the consumption, see below.
Se si espande il messaggio ricevuto premendo sulla freccia, vedi sotto, si ottengono molti dati, in particolare i consumi, vedi sotto.


That’s it is all, good work. – Questo è tutto, buon lavoro.