Voraussetzungen
- Zugang zur Shelly Weboberfläche
- Lokales Netzwerk, in dem der Shelly Plug verbunden ist
- Passendes Skript für den jeweiligen Shelly Plug
- Home Assistant Basis-Set Solar
1. Skript hochladen und konfigurieren
- Navigiere in der Shelly Weboberfläche zu „Scripts“.
- Klicke auf „Add Script“.
- Füge den Code aus der passenden
.txt
-Datei in das Skriptfeld ein:- Öffne die
.txt
-Datei mit einem Editor. - Kopiere den gesamten Inhalt und füge ihn in das Feld ein.
- Öffne die
- Speichern:
- Klicke auf „Save“.
- Starten:
- Drücke auf „Start“, um das Skript auszuführen.
2. Shelly Plug neu einstecken
- Ziehe den Shelly Plug aus der Steckdose und stecke ihn wieder ein.
- Der Shelly Plug übernimmt die neue Konfiguration aus dem Skript.
IP-Adressen:
- Produktion (schwarz): 192.168.99.10
- Verbrauch1: 192.168.99.11
- Verbrauch2: 192.168.99.12
- Verbrauch3: 192.168.99.13
- Verbrauch4: 192.168.99.14
- Verbrauch5: 192.168.99.15
Download
#Produktion
Shelly.call("Sys.SetConfig", {
config: {
"device": {
"name": "ShellyPlug-Produktion1",
"eco_mode": true
}}}
);
Shelly.call("BLE.SetConfig", {
config: {
"enable":false
}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"sta":{
"ssid":"SGSMART21",
"pass":"SGSMART21",
"ipv4mode":"static",
"ip":"192.168.99.10",
"netmask":"255.255.255.0",
"gw":"192.168.99.1",
"nameserver":"192.168.99.1",
"enable":true
}}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"ap":{
"enable":false
}}}
);
Shelly.Reboot
#Verbrauch1
Shelly.call("Sys.SetConfig", {
config: {
"device": {
"name": "ShellyPlug-Verbrauch1",
"eco_mode": true
}}}
);
Shelly.call("BLE.SetConfig", {
config: {
"enable":false
}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"sta":{
"ssid":"SGSMART21",
"pass":"SGSMART21",
"ipv4mode":"static",
"ip":"192.168.99.11",
"netmask":"255.255.255.0",
"gw":"192.168.99.1",
"nameserver":"192.168.99.1",
"enable":true
}}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"ap":{
"enable":false
}}}
);
Shelly.Reboot
#Verbrauch2
Shelly.call("Sys.SetConfig", {
config: {
"device": {
"name": "ShellyPlug-Verbrauch2",
"eco_mode": true
}}}
);
Shelly.call("BLE.SetConfig", {
config: {
"enable":false
}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"sta":{
"ssid":"SGSMART21",
"pass":"SGSMART21",
"ipv4mode":"static",
"ip":"192.168.99.12",
"netmask":"255.255.255.0",
"gw":"192.168.99.1",
"nameserver":"192.168.99.1",
"enable":true
}}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"ap":{
"enable":false
}}}
);
Shelly.Reboot
#Verbrauch3
Shelly.call("Sys.SetConfig", {
config: {
"device": {
"name": "ShellyPlug-Verbrauch3",
"eco_mode": true
}}}
);
Shelly.call("BLE.SetConfig", {
config: {
"enable":false
}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"sta":{
"ssid":"SGSMART21",
"pass":"SGSMART21",
"ipv4mode":"static",
"ip":"192.168.99.13",
"netmask":"255.255.255.0",
"gw":"192.168.99.1",
"nameserver":"192.168.99.1",
"enable":true
}}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"ap":{
"enable":false
}}}
);
Shelly.Reboot
#Verbrauch4
Shelly.call("Sys.SetConfig", {
config: {
"device": {
"name": "ShellyPlug-Verbrauch4",
"eco_mode": true
}}}
);
Shelly.call("BLE.SetConfig", {
config: {
"enable":false
}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"sta":{
"ssid":"SGSMART21",
"pass":"SGSMART21",
"ipv4mode":"static",
"ip":"192.168.99.14",
"netmask":"255.255.255.0",
"gw":"192.168.99.1",
"nameserver":"192.168.99.1",
"enable":true
}}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"ap":{
"enable":false
}}}
);
Shelly.Reboot
#Verbrauch5
Shelly.call("Sys.SetConfig", {
config: {
"device": {
"name": "ShellyPlug-Verbrauch5",
"eco_mode": true
}}}
);
Shelly.call("BLE.SetConfig", {
config: {
"enable":false
}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"sta":{
"ssid":"SGSMART21",
"pass":"SGSMART21",
"ipv4mode":"static",
"ip":"192.168.99.15",
"netmask":"255.255.255.0",
"gw":"192.168.99.1",
"nameserver":"192.168.99.1",
"enable":true
}}}
);
Shelly.call("Wifi.SetConfig", {
config: {
"ap":{
"enable":false
}}}
);
Shelly.Reboot