Gniazdko "z biedronki" z wgraną Tasmotą wyłącza się po kilkudziesięciu sekundach. Z logów da się wyczytać przyczynę?
05:05:36 MQT: sonoff/stat/POWER = ON (Zachowane)
05:05:40 MQT: sonoff/tele/HASS_STATE = {"Version":"6.6.0(release-sonoff)","BuildDateTime":"2019-07-06T13:25:38","Core":"2_3_0","SDK":"1.5.3(aec24ac9)","Module":"SmartDGM Plug","RestartReason":"Power on","Uptime":"0T05:05:32","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:04","MqttCount":5,"BootCount":23,"SaveCount":233,"IPAddress":"192.168.1.138","RSSI":"100","LoadAvg":39}
05:05:52 MQT: sonoff/tele/STATE = {"Time":"1970-01-01T05:05:52","Uptime":"0T05:05:44","Heap":15,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"POWER":"ON","Wifi":{"AP":1,"SSId":"RZ11c PLAY","BSSId":"40:B0:76:9C:E9:98","Channel":3,"RSSI":100,"LinkCount":1,"Downtime":"0T00:00:04"}}
05:05:52 MQT: sonoff/tele/SENSOR = {"Time":"1970-01-01T05:05:52","ENERGY":{"TotalStartTime":"2019-11-08T16:57:03","Total":2.689,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":293,"Current":0.000}}
05:06:11 MQT: sonoff/tele/HASS_STATE = {"Version":"6.6.0(release-sonoff)","BuildDateTime":"2019-07-06T13:25:38","Core":"2_3_0","SDK":"1.5.3(aec24ac9)","Module":"SmartDGM Plug","RestartReason":"Power on","Uptime":"0T05:06:02","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:04","MqttCount":5,"BootCount":23,"SaveCount":233,"IPAddress":"192.168.1.138","RSSI":"100","LoadAvg":19}
05:06:18 MQT: sonoff/tele/STATE = {"Time":"1970-01-01T05:06:18","Uptime":"0T05:06:08","Heap":15,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Wifi":{"AP":1,"SSId":"RZ11c PLAY","BSSId":"40:B0:76:9C:E9:98","Channel":3,"RSSI":100,"LinkCount":1,"Downtime":"0T00:00:04"}}
05:06:18 MQT: sonoff/stat/RESULT = {"POWER":"OFF"}
05:06:18 MQT: sonoff/stat/POWER = OFF (Zachowane)
jeśli tak się restartuje w kółko to sprobuj zrestartować serwer mqtt. mialem takie zachowanie w sonoff bridge zwiazane z kolejkowaniem w MQTT. Jesli to zly to nowa wersja 6.7.1 naprawia bledy z zasilaniem. Plus male korekty
Wejdź w konsolę, wpisz:
poweronstate
i pokaż loga 🙂
Dziękuję za zainteresowanie, ale przeszedłem wtedy na ESPhome. Od razu zaczęło działać bez problemów.
tak, czy inaczej, źródłem Twoich problemów mógł być niepoprawnie ustawiony stan w "poweronstate" 🙂
Normalnie jest ustawiony na 3, czyli ma pamiętać ostatnie ustawienie, ale u mnie powodowało to problemy, bo zaraz po uruchomieniu przekaźnik się załączał, nawet jak był przedtem wyłączony, dlatego w ESP-01S ustawione mam na 0 (OFF domyślnie po restarcie/uruchomieniu).