OS: Raspbian GNU/Linux 8 (jessie) Kernel = Linux 4.9.35-v7+
Java Runtime Environment: how can I read out this information?
openHAB version: openHAB 2.4.0-1 (Release Build)
Issue of the topic:
I have 6 Sonoff producs in use (4xS20, 2x 4chpro) all flashed with Tasmota FW6.4.1. On OH is installed the MQTT binding 2.4.
The general funtion is OK: switch ON/OFF and Temperature read out with DS18S20 works fine an stabel.
For some of my sonnoff devices I get in the logfile sveral and continiously Online / Offline messages e.g.:
2019-02-12 20:17:20.843 [vent.ItemStateChangedEvent] - Wohnzimmer_Leselampe_Reachable changed from Online to Offline
2019-02-12 20:17:21.370 [vent.ItemStateChangedEvent] - Wohnzimmer_Leselampe_Reachable changed from Offline to Online
2019-02-12 20:18:33.648 [vent.ItemStateChangedEvent] - UV_Einfahrt_Switch01_Reachable changed from Online to Offline
here is a snippet of my mqtt.things:
Bridge mqtt:broker:mosquitto "Mosquitto" [ host="localhost", port=1883, secure=false, username="***********", password="***********", clientID="openhab" ]
{
Thing mqtt:topic:sonoff_S20_00 "Wohnzimmer Leselampe" @ "Wohnzimmer" {
Channels:
Type switch : POWER "Power" [stateTopic="stat/SmHo-S20-00/POWER", commandTopic="cmnd/SmHo-S20-00/POWER"]
Type number : RSSI "WiFi RSSI" [stateTopic="tele/SmHo-S20-00/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
Type string : UPTIME "Uptime" [stateTopic="tele/SmHo-S20-00/STATE", transformationPattern="JSONPATH:$.Uptime"]
Type string : REACH "Reachable" [stateTopic="tele/SmHo-S20-00/LWT"]
Type string : VCC "Vcc" [stateTopic="tele/SmHo-S20-00/STATE", transformationPattern="JSONPATH:$.Vcc"]
Type string : IP "IP" [stateTopic="tele/SmHo-S20-00/INFO2", transformationPattern="JSONPATH:$.IPAddress"]
Type string : HOST "Hostname" [stateTopic="tele/SmHo-S20-00/INFO2", transformationPattern="JSONPATH:$.Hostname"]
Type string : SW "SW-Version" [stateTopic="tele/SmHo-S20-00/INFO1", transformationPattern="JSONPATH:$.Version"]
Type string : RESET "Reset" [stateTopic="stat/SmHo-S20-00/RESTART",commandTopic="cmnd/SmHo-S20-00/RESTART"]
} ....
What can be the reason for this continuously online / offline messages?
I also experienced online/offline issues with 2 of my 10 devices… for one I still have no clue for the reason.
did you experiment/change the sleep setting on the sonoff device?
one of my sonoffs was positioned too close to a subwoofer, just moved the sonoff a bit and problem was gone…
I inclued all IP devices in a gHeartbeat group, if a devices is offline for longer than 10min I get a notification…
chagned the Tasmota FW from the Thing “sonoff_S20_00” from 6.4.1 to FW 6.4.0
power cycle of sonoff device “sonoff_S20_00”
restarted OH
power cycle of RPI
I not oblivious experimented or changed something in the sleep settings… I don’t now how?
All above have no impact on the issue:
2019-02-13 19:20:30.754 [vent.ItemStateChangedEvent] - Wohnzimmer_Leselampe_Reachable changed from Online to Offline
2019-02-13 19:20:30.876 [vent.ItemStateChangedEvent] - UV_Einfahrt_Switch01_Reachable changed from Online to Offline
2019-02-13 19:20:31.133 [vent.ItemStateChangedEvent] - Wohnzimmer_Leselampe_Reachable changed from Offline to Online
Not sure that its anything to do with the distance from the WiFi router - I have 25 SonOff devices (a mixture of Basics, POWs, 4CHs and Slamphers) and also have this issue. I’m not totally convinced but believe it might be down to some of the units not being manufactured to the same ‘standard’ as the others??? I have a couple of devices that appear to not operate correctly if they have anything higher than Tasmota 5.14 on them. For now have just left those on the lower version as they operate correctly for me in my set-up.
Holger,
what does “Info” on the Tasmota web-menu tell you with regards to the core/sdk version ?
As I said, my SonOffs worked fine, then I upgraded to 6.4.1 and had issues. Then I “upgraded” to the alternative builds where 6.4.1 is based on the Espressif core 2.3 and all was good after that.
I changed the place of the sonoff with online / offline issue to a place were I had a sonoff device without this online / offline issue. But I have the same result. The RSSI is now 100% before I had 73%.
Another sonoff device has only 12%RSSI and works without these online offline issue. So I guess that has nothing to to with distances.
I read out the Core-/SDK-Version on both I have the same (2_4_2/2.2.1(cfd48f3))
On one sonoff device I use the 2_5_0 SDK with success, no online / offline messages.
If I get no online / offline messages in the next days I will set this ticket to solve.
All, thanks you very much for your help, espacely for @mdillman