ich habe eine Steckdose Gosund SP1 mit Tasmota 8.1.0.2 geflasht und auch soweit erfolgreich an die CCU3 / CuxD angebunden.
Läßt sich von der CCU3 schalten mit den Befehlen
SWITCH|CMD_SHORT = /usr/local/addons/cuxd/curl -s http://192.168.178.155/cm?cmnd~3dPower%20Off
SWITCH|CMD_LONG = /usr/local/addons/cuxd/curl -s http://192.168.178.155/cm?cmnd~3dPower%20On
Jetzt möchte ich gerne auch den Status von der Steckdose wieder an die CCU3 (192.168.178.100) zurückgeben.
Tasmota Console:
Code: Alles auswählen
Rule1 on Power1#State=1 do WebSend [192.168.178.100:8181] /cuxd.exe?ret=dom.GetObject('EG_WZ_Schrank_Rechts_Steckdose').State(1) endon on Power1#State=0 do WebSend [192.168.178.100:8181] /cuxd.exe?ret=dom.GetObject('EG_WZ_Schrank_Rechts_Steckdose').State(0) endon off
Rule1 1
Aber nur solange ich in Homatic (unter Einstellungen – Systemsteuerung - Sicherheit – Authentifizierung) die Authentifizierung deaktiviere.
Habe in der Homatic einen Benutzer tasmota Kennwort tasmota erstellt.
Aber diese Befehle funktionieren nicht
Code: Alles auswählen
WebSend [192.168.178.100:8181,tasmota:tasmota] /cuxd.exe?ret=dom.GetObject('EG_WZ_Schrank_Rechts_Steckdose').State(1)
WebSend [192.168.178.100:8181,tasmota:tasmota] /cuxd.exe?ret=dom.GetObject('EG_WZ_Schrank_Rechts_Steckdose').State(0)
Code: Alles auswählen
WebSend [192.168.178.100:8181] /cuxd.exe?ret=dom.GetObject('EG_WZ_Schrank_Rechts_Steckdose').State(1)
WebSend [192.168.178.100:8181] /cuxd.exe?ret=dom.GetObject('EG_WZ_Schrank_Rechts_Steckdose').State(0)
https://tasmota.github.io/docs/Commands/
Send a command to Tasmota host over http. If a command starts with a / it will be used as a link.
[<host>:<port>,<user>:<password>] <command>
<host> = hostname or IP address.
<port> = port for the device if not the default 80
<user> = enter username of the device you're sending the command to
<password> = enter password of the device you're sending the command to
Hat da vielleicht einer eine Idee was ich dort falsch mache ?
Gruß Speedy