hm… it looks like someone has deleted my posting and didn’t informed me about that…
@wutu @lxz :
have you got my message? if not, I will contact you via private message (if that is okay for you guys)
-
Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home
-
@llgb
Hi, I read your post morning, then forum has been out of operation. Something about lost
I use this: http://www.aliexpress.com/item/1PCS-CH340G-Serial-Converter-USB-2-0-To-TTL-6PIN-Module-for-PRO-mini-Instead-of/32309334377.html
Hold down the button when connecting the USB, you go into flash mode. But surely you know.Pimatic = Smart Home
-
@llgb said in Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home:
hm… it looks like someone has deleted my posting and didn’t informed me about that…
sorry for any inconvenience! we’ve had a server migration today, maybe your post got lost on the way to the new server.
We do not delete any posts unless they are against our forum guidelines (just wanted to mention thatpimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@wutu said in Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home:
@llgb
Hi, I read your post morning, then forum has been out of operation. Something about lostAh shit so my post maybe got lost due to backup &restore this morning.
I use this: http://www.aliexpress.com/item/1PCS-CH340G-Serial-Converter-USB-2-0-To-TTL-6PIN-Module-for-PRO-mini-Instead-of/32309334377.html
Hold down the button when connecting the USB, you go into flash mode. But surely you know.Yes I’ve held down the button, but when I hold it down, there is no response from the board.
If I connect the usb cable without pushing the button, the green LED is blinking but putty is still “dead”. It’s strange that I even can’t type in anything and even don’t see any hieroglyphics.btw: there are two variants of board. I got the one with 5pin-serial connector (using the first 4, starting with the 3V3 square)
-
@leader21 said in Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home:
sorry for any inconvenience! we’ve had a server migration today, maybe your post got lost on the way to the new server.
We do not delete any posts unless they are against our forum guidelines (just wanted to mention thatHi leader21,
ok thanks for the clearification and sorry for my wrong assumption
-
@llgb
I’m from the serial port did not take any information. I just flash firmware. And even then, no info on serial again. But ESPEasy works, so what I’d solved it.Pimatic = Smart Home
-
@wutu said in Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home:
@llgb
I’m from the serial port did not take any information. I just flash firmware. And even then, no info on serial again. But ESPEasy works, so what I’d solved it.huu okay that’s tricky. I would feel more comfortable if there is some information output which is letting me know that I’m on the right way
But I’ll give it a try this weekend and will solder the pins to the board and try to flash it blind
-
Guys!! Thank you so much for support and for your good documentations!
I’ve managed to flash espeasy to all my Sonoff devices, after I’ve soldered the pins and held down the button while flashing “blind” (based on the missing serial output, I expected to see).But now I’m facing the next problem
My Sonoff devices keep restarting the hole time… (Also a problem is, that the switch-state is reset to 0 when they boot up).
First I thought that the restart is related to the “ConnectFailures” in the Log, but if I choose “Generic HTTP” as protocol, it’s the same situation.Log:
2499144 : SW : State 0.00 2526094 : WD : Uptime 42 ConnectFailures 0 FreeMem 28416 2556095 : WD : Uptime 42 ConnectFailures 0 FreeMem 28600 2559344 : SW : State 0.00 2586096 : WD : Uptime 43 ConnectFailures 0 FreeMem 28808 2616097 : WD : Uptime 43 ConnectFailures 0 FreeMem 28128 2619532 : SW : State 0.00
(and so on).
First I was using R78, but I’ve also updated my devices to R105 with the same result…
Any idea? -
@llgb Hi
Set the protocol to OpenHAB MQTT.
See also the Tools > Advanced that is filled Publish and Subscribe Template.Pimatic = Smart Home
-
@wutu said in Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home:
@llgb Hi
Set the protocol to OpenHAB MQTT.
See also the Tools > Advanced that is filled Publish and Subscribe Template.Hey,
I’ve tried this in the last few days and checked a lot of possiblities (cleaned up my rapsbian packages, installed a clean working mosquitto, and so on) because sometimes my Sonoffs were working (I thought), I connected my lights to the Sonoff’s, switched them on via pimatic and after 5 minutes they were switched off -.-
I have 3 Sonoffs names: espeasy01, espeasy02, espeasy03.
The last two days I have only connected espeasy02 and it ran pretty stable. Got a huge uptime in its webGUI, Log was fine and I was possible to switch it via pimatic.
BUT (and here comes the strange thing) as soon as I powered on another Sonoff (espeasy03) BOTH of them showed the typical misbehaviour and restared every 5-7minutes.
Log looks like (content is repeating, counting up the ConnectFailures):
Log 127095 : Subscribed to: /espeasy02/# 156068 : WD : Uptime 2 ConnectFailures 8 FreeMem 29232 156068 : MQTT : Connection lost 157084 : MQTT : Connected to broker 157092 : Subscribed to: /espeasy02/# 158172 : SW : State 0.00 186069 : WD : Uptime 3 ConnectFailures 10 FreeMem 28368 186069 : MQTT : Connection lost 187088 : MQTT : Connected to broker 187096 : Subscribed to: /espeasy02/#
So as far as I connect only one Sonoff to my pi, it keeps its connection and everything is fine. But as soon as I power on another Sonoff (no lamp connected) BOTH of them seem to loese their connection.
This makes no sense to me! Does anyone of you have a clu what could cause this behaviour?
-
@llgb Hi, Please check if you’ve got Sets unique “Unit nr” on the Config page.
Each device must have a unique unit num. It is added to the client name when registering on the broker.
Pimatic = Smart Home
-
also have one of these running now but looks like connection is not reliable at all using qos now with the plugin but I don’t know if the esp downgrades the qos.
Also not sure if the Wifi is strong enough where the device is located but had a wifi extender right next to it and it didn’t improve. Currently the RSSI is -50 dB could you post some reference value here?2213300 : MQTT : Connection lost 2214345 : MQTT : Connected to broker 2214396 : Subscribed to: /LichtBadezimmer/# 2233420 : EVENT: Clock#Time=Fri,22:27 2243301 : WD : Uptime 36 ConnectFailures 25 FreeMem 26440 2243301 : MQTT : Connection lost 2245396 : MQTT : Connected to broker 2245420 : Subscribed to: /LichtBadezimmer/# 2246501 : SYS : 36.00 2246502 : EVENT: #=36.00
looks like just mqtt is constantly reconnecting
I have the unique ID set and only on esp with espeasy running.
-
looks like network problems on the esp. I just took a look at the mosquitto log…
1464382961: New connection from xx on port 1883. 1464382961: New client connected from xx as ESPClient2 (c1, k15, u'xx'). 1464382976: Socket error on client ESPClient2, disconnecting. 1464382991: New connection from xx on port 1883. 1464382991: New client connected from xx as ESPClient2 (c1, k15, u'xx'). 1464383006: Socket error on client ESPClient2, disconnecting. 1464383021: New connection from xx on port 1883. 1464383021: New client connected from xx as ESPClient2 (c1, k15, u'xx'). 1464383036: Socket error on client ESPClient2, disconnecting.
ip and username replaced with xx
-
@thex hi, Yes, Espeasy downgrades QoS to 0.
What version ESPEasy you use? Also send screenshots of sites Config and Tools> Advanced.
My RSSI is -60dB (AP is in the same room).Pimatic = Smart Home
-
passwords and names and so on are there but I quickly removed them from the screenshot
-
@thex Hi,
everything seems ok.
If you have correctly created password file. Then set for web log level 4 and take a look what it displays.
You can also start mosquitto with the -v flag.Pimatic = Smart Home
-
working great so far. Have replaced 3X 433 Mhz switches with these sonOff. I also check if they are “online” with PING plugin.
Andyone tried SonOFF with DHT22 ? -
@hyperx said
Andyone tried SonOFF with DHT22 ?
Look at ESPEasy forum: http://www.esp8266.nu/forum/viewtopic.php?f=5&t=721&hilit=sonoff&start=140#p6980
P.S. I do not know if it’s a good idea.
Pimatic = Smart Home
-
@lxz i’m getting the error when i putt the plugin Mqtt in my config.json…any idea ?
{
“plugin”: “mqtt”
}logfile
Reconnecting to MQTT Broker
13:27:49.565 [pimatic-mqtt] MQTT Broker is offline
13:27:52.929 [pimatic-mqtt] Error on connecting to MQTT Broker operation timed out
13:27:54.573 [pimatic-mqtt] Reconnecting to MQTT Broker
13:27:54.628 [pimatic-mqtt] MQTT Broker is offline
13:27:59.636 [pimatic-mqtt] Reconnecting to MQTT Broker
13:27:59.685 [pimatic-mqtt] MQTT Broker is offline -
@krissie said in Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home
@lxz i’m getting the error when i putt the plugin Mqtt in my config.json…any idea ?
Hey,
You’ve installed and launched a MQTT broker? For example Mosquitto?Pimatic = Smart Home