jp112sdl / SonoffHMLOX

65 stars 20 forks source link

Sonoff POW Schaltzustand an Homematic #47

Closed chip131001 closed 6 years ago

chip131001 commented 6 years ago

Hallo, ich habe den Sonoff POW geflasht und mit Homematic eingerichtet. Es funktioniert alles wie es soll. Wenn ich aber den Sonoff komplett vom Strom trenne und wieder einschalte dann wird der Schaltzustand nicht an Homematic übertragen beim Drücken des Tasters oder über das Webinterface. Wenn ich in der Konfiguration die IP der CCU2 einmal ändere, und speichere funktioniert wieder die Übertragung des Schaltzustandes zu CCU2. Wie kann ich das abstellen?

jp112sdl commented 6 years ago

Hallo.

Für mich sieht es so aus, als würde nach dem Hochfahren des Sonoff die CCU2 nicht erreicht werden.

Ist es möglich, dass du ein serielles Log anfertigst und hier postest? FTDI anschließen, 115200 Baud einstellen und zB mit Putty verbinden. Anleitungen findest du im Netz zahlreich. z.B. hier: https://pbxbook.com/voip/sputty.html

chip131001 commented 6 years ago

Hallo,

hier das Log. Ich hoffe das hilft.

[HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_W aschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true Switch Relay to 1 with transmitState = 1 setLastState mounted file system setLastState (1) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD..SET_STATE%22).State(1) HTTP CUxD..SET_STATE success result: null [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true Switch Relay to 0 with transmitState = 1 setLastState mounted file system setLastState (0) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD..SET_STATE%22).State(0) HTTP CUxD..SET_STATE success result: null Switch Relay to 0 with transmitState = 0 setLastState mounted file system setLastState (0) saved. Sending Web-Reply: {"state": 0, "timer": 0, "resttimer": 0, "fw": "1.0.22"} webSwitchRelayOn(), keine Parameter, TimerSeconds = 0 Switch Relay to 1 with transmitState = 0 setLastState mounted file system setLastState (1) saved. Sending Web-Reply: {"state": 1, "timer": 0, "resttimer": 0, "fw": "1.0.22"} [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true Switch Relay to 0 with transmitState = 0 setLastState mounted file system setLastState (0) saved. Sending Web-Reply: {"state": 0, "timer": 0, "resttimer": 0, "fw": "1.0.22"} [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true webSwitchRelayOn(), keine Parameter, TimerSeconds = 0 Switch Relay to 1 with transmitState = 0 setLastState mounted file system setLastState (1) saved. Sending Web-Reply: {"state": 1, "timer": 0, "resttimer": 0, "fw": "1.0.22"} Switch Relay to 0 with transmitState = 0 setLastState mounted file system setLastState (0) saved. Sending Web-Reply: {"state": 0, "timer": 0, "resttimer": 0, "fw": "1.0.22"} webSwitchRelayOn(), keine Parameter, TimerSeconds = 0 Switch Relay to 1 with transmitState = 0 setLastState mounted file system setLastState (1) saved. Sending Web-Reply: {"state": 1, "timer": 0, "resttimer": 0, "fw": "1.0.22"} Switch Relay to 0 with transmitState = 0 setLastState mounted file system setLastState (0) saved. Sending Web-Reply: {"state": 0, "timer": 0, "resttimer": 0, "fw": "1.0.22"} Switch Relay to 1 with transmitState = 1 setLastState mounted file system setLastState (1) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD..SET_STATE%22).State(1) HTTP CUxD..SET_STATE success result: null [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true Sending Web-Reply: {"state": 1, "timer": 0, "resttimer": 0, "fw": "1.0.22"} [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true setLastState mounted file system setLastState (1) saved. saving config {"ip":"192.168.178.233","netmask":"255.255.255.0","gw":"192.168.178.1","ccuip":"192.168.178.232","sonoff":"Waschmaschine","restoreOldState":true,"ledDisabled":false,"backendtype":0,"loxudpport":"","powervariable":"SV_Waschmaschine_Leistung","ecvariable":"","measureinterval":10,"sonoffmodel":1,"gpio14mode":0,"gpio14assender":false,"hlw_currentmultiplier":13670.9,"hlw_voltagemultiplier":441250.7,"hlw_powermultiplier":1.216895e7} getStateFromCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22Waschmaschine%22).Address() result: CUX2801002:5 [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true Switch Relay to 0 with transmitState = 1 setLastState mounted file system setLastState (0) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD.CUX2801002:5.SET_STATE%22).State(0) HTTP CUxD.CUX2801002:5.SET_STATE success result: false Switch Relay to 1 with transmitState = 1 setLastState mounted file system setLastState (1) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD.CUX2801002:5.SET_STATE%22).State(1) HTTP CUxD.CUX2801002:5.SET_STATE success result: false Switch Relay to 0 with transmitState = 1 setLastState mounted file system setLastState (0) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD.CUX2801002:5.SET_STATE%22).State(0) HTTP CUxD.CUX2801002:5.SET_STATE success result: false Switch Relay to 1 with transmitState = 1 setLastState mounted file system setLastState (1) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD.CUX2801002:5.SET_STATE%22).State(1) HTTP CUxD.CUX2801002:5.SET_STATE success result: false [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true Switch Relay to 0 with transmitState = 1 setLastState mounted file system setLastState (0) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD.CUX2801002:5.SET_STATE%22).State(0) HTTP CUxD.CUX2801002:5.SET_STATE success result: false Switch Relay to 1 with transmitState = 1 setLastState mounted file system setLastState (1) saved. setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22CUxD.CUX2801002:5.SET_STATE%22).State(1) HTTP CUxD.CUX2801002:5.SET_STATE success result: false [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [HLW]: 0.00W, 0.00V, 0.00A, 0.00VA, Power Factor (%): 0, ENERGY_COUNTER: 0.00Wh setStateCUxD url: http://192.168.178.232:8181/cuxd.exe?ret=dom.GetObject(%22SV_Waschmaschine_Leistung%22).State(0.00) HTTP SV_Waschmaschine_Leistung success result: true [

chip131001 commented 6 years ago

Hallo, ich habe eben den Sonoff neu geflasht und keine statische ip Adresse vergeben, sondern von der Fritzbox eine IP zuweisen lassen. Jetzt funktioniert alles wie es soll. Liegt es vielleicht an der statischen IP?

jp112sdl commented 6 years ago

Das ist durchaus möglich. Da gibts momentan Schwierigkeiten... aber nur manchmal. Was es mir fast unmöglich macht, der Ursache auf den Grund zu gehen. Am besten, du legst eine Reservierung an, so dass dein Sonoff immer dieselbe IP bekommt.