Make sure these boxes are checked before submitting your issue - Thank you!
status 0@ascillato
I tried to simulate KNX Example 2 from wiki. It seems like Device 2 is able to control the ON/ OFF of Device 1, but not the other way round.
Compiling with core 2.3.0 ran me into wifi disconnection issues. With 2.4.0, KNX seems responsive, no weird behavior like 2.4.1.
Following is my current config
Core: 2.4.0
Tasmota: 5.13.1.a
Hardware: Sonoff T1, 3gang
Device 1
00:00:00 Project jey1 JEY 1 (Topic jey1, Fallback 26, GroupTopic sonoffs) Version 5.13.1a-2_4_0
00:00:00 WIF: Connecting to AP1 SUGAR1 in mode 11N as jey1-4683...
00:00:03 WIF: Connected
00:00:03 HTP: Web server active on jey1-4683 with IP address 192.168.0.26
00:00:05 MQT: Attempting connection...
00:00:05 MQT: Connected
00:00:05 MQT: tele/jey1/LWT = Online (retained)
00:00:05 MQT: cmnd/jey1/POWER =
00:00:05 MQT: tele/jey1/INFO1 = {"Module":"Sonoff T1 3CH","Version":"5.13.1a","FallbackTopic":"26","GroupTopic":"sonoffs"}
00:00:05 MQT: tele/jey1/INFO2 = {"WebServerMode":"Admin","Hostname":"jey1-4683","IPAddress":"192.168.0.26"}
00:00:05 MQT: tele/jey1/INFO3 = {"RestartReason":"Software/System restart"}
00:00:06 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
00:00:06 MQT: stat/jey1/POWER1 = OFF
00:00:06 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
00:00:06 MQT: stat/jey1/POWER2 = OFF
00:00:06 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
00:00:06 MQT: stat/jey1/POWER3 = OFF
00:00:11 KNX: Relay 1 = 1 sent to 2.2.1
00:00:11 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
00:00:11 MQT: stat/jey1/POWER1 = ON
00:00:13 MQT: tele/jey1/STATE = {"Time":"1970-01-01T00:00:13","Uptime":"0T00:00:13","POWER1":"ON","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":96,"APMac":"88:D7:F6:02:18:80"}}
00:00:13 KNX: Relay 1 = 1 sent to 2.2.1
00:00:13 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
00:00:13 MQT: stat/jey1/POWER1 = ON
00:00:13 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
00:00:13 MQT: stat/jey1/POWER2 = OFF
00:00:13 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
00:00:13 MQT: stat/jey1/POWER3 = OFF
00:00:16 KNX: Relay 1 = 0 sent to 2.2.1
00:00:16 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
00:00:16 MQT: stat/jey1/POWER1 = OFF
00:02:00 MQT: tele/jey1/UPTIME = {"Time":"1970-01-01T00:02:00","Uptime":"0T00:02:00"}
00:02:23 KNX: Relay 1 = 1 sent to 2.2.1
00:02:23 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
00:02:23 MQT: stat/jey1/POWER1 = ON
00:02:27 KNX: Relay 1 = 0 sent to 2.2.1
00:02:27 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
00:02:27 MQT: stat/jey1/POWER1 = OFF
00:05:13 MQT: tele/jey1/STATE = {"Time":"1970-01-01T00:05:13","Uptime":"0T00:05:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":98,"APMac":"88:D7:F6:02:18:80"}}
00:05:13 KNX: Relay 1 = 0 sent to 2.2.1
00:05:13 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
00:05:13 MQT: stat/jey1/POWER1 = OFF
00:05:13 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
00:05:13 MQT: stat/jey1/POWER2 = OFF
00:05:13 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
00:05:13 MQT: stat/jey1/POWER3 = OFF
00:10:00 APP: Serial logging disabled
00:10:13 MQT: tele/jey1/STATE = {"Time":"1970-01-01T00:10:13","Uptime":"0T00:10:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":98,"APMac":"88:D7:F6:02:18:80"}}
00:10:13 KNX: Relay 1 = 0 sent to 2.2.1
00:10:13 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
00:10:13 MQT: stat/jey1/POWER1 = OFF
00:10:13 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
00:10:13 MQT: stat/jey1/POWER2 = OFF
00:10:13 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
00:10:13 MQT: stat/jey1/POWER3 = OFF
00:15:13 MQT: tele/jey1/STATE = {"Time":"1970-01-01T00:15:13","Uptime":"0T00:15:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
00:15:13 KNX: Relay 1 = 0 sent to 2.2.1
00:15:13 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
00:15:13 MQT: stat/jey1/POWER1 = OFF
00:15:13 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
00:15:13 MQT: stat/jey1/POWER2 = OFF
00:15:13 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
00:15:13 MQT: stat/jey1/POWER3 = OFF
00:17:35 CMD: Status 0
00:17:35 MQT: stat/jey1/STATUS = {"Status":{"Module":30,"FriendlyName":["JEY 1","JEY 12","JEY 13"],"Topic":"jey1","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}
00:17:35 MQT: stat/jey1/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T00:17:35","StartupUTC":"","Sleep":0,"BootCount":16,"SaveCount":260,"SaveAddress":"F8000"}}
00:17:35 MQT: stat/jey1/STATUS2 = {"StatusFWR":{"Version":"5.13.1a","BuildDateTime":"2018-05-06T15:01:02","Boot":31,"Core":"2_4_0","SDK":"2.1.0(deb1901)"}}
00:17:35 MQT: stat/jey1/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["SUGAR1","SUGAR2"],"TelePeriod":300,"SetOption":["02008009","55818000"]}}
00:17:35 MQT: stat/jey1/STATUS4 = {"StatusMEM":{"ProgramSize":469,"Free":532,"Heap":16,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3}}
00:17:35 MQT: stat/jey1/STATUS5 = {"StatusNET":{"Hostname":"jey1-4683","IPAddress":"192.168.0.26","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"60:01:94:98:B2:4B","Webserver":2,"WifiConfig":4}}
00:17:35 MQT: stat/jey1/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.200","MqttPort":1883,"MqttClientMask":"26","MqttClient":"26","MqttUser":"admin","MqttType":2,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
00:17:35 MQT: stat/jey1/STATUS7 = {"StatusTIM":{"UTC":"Thu Jan 01 00:17:35 1970","Local":"Thu Jan 01 00:17:35 1970","StartDST":"Thu Jan 01 00:00:00 1970","EndDST":"Thu Jan 01 00:00:00 1970","Timezone":1}}
00:17:35 MQT: stat/jey1/STATUS10 = {"StatusSNS":{"Time":"1970-01-01T00:17:35"}}
00:17:35 MQT: stat/jey1/STATUS11 = {"StatusSTS":{"Time":"1970-01-01T00:17:35","Uptime":"0T00:17:35","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}}
Device 2
00:00:03 HTP: Web server active on jey2-2150 with IP address 192.168.0.27
00:00:05 MQT: Attempting connection...
00:00:05 MQT: Connected
00:00:05 MQT: tele/jey2/LWT = Online (retained)
00:00:05 MQT: cmnd/jey2/POWER =
00:00:05 MQT: tele/jey2/INFO1 = {"Module":"Sonoff T1 3CH","Version":"5.13.1a","FallbackTopic":"27","GroupTopic":"sonoffs"}
00:00:05 MQT: tele/jey2/INFO2 = {"WebServerMode":"Admin","Hostname":"jey2-2150","IPAddress":"192.168.0.27"}
00:00:05 MQT: tele/jey2/INFO3 = {"RestartReason":"External System"}
00:00:06 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:00:06 MQT: stat/jey2/POWER1 = OFF
00:00:06 MQT: stat/jey2/RESULT = {"POWER2":"OFF"}
00:00:06 MQT: stat/jey2/POWER2 = OFF
00:00:06 MQT: stat/jey2/RESULT = {"POWER3":"OFF"}
00:00:06 MQT: stat/jey2/POWER3 = OFF
00:00:08 MQT: stat/jey2/RESULT = {"POWER2":"ON"}
00:00:08 MQT: stat/jey2/POWER2 = ON
00:00:13 MQT: tele/jey2/STATE = {"Time":"1970-01-01T00:00:13","Uptime":"0T00:00:13","POWER1":"OFF","POWER2":"ON","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
00:00:13 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:00:13 MQT: stat/jey2/POWER1 = OFF
00:00:13 MQT: stat/jey2/RESULT = {"POWER2":"ON"}
00:00:13 MQT: stat/jey2/POWER2 = ON
00:00:13 MQT: stat/jey2/RESULT = {"POWER3":"OFF"}
00:00:13 MQT: stat/jey2/POWER3 = OFF
00:00:38 CMD: sleep 0
00:00:38 MQT: stat/jey2/RESULT = {"Sleep":"0 (0)"}
00:00:55 MQT: stat/jey2/RESULT = {"POWER2":"OFF"}
00:00:55 MQT: stat/jey2/POWER2 = OFF
00:00:56 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
00:00:56 MQT: stat/jey2/POWER1 = ON
00:01:02 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:01:02 MQT: stat/jey2/POWER1 = OFF
00:01:04 KNX: Received from 2.2.1 Command Write: 1 to Relay 1
00:01:04 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
00:01:04 MQT: stat/jey2/POWER1 = ON
00:01:08 KNX: Received from 2.2.1 Command Write: 0 to Relay 1
00:01:08 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:01:08 MQT: stat/jey2/POWER1 = OFF
00:02:00 MQT: tele/jey2/UPTIME = {"Time":"1970-01-01T00:02:00","Uptime":"0T00:02:00"}
00:03:54 KNX: Received from 2.2.1 Command Write: 0 to Relay 1
00:03:54 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:03:54 MQT: stat/jey2/POWER1 = OFF
00:05:13 MQT: tele/jey2/STATE = {"Time":"1970-01-01T00:05:13","Uptime":"0T00:05:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
00:05:13 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:05:13 MQT: stat/jey2/POWER1 = OFF
00:05:13 MQT: stat/jey2/RESULT = {"POWER2":"OFF"}
00:05:13 MQT: stat/jey2/POWER2 = OFF
00:05:13 MQT: stat/jey2/RESULT = {"POWER3":"OFF"}
00:05:13 MQT: stat/jey2/POWER3 = OFF
00:08:54 KNX: Received from 2.2.1 Command Write: 0 to Relay 1
00:08:54 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:08:54 MQT: stat/jey2/POWER1 = OFF
00:10:00 APP: Serial logging disabled
00:10:13 MQT: tele/jey2/STATE = {"Time":"1970-01-01T00:10:13","Uptime":"0T00:10:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":96,"APMac":"88:D7:F6:02:18:80"}}
00:10:13 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:10:13 MQT: stat/jey2/POWER1 = OFF
00:10:13 MQT: stat/jey2/RESULT = {"POWER2":"OFF"}
00:10:13 MQT: stat/jey2/POWER2 = OFF
00:10:13 MQT: stat/jey2/RESULT = {"POWER3":"OFF"}
00:10:13 MQT: stat/jey2/POWER3 = OFF
00:13:54 KNX: Received from 2.2.1 Command Write: 0 to Relay 1
00:13:54 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:13:54 MQT: stat/jey2/POWER1 = OFF
00:15:13 MQT: tele/jey2/STATE = {"Time":"1970-01-01T00:15:13","Uptime":"0T00:15:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
00:15:13 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:15:13 MQT: stat/jey2/POWER1 = OFF
00:15:13 MQT: stat/jey2/RESULT = {"POWER2":"OFF"}
00:15:13 MQT: stat/jey2/POWER2 = OFF
00:15:13 MQT: stat/jey2/RESULT = {"POWER3":"OFF"}
00:15:13 MQT: stat/jey2/POWER3 = OFF
00:16:50 CMD: status 0
00:16:50 MQT: stat/jey2/STATUS = {"Status":{"Module":30,"FriendlyName":["JEY 2","JEY 22","JEY 23"],"Topic":"jey2","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}
00:16:50 MQT: stat/jey2/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"External System","Uptime":"0T00:16:49","StartupUTC":"","Sleep":0,"BootCount":13,"SaveCount":283,"SaveAddress":"F9000"}}
00:16:50 MQT: stat/jey2/STATUS2 = {"StatusFWR":{"Version":"5.13.1a","BuildDateTime":"2018-05-06T15:51:11","Boot":31,"Core":"2_4_0","SDK":"2.1.0(deb1901)"}}
00:16:50 MQT: stat/jey2/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["SUGAR1","SUGAR2"],"TelePeriod":300,"SetOption":["02008009","55818000"]}}
00:16:50 MQT: stat/jey2/STATUS4 = {"StatusMEM":{"ProgramSize":469,"Free":532,"Heap":16,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3}}
00:16:50 MQT: stat/jey2/STATUS5 = {"StatusNET":{"Hostname":"jey2-2150","IPAddress":"192.168.0.27","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"60:01:94:97:48:66","Webserver":2,"WifiConfig":4}}
00:16:50 MQT: stat/jey2/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.200","MqttPort":1883,"MqttClientMask":"27","MqttClient":"27","MqttUser":"admin","MqttType":2,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
00:16:50 MQT: stat/jey2/STATUS7 = {"StatusTIM":{"UTC":"Thu Jan 01 00:16:50 1970","Local":"Thu Jan 01 00:16:50 1970","StartDST":"Thu Jan 01 00:00:00 1970","EndDST":"Thu Jan 01 00:00:00 1970","Timezone":1}}
00:16:50 MQT: stat/jey2/STATUS10 = {"StatusSNS":{"Time":"1970-01-01T00:16:50"}}
00:16:50 MQT: stat/jey2/STATUS11 = {"StatusSTS":{"Time":"1970-01-01T00:16:50","Uptime":"0T00:16:49","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":98,"APMac":"88:D7:F6:02:18:80"}}}
Hi,
The device 2 of the wiki example just send a KNX command but only pressing the physical button1.
So, if you are toggling the relay by using MQTT or the web interface, it will not do anything. Device 2 is expecting a press on the button to send the command.
The device 1 is sending the relay1 status, that's why, if a MQTT or Web interface or rule, etc change the relay 1 status, the device 1 will send the KNX Command.
Hmm, even pressing the physical button it works one direction.
How do I get both devices (1&2) to work as bi-directional ON/ OFF via physical press?
Let's see what is going on.
Please use the command weblog 4 on the console and press the button to see what is doing.
and then, also, if you can, please, do a save on the KNX menu. It prints out the config on the console also.
thanks
@ascillato
I apologize, my honest mistake. I think something didn't get set correctly and reconfiguring everything from scratch fixed it. Now both devices work accordingly to my needs.
I assume I can't have the same behavior via MQTT?
I'm using Homekit which allows grouping of switches as one, which pretty much solves my issue :) but just curious to see if it's possible on the KNX end.
By MQTT you can have the same behaviour. Please see example 2 of rules on wiki
By KNX you can have a direct communication device to device
From the example, you will have the desired behaviour but device to MQTT broker to device.
But both approaches will work.
Happy to see your issues solved :)
Rules is the next best feature! Will definitely consider for other things.
For now, I'm happy with the current setup using KNX as somewhat fail safe if MQTT broker fails on me, not to mention the space issue. As far as MQTT control of each Device (1&2), a simple grouping of switches on Homekit does the trick for me.
Thank you!
Love your idea of using KNX and MQTT together as one to be the backup of the other. Thanks for sharing.
I encounter a problem today where Device 1 was able to turn ON Device 2 but not OFF.
For Device 1, When the physical button is pressed, I get a sent KNX sent message and receive on Device 2. However when Device 2 is pressed , sent is seen but no receive on Device 1.
All got fix after a hard reset on Device 1.
Will try to get some logs
I encounter a problem today where Device 1 was able to turn ON Device 2 but not OFF.
Issue got fixed after doing a hard reset.
Device 1
Device 1
05:54:21 WIF: Checking connection...
05:54:21 WIF: Attempting connection...
05:54:22 WIF: Checking connection...
05:54:22 WIF: Attempting connection...
05:54:23 WIF: Checking connection...
05:54:23 WIF: Attempting connection...
05:54:24 WIF: Checking connection...
05:54:24 WIF: Connect failed as AP cannot be reached
05:54:25 WIF: Checking connection...
05:54:25 WIF: Connect failed as AP cannot be reached
05:54:25 WIF: Connecting to AP1 SUGAR1 in mode 11N as jey1-4683...
05:54:26 CFG: Saved to flash at FA, Count 514, Bytes 2560
05:54:26 WIF: Checking connection...
05:54:26 WIF: Attempting connection...
05:54:27 WIF: Checking connection...
05:54:27 WIF: Attempting connection...
05:54:28 RSL: tele/jey1/STATE = {"Time":"1970-01-01T05:54:28","Uptime":"0T05:54:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
05:54:28 WIF: Checking connection...
05:54:28 WIF: Connected
05:54:39 MQT: Attempting connection...
05:54:39 MQT: Connected
05:54:39 MQT: tele/jey1/LWT = Online (retained)
05:54:39 MQT: cmnd/jey1/POWER =
05:54:39 MQT: Subscribe to cmnd/jey1/#
05:54:39 MQT: Subscribe to cmnd/sonoffs/#
05:54:39 MQT: Subscribe to cmnd/26/#
05:54:48 WIF: Checking connection...
05:54:48 WIF: Connected
05:54:55 HTP: Main Menu
05:54:59 KNX: Relay 1 = 1 sent to 2.2.1
05:54:59 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
05:54:59 MQT: stat/jey1/POWER1 = ON
05:54:59 CFG: Saved to flash at F9, Count 515, Bytes 2560
05:55:02 KNX: Relay 1 = 0 sent to 2.2.1
05:55:02 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:55:02 MQT: stat/jey1/POWER1 = OFF
05:55:03 CFG: Saved to flash at F8, Count 516, Bytes 2560
05:55:08 WIF: Checking connection...
05:55:08 WIF: Connected
05:55:28 MQT: tele/jey1/STATE = {"Time":"1970-01-01T05:55:28","Uptime":"0T05:55:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
05:55:28 RSL: Received Topic cmnd/jey1/POWER1, Data Size 3, Data OFF
05:55:28 RSL: Group 0, Index 1, Command POWER, Data OFF
05:55:28 KNX: Relay 1 = 0 sent to 2.2.1
05:55:28 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:55:28 MQT: stat/jey1/POWER1 = OFF
05:55:28 RSL: Received Topic cmnd/jey1/POWER2, Data Size 3, Data OFF
05:55:28 RSL: Group 0, Index 2, Command POWER, Data OFF
05:55:28 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
05:55:28 MQT: stat/jey1/POWER2 = OFF
05:55:28 RSL: Received Topic cmnd/jey1/POWER3, Data Size 3, Data OFF
05:55:28 RSL: Group 0, Index 3, Command POWER, Data OFF
05:55:28 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
05:55:28 MQT: stat/jey1/POWER3 = OFF
05:55:28 WIF: Checking connection...
05:55:28 WIF: Connected
05:55:48 WIF: Checking connection...
05:55:48 WIF: Connected
05:56:08 WIF: Checking connection...
05:56:08 WIF: Connected
05:56:28 MQT: tele/jey1/STATE = {"Time":"1970-01-01T05:56:28","Uptime":"0T05:56:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
05:56:28 RSL: Received Topic cmnd/jey1/POWER1, Data Size 3, Data OFF
05:56:28 RSL: Group 0, Index 1, Command POWER, Data OFF
05:56:28 KNX: Relay 1 = 0 sent to 2.2.1
05:56:28 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:56:28 MQT: stat/jey1/POWER1 = OFF
05:56:28 RSL: Received Topic cmnd/jey1/POWER2, Data Size 3, Data OFF
05:56:28 RSL: Group 0, Index 2, Command POWER, Data OFF
05:56:28 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
05:56:28 MQT: stat/jey1/POWER2 = OFF
05:56:28 RSL: Received Topic cmnd/jey1/POWER3, Data Size 3, Data OFF
05:56:28 RSL: Group 0, Index 3, Command POWER, Data OFF
05:56:28 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
05:56:28 MQT: stat/jey1/POWER3 = OFF
05:56:29 WIF: Checking connection...
05:56:29 WIF: Connected
05:56:49 WIF: Checking connection...
05:56:49 WIF: Connected
05:56:50 HTP: Configuration
05:56:52 HTP: Configure Logging
05:56:54 HTP: Configuration
05:57:01 HTP: Main Menu
05:57:02 HTP: Console
05:57:09 WIF: Checking connection...
05:57:09 WIF: Connected
05:57:28 MQT: tele/jey1/STATE = {"Time":"1970-01-01T05:57:28","Uptime":"0T05:57:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
05:57:28 RSL: Received Topic cmnd/jey1/POWER1, Data Size 3, Data OFF
05:57:28 RSL: Group 0, Index 1, Command POWER, Data OFF
05:57:28 KNX: Relay 1 = 0 sent to 2.2.1
05:57:28 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:57:28 MQT: stat/jey1/POWER1 = OFF
05:57:28 RSL: Received Topic cmnd/jey1/POWER2, Data Size 3, Data OFF
05:57:28 RSL: Group 0, Index 2, Command POWER, Data OFF
05:57:28 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
05:57:28 MQT: stat/jey1/POWER2 = OFF
05:57:28 RSL: Received Topic cmnd/jey1/POWER3, Data Size 3, Data OFF
05:57:28 RSL: Group 0, Index 3, Command POWER, Data OFF
05:57:28 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
05:57:28 MQT: stat/jey1/POWER3 = OFF
05:57:29 WIF: Checking connection...
05:57:29 WIF: Connected
05:57:43 APP: Button1 multi-press 1
05:57:44 KNX: Relay 1 = 1 sent to 2.2.1
05:57:44 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
05:57:44 MQT: stat/jey1/POWER1 = ON
05:57:45 CFG: Saved to flash at F7, Count 517, Bytes 2560
05:57:45 APP: Button1 multi-press 1
05:57:46 KNX: Relay 1 = 0 sent to 2.2.1
05:57:46 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:57:46 MQT: stat/jey1/POWER1 = OFF
05:57:47 CFG: Saved to flash at F6, Count 518, Bytes 2560
05:57:49 WIF: Checking connection...
05:57:49 WIF: Connected
05:58:09 WIF: Checking connection...
05:58:09 WIF: Connected
05:58:28 MQT: tele/jey1/STATE = {"Time":"1970-01-01T05:58:28","Uptime":"0T05:58:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
05:58:28 RSL: Received Topic cmnd/jey1/POWER1, Data Size 3, Data OFF
05:58:28 RSL: Group 0, Index 1, Command POWER, Data OFF
05:58:28 KNX: Relay 1 = 0 sent to 2.2.1
05:58:28 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:58:28 MQT: stat/jey1/POWER1 = OFF
05:58:28 RSL: Received Topic cmnd/jey1/POWER2, Data Size 3, Data OFF
05:58:28 RSL: Group 0, Index 2, Command POWER, Data OFF
05:58:28 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
05:58:28 MQT: stat/jey1/POWER2 = OFF
05:58:28 RSL: Received Topic cmnd/jey1/POWER3, Data Size 3, Data OFF
05:58:28 RSL: Group 0, Index 3, Command POWER, Data OFF
05:58:28 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
05:58:28 MQT: stat/jey1/POWER3 = OFF
05:58:29 WIF: Checking connection...
05:58:29 WIF: Connected
05:58:49 WIF: Checking connection...
05:58:49 WIF: Connected
05:59:09 WIF: Checking connection...
05:59:09 WIF: Connected
05:59:28 MQT: tele/jey1/STATE = {"Time":"1970-01-01T05:59:28","Uptime":"0T05:59:13","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
05:59:28 RSL: Received Topic cmnd/jey1/POWER1, Data Size 3, Data OFF
05:59:28 RSL: Group 0, Index 1, Command POWER, Data OFF
05:59:28 KNX: Relay 1 = 0 sent to 2.2.1
05:59:28 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:59:28 MQT: stat/jey1/POWER1 = OFF
05:59:28 RSL: Received Topic cmnd/jey1/POWER2, Data Size 3, Data OFF
05:59:28 RSL: Group 0, Index 2, Command POWER, Data OFF
05:59:28 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
05:59:28 MQT: stat/jey1/POWER2 = OFF
05:59:28 RSL: Received Topic cmnd/jey1/POWER3, Data Size 3, Data OFF
05:59:28 RSL: Group 0, Index 3, Command POWER, Data OFF
05:59:28 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
05:59:28 MQT: stat/jey1/POWER3 = OFF
05:59:29 WIF: Checking connection...
05:59:29 WIF: Connected
05:59:49 WIF: Checking connection...
05:59:49 WIF: Connected
Device 2
00:00:00 CFG: Loaded from flash at FA, Count 746
00:00:00 APP: Boot Count 88
00:00:00 Project jey2 JEY 2 (Topic jey2, Fallback 27, GroupTopic sonoffs) Version 5.13.1a-2_4_0
00:00:00 CFG: Saved to flash at F9, Count 747, Bytes 2560
00:00:00 WIF: Checking connection...
00:00:00 WIF: Attempting connection...
00:00:00 WIF: Connecting to AP2 SUGAR2 in mode 11N as jey2-2150...
00:00:01 WIF: Checking connection...
00:00:01 WIF: Attempting connection...
00:00:02 WIF: Checking connection...
00:00:02 WIF: Attempting connection...
00:00:03 WIF: Checking connection...
00:00:03 WIF: Attempting connection...
00:00:04 WIF: Checking connection...
00:00:04 WIF: Attempting connection...
00:00:05 WIF: Checking connection...
00:00:05 WIF: Attempting connection...
00:00:06 WIF: Checking connection...
00:00:06 WIF: Attempting connection...
00:00:07 WIF: Checking connection...
00:00:07 WIF: Connect failed as AP cannot be reached
00:00:07 WIF: Connecting to AP1 SUGAR1 in mode 11N as jey2-2150...
00:00:08 CFG: Saved to flash at F8, Count 748, Bytes 2560
00:00:08 WIF: Checking connection...
00:00:08 WIF: Attempting connection...
00:00:09 WIF: Checking connection...
00:00:09 WIF: Attempting connection...
00:00:11 WIF: Checking connection...
00:00:11 WIF: Connected
00:00:11 KNX: Start
00:00:11 HTP: Web server active on jey2-2150 with IP address 192.168.0.27
00:00:12 HTP: Main Menu
00:00:12 MQT: Attempting connection...
00:00:13 MQT: Connected
00:00:13 MQT: tele/jey2/LWT = Online (retained)
00:00:13 MQT: cmnd/jey2/POWER =
00:00:13 MQT: Subscribe to cmnd/jey2/#
00:00:13 MQT: Subscribe to cmnd/sonoffs/#
00:00:13 MQT: Subscribe to cmnd/27/#
00:00:13 MQT: tele/jey2/INFO1 = {"Module":"Sonoff T1 3CH","Version":"5.13.1a","FallbackTopic":"27","GroupTopic":"sonoffs"}
00:00:13 MQT: tele/jey2/INFO2 = {"WebServerMode":"Admin","Hostname":"jey2-2150","IPAddress":"192.168.0.27"}
00:00:13 MQT: tele/jey2/INFO3 = {"RestartReason":"External System"}
00:00:14 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:00:14 MQT: stat/jey2/POWER1 = OFF
00:00:14 MQT: stat/jey2/RESULT = {"POWER2":"OFF"}
00:00:14 MQT: stat/jey2/POWER2 = OFF
00:00:14 MQT: stat/jey2/RESULT = {"POWER3":"OFF"}
00:00:14 MQT: stat/jey2/POWER3 = OFF
00:00:20 HTP: Configuration
00:00:21 MQT: tele/jey2/STATE = {"Time":"1970-01-01T00:00:21","Uptime":"0T00:00:20","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR1","RSSI":98,"APMac":"88:D7:F6:02:18:80"}}
00:00:21 RSL: Received Topic cmnd/jey2/POWER1, Data Size 3, Data OFF
00:00:21 RSL: Group 0, Index 1, Command POWER, Data OFF
00:00:21 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:00:21 MQT: stat/jey2/POWER1 = OFF
00:00:21 RSL: Received Topic cmnd/jey2/POWER2, Data Size 3, Data OFF
00:00:21 RSL: Group 0, Index 2, Command POWER, Data OFF
00:00:21 MQT: stat/jey2/RESULT = {"POWER2":"OFF"}
00:00:21 MQT: stat/jey2/POWER2 = OFF
00:00:21 RSL: Received Topic cmnd/jey2/POWER3, Data Size 3, Data OFF
00:00:21 RSL: Group 0, Index 3, Command POWER, Data OFF
00:00:21 MQT: stat/jey2/RESULT = {"POWER3":"OFF"}
00:00:21 MQT: stat/jey2/POWER3 = OFF
00:00:22 HTP: Configure KNX
00:00:29 KNX: Received from 2.2.1 Command Write: 0 to Relay 1
00:00:29 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:00:29 MQT: stat/jey2/POWER1 = OFF
00:00:30 HTP: Configure Logging
00:00:32 WIF: Checking connection...
00:00:32 WIF: Connected
00:00:52 WIF: Checking connection...
00:00:52 WIF: Connected
00:01:12 WIF: Checking connection...
00:01:12 WIF: Connected
00:01:13 HTP: Configuration
00:01:17 HTP: Main Menu
00:01:19 HTP: Console
00:01:26 APP: Button1 multi-press 1
00:01:26 KNX: Button 1 = 1 sent to 2.2.2
00:01:26 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
00:01:26 MQT: stat/jey2/POWER1 = ON
00:01:26 CFG: Saved to flash at F7, Count 749, Bytes 2560
00:01:29 KNX: Received from 2.2.1 Command Write: 0 to Relay 1
00:01:29 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:01:29 MQT: stat/jey2/POWER1 = OFF
00:01:30 CFG: Saved to flash at F6, Count 750, Bytes 2560
00:01:30 APP: Button1 multi-press 1
00:01:31 KNX: Button 1 = 1 sent to 2.2.2
00:01:31 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
00:01:31 MQT: stat/jey2/POWER1 = ON
00:01:32 CFG: Saved to flash at F5, Count 751, Bytes 2560
00:01:32 WIF: Checking connection...
00:01:32 WIF: Connected
00:01:40 APP: Button1 multi-press 1
00:01:40 KNX: Button 1 = 1 sent to 2.2.2
00:01:40 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:01:40 MQT: stat/jey2/POWER1 = OFF
00:01:41 CFG: Saved to flash at F4, Count 752, Bytes 2560
00:01:45 KNX: Received from 2.2.1 Command Write: 1 to Relay 1
00:01:45 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
00:01:45 MQT: stat/jey2/POWER1 = ON
00:01:46 CFG: Saved to flash at FB, Count 753, Bytes 2560
00:01:46 KNX: Received from 2.2.1 Command Write: 0 to Relay 1
00:01:46 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:01:46 MQT: stat/jey2/POWER1 = OFF
00:01:47 CFG: Saved to flash at FA, Count 754, Bytes 2560
00:01:52 WIF: Checking connection...
00:01:52 WIF: Connected
00:01:53 APP: Button1 multi-press 1
00:01:53 KNX: Button 1 = 1 sent to 2.2.2
00:01:53 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
00:01:53 MQT: stat/jey2/POWER1 = ON
00:01:54 CFG: Saved to flash at F9, Count 755, Bytes 2560
00:01:55 APP: Button1 multi-press 1
00:01:56 KNX: Button 1 = 1 sent to 2.2.2
00:01:56 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
00:01:56 MQT: stat/jey2/POWER1 = OFF
00:01:56 CFG: Saved to flash at F8, Count 756, Bytes 2560
00:02:00 MQT: tele/jey2/UPTIME = {"Time":"1970-01-01T00:02:00","Uptime":"0T00:01:58"}
Hi,
Seems that your MQTT broker is turning OFF the device:
05:59:28 RSL: Received Topic cmnd/jey1/POWER1, Data Size 3, Data OFF
05:59:28 RSL: Group 0, Index 1, Command POWER, Data OFF
05:59:28 KNX: Relay 1 = 0 sent to 2.2.1
05:59:28 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
05:59:28 MQT: stat/jey1/POWER1 = OFF
05:59:28 RSL: Received Topic cmnd/jey1/POWER2, Data Size 3, Data OFF
05:59:28 RSL: Group 0, Index 2, Command POWER, Data OFF
05:59:28 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
05:59:28 MQT: stat/jey1/POWER2 = OFF
05:59:28 RSL: Received Topic cmnd/jey1/POWER3, Data Size 3, Data OFF
05:59:28 RSL: Group 0, Index 3, Command POWER, Data OFF
05:59:28 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
05:59:28 MQT: stat/jey1/POWER3 = OFF
May a retained message on your MQTT Broker?
What is the cause of the broker turning off ?
May a retained message on your MQTT Broker? - What do you mean?
Depending on your broker, you can set to retain messages and be re sended.
You should check the MQTT Broker configuration.
Here is a copy of my Config in Homebridge
`{
"bridge":{
"name":"Homeroom",
"username":"",
"port":51820,
"pin":"031-45-150"
},
"description":"",
"platforms":[
],
"accessories":[
{
"accessory":"mqtt-switch-tasmota",
"name":" Lamp",
"url":"mqtt://192.168.1.200",
"username":"admin",
"password":"admin",
"topics":{
"statusGet":"stat/jey1/POWER1",
"statusSet":"cmnd/jey1/POWER1",
"stateGet":"tele/jey1/STATE"
},
"onValue":"ON",
"offValue":"OFF",
"activityTopic":"tele/jey1/LWT",
"activityParameter":"Online",
"startCmd":"cmnd/jey1/TelePeriod",
"startParameter":"60"
},
{
"accessory":"mqtt-switch-tasmota",
"name":"LAMP 2",
"url":"mqtt://192.168.1.200",
"username":"admin",
"password":"admin",
"topics":{
"statusGet":"stat/jey2/POWER2",
"statusSet":"cmnd/jey2/POWER2",
"stateGet":"tele/jey2/STATE"
},
"onValue":"ON",
"offValue":"OFF",
"activityTopic":"tele/jey2/LWT",
"activityParameter":"Online",
"startCmd":"cmnd/jey2/TelePeriod",
"startParameter":"60"`
further testing seems like Device 1 is able to "ON/OFF" Device 2 via the
physical button. However, Device 2 is not able to do the same to Device 1
after a while of running. Only a hard reset fixes the issue.
Pulling up console I see Device 2 is sending a message but Device 1 is not
receiving. And the retain kicks in depending the "ON/OFF" state of Device
1.
Assuming I have Device 1 & Device 2 on "ON" state and I intentionally turn
OFF Device 2, it will turn "OFF" but Device 1 remains "ON". A few seconds
later, the retain on Device 1 kicks in to turn "ON" Device 2
Is it possible to set both devices to be responders if that makes any
sense...
Jey Kasi
On Wed, May 9, 2018 at 4:32 AM, Adrian Scillato notifications@github.com
wrote:
Depending on your broker, you can set to retain messages and be re sended.
You should check the MQTT Broker configuration.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/arendst/Sonoff-Tasmota/issues/2643#issuecomment-387533166,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIw6wIFuZ_Kfanv0ZSx6Gs5DhCb4tBkdks5twgDegaJpZM4T0CKk
.
Hi,
So,
1- Only device 1 is not receiving after sometime of reboot?
2- If you try to send telegrams several times, device 1 stills no respond to any telegram?
3- can you post the knx configuration of device 1?
1- Only device 1 is not receiving after sometime of reboot?
Yes, only Device 1 is not receiving after a while eventhough Device 2 is sending messages
2- If you try to send telegrams several times, device 1 stills no respond to any telegram?
It does some times, for the most part, it only works after a reboot
3- can you post the knx configuration of device 1?
I have included both Device 1 & Device 2, Previously my configuration was same as your Stairs light example (2) on wiki. Had the same problem of Device 1 not receiving so I change it to the below to see if it made any difference.... guess not :(


mmmm,
Seems to be similar to this issue
I could not make my devices do that behaviour. That's why I'm looking for the difference on your devices. The key to the problem should be there.
I noticed that the firmware build time for both devices is different. The firmware for device 1 and 2 is the same?
They both compiled the same time also I have set up a second device just to make sure... the same problem
I'm using
Core 2.40 lwIP 1.4 Prebuilt
Tasmota 5.13.1a
Compiled with Arduino 1.8.5 OSX
A second device also have the issue with the same config than the device 1?
El mié., 9 de may. de 2018 02:16, jeylites notifications@github.com
escribió:
They both compiled the same time also I have set up a second device just
to make sure... the same problemI'm using
Core 2.40 lwIP 1.4 Prebuilt
Tasmota 5.13.1aCompiled with Arduino 1.8.5 OSX
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/arendst/Sonoff-Tasmota/issues/2643#issuecomment-387622514,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ahw-hzJ-bYZWrE8kf6HLHIpzOg7xsvW9ks5twnupgaJpZM4T0CKk
.
Yes same problem
Ok. But device 2 is working ok?
El mié., 9 de may. de 2018 02:24, jeylites notifications@github.com
escribió:
Yes same problem
On Wed, May 9, 2018 at 1:22 PM Adrian Scillato notifications@github.com
wrote:A second device also have the issue with the same config than the device
1?El mié., 9 de may. de 2018 02:16, jeylites notifications@github.com
escribió:They both compiled the same time also I have set up a second device
just
to make sure... the same problemI'm using
Core 2.40 lwIP 1.4 Prebuilt
Tasmota 5.13.1aCompiled with Arduino 1.8.5 OSX
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/arendst/Sonoff-Tasmota/issues/2643#issuecomment-387622514
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ahw-hzJ-bYZWrE8kf6HLHIpzOg7xsvW9ks5twnupgaJpZM4T0CKk
>.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<
https://github.com/arendst/Sonoff-Tasmota/issues/2643#issuecomment-387623400
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AIw6wAJF2Q1D9ETdiis4c1PYxAW0Ljyzks5twn0WgaJpZM4T0CKk.
>
Sent from Iphone Mobile
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/arendst/Sonoff-Tasmota/issues/2643#issuecomment-387623617,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ahw-h6HD7Yb2LnLTwc1ImIpfypFbzYYrks5twn2EgaJpZM4T0CKk
.
Both Device New and Old that I have setup is going through the same issue
where communication goes one direction. I just flashed another board with
platform io. Will report back
I have made some progress since 11 hours ago.
I manage to flash a T1 touch with Platform io , Core: 2.4.1, Tasmota 5.13.1a..... all of a sudden the problem I had in the past with Arduino IDE has gone away.
The bizarre part us, the one direction communication based on Core 2.40 fixed it self after including the new 2.4.1 in the network. To sum up currently have Core 2.4.1 & Core 2.40 on the same address communicating with each other without any issues.
I'm new to Platform Io and will like to get an input on the following Platform.ini file, the uncommented, are they correct?
I uncommented platform = [email protected] ;v2.3.0 but it's keep defaulting to ;platform = [email protected] ; v2.4.1 not sure why.
What is the difference between uncommenting env_default = sonoff & env_default = sonoff-knx & in user_config.h?
Because I realise if I comment env_default = sonoff-knx and uncomment in user_config.h KNX lines, it doesn't take effect.
[platformio]
src_dir = sonoff
; *** Uncomment one of the lines below to build/upload only one environment
env_default = sonoff
;env_default = sonoff-minimal
;env_default = sonoff-classic
env_default = sonoff-knx
;env_default = sonoff-allsensors
;env_default = sonoff-BG
;env_default = sonoff-CN
;env_default = sonoff-CZ
;env_default = sonoff-DE
;env_default = sonoff-ES
;env_default = sonoff-FR
;env_default = sonoff-GR
;env_default = sonoff-HU
;env_default = sonoff-IT
;env_default = sonoff-NL
;env_default = sonoff-PL
;env_default = sonoff-PT
;env_default = sonoff-RU
;env_default = sonoff-TW
[common] ; ************************************************************
; *** Esp8266 core for Arduino version
platform = [email protected] ;v2.3.0
;platform = [email protected] ; v2.4.0
;platform = [email protected] ; v2.4.1
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = dout
; *** Fix [email protected] induced undesired all warnings
build_unflags = -Wall
build_flags =
-Wl,-Tesp8266.flash.1m0.ld
-DVTABLES_IN_FLASH
-DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
; -DUSE_CONFIG_OVERRIDE
; *** Fix Esp/Arduino core 2.4.x induced Tasmota unused floating point includes
extra_scripts = pio/strip-floats.py
; *** Serial Monitor options
monitor_baud = 115200
; *** Upload Serial reset method for Wemos and NodeMCU
;upload_speed = 115200
upload_speed = 115200
upload_resetmethod = nodemcu
upload_port = /dev/cu.usbserial-A50285BI
; *** Upload file to OTA server using SCP
;upload_port = user@host:/path
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
; *** Upload file to OTA server using HTTP
;upload_port = domus1:80/api/upload-arduino.php
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
; *********************************************************************
[env:sonoff]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags}
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_resetmethod = ${common.upload_resetmethod}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-minimal]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DBE_MINIMAL
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-classic]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DUSE_CLASSIC
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-knx]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DUSE_KNX_NO_EMULATION
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-allsensors]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DUSE_ALL_SENSORS
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-BG]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=bg-BG
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-CN]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=zh-CN
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-CZ]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=cs-CZ
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-DE]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=de-DE
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-ES]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=es-AR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-FR]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=fr-FR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-GR]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=el-GR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-HU]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=hu-HU
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-IT]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=it-IT
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-NL]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=nl-NL
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-PL]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=pl-PL
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-PT]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=pt-PT
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-RU]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=ru-RU
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-TW]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=zh-TW
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
about the _platformio.ini_:
env_default = sonoff <--- you should uncomment just one env_default. Uncomment 2 or more make platformio just compile the last option.
if you have all commented will make platformio build all the versions.
[common] ; ************************************************************
; *** Esp8266 core for Arduino version
platform = [email protected] ;v2.3.0
;platform = [email protected] ; v2.4.0
;platform = [email protected] ; v2.4.1
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
platform = espressif8266
the same than above. just uncomment one platform type. there you have 3 different platforms. platformio is using just the last one that (platform = espressif8266) that means use the espressif8266 of higher version previously downloaded.
What is the difference between uncommenting env_default = sonoff & env_default = sonoff-knx & in user_config.h?
when you uncomment for example:
env_default = sonoff-DE
platformio will compile just:
[env:sonoff-DE]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=de-DE
and in the build_flags it adds MY_LANGUAGE=de-DE that it is the same of uncommenting MY_LANGUAGE=de-DE on the _user_config.h_
I manage to flash a T1 touch with Platform io , Core: 2.4.1, Tasmota 5.13.1a..... all of a sudden the problem I had in the past with Arduino IDE has gone away.
using the exact same device configuration?
Thanks for the explanation! To sum up I have to use env_default = sonoff
for the Core, you mentioned 3 different platforms. but the list has 5 platform options? assuming I need to pick just Core 2.3.0, is the following correct?
common] ; *******************
; ** Esp8266 core for Arduino version
platform = [email protected] ;v2.3.0
;platform = [email protected] ; v2.4.0
;platform = [email protected] ; v2.4.1
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
platform = espressif8266
I manage to flash a T1 touch with Platform io , Core: 2.4.1, Tasmota 5.13.1a..... all of a sudden the problem I had in the past with Arduino IDE has gone away.
using the exact same device configuration?
Yes, the user_config.h is the same with the rest. The only different was I used Platform io with the aboutPlatform.ini file. As you can see I uncommented a few things because I wasn't sure how to work the settings. Some how it compiled without any errors.
I will have to test a little more to check for reliability. I have learned problem usually shows up after hours and hours of running. Will report soon on this...
For some reason now I'm unable to compile I get a bunch of error. I googled for help but there's not much info out there

for the Core, you mentioned 3 different platforms. but the list has 5 platform options? assuming I need to pick just Core 2.3.0, is the following correct?
change to this:
common] ; ************************************************************
; *** Esp8266 core for Arduino version
platform = [email protected] ;v2.3.0
;platform = [email protected] ; v2.4.0
;platform = [email protected] ; v2.4.1
;platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
;platform = espressif8266
comment everything you dont need and just chose one platform like above (platform = [email protected] ;v2.3.0)
For some reason now I'm unable to compile I get a bunch of error.
Just delete _.pioenv_ folder inside your _sonoff_ project folder
And also do a rebuild c/c++ ...

I have been going through every folder looking for the pioenvs file or folder, are you referring to the pio folder?
the .pioenvs folder is made by platformio inside the sonoff-tasmota folder
So, this issue get solved for you when you recompiled the firmware, right?
On the first boot, did you loose the configuration?
the folder doesn't seem to exists in my sonoff-tasmota folder so replaced it with a clean version of 5.13.1a and it took it. Currently testing Core 2.30, Core 2.4.0,Core 2.4.1
Will let you now you know soon.
It seem to be an ongoing issue, at anytime do you get access to web browser? I realise using core 2.4.0 & 2.4.1 after a while web browser become unresponsive. Found out that a power cycle of sonoff or reboot of router only brings it back.... The cycle continues.
Another thing by accident I found that access is granted if MQTT broker is down after a while. My best guess will be traffic, the esp is unable to keep up.
Hi
I think I found the problem ! :smile:
I could reproduce this issue.
If the sonoff device get disconnected from the wifi router, when reconnecting to the same router it loose the multicast connection for receiving packets. That's why a reboot solve the issue because on boot it opens again the UDP.
I will make a PR to solve this.
So, The issue was not related to esp lib versions, configurations nor compilation.
For the disconnection tests, I just unplug my wifi router and plug it again.
So, then with the patched version you should not have problems, but you should look why you have those micro-disconnections from your router ( may be too many wifi devices ? )
There is a very interesting and technical video about wifi routers installation by @davidelang at https://www.usenix.org/conference/lisa12/technical-sessions/presentation/lang_david_wireless
Thanks a lot again for all the tests you made. Thanks to all your help was possible to find the root of the problem. :+1:
@ascillato
That explain a lot why KNX works on all Core modes. Just saw the push, will test it out soon. Thanks for sharing @davidelang video on wireless router. Very informative!!!
Fixed.
Nice will test it later.
Just tested the latest release 5.13.1a downloaded yesterday. Seem the KNX devices are not receiving messages after running a while. Please see below logs .
Device 1
09:25:19 MQT: stat/jey1/POWER2 = OFF
09:25:19 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
09:25:19 MQT: stat/jey1/POWER3 = OFF
09:30:18 MQT: tele/jey1/STATE = {"Time":"1970-01-01T09:30:18","Uptime":"0T09:30:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":96,"APMac":"88:D7:F6:02:18:80"}}
09:30:18 KNX: Relay 1 = 0 sent to 2.2.1
09:30:18 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:30:18 MQT: stat/jey1/POWER1 = OFF
09:30:18 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
09:30:18 MQT: stat/jey1/POWER2 = OFF
09:30:18 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
09:30:18 MQT: stat/jey1/POWER3 = OFF
09:35:18 MQT: tele/jey1/STATE = {"Time":"1970-01-01T09:35:18","Uptime":"0T09:35:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":96,"APMac":"88:D7:F6:02:18:80"}}
09:35:18 KNX: Relay 1 = 0 sent to 2.2.1
09:35:18 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:35:18 MQT: stat/jey1/POWER1 = OFF
09:35:18 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
09:35:18 MQT: stat/jey1/POWER2 = OFF
09:35:18 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
09:35:18 MQT: stat/jey1/POWER3 = OFF
09:40:18 MQT: tele/jey1/STATE = {"Time":"1970-01-01T09:40:18","Uptime":"0T09:40:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":92,"APMac":"88:D7:F6:02:18:80"}}
09:40:18 KNX: Relay 1 = 0 sent to 2.2.1
09:40:18 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:40:18 MQT: stat/jey1/POWER1 = OFF
09:40:18 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
09:40:18 MQT: stat/jey1/POWER2 = OFF
09:40:18 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
09:40:18 MQT: stat/jey1/POWER3 = OFF
09:40:45 KNX: Relay 1 = 1 sent to 2.2.1
09:40:45 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
09:40:45 MQT: stat/jey1/POWER1 = ON
09:40:47 KNX: Relay 1 = 0 sent to 2.2.1
09:40:47 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:40:47 MQT: stat/jey1/POWER1 = OFF
09:40:48 KNX: Relay 1 = 1 sent to 2.2.1
09:40:48 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
09:40:48 MQT: stat/jey1/POWER1 = ON
09:40:50 KNX: Relay 1 = 0 sent to 2.2.1
09:40:50 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:40:50 MQT: stat/jey1/POWER1 = OFF
09:40:52 KNX: Relay 1 = 1 sent to 2.2.1
09:40:52 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
09:40:52 MQT: stat/jey1/POWER1 = ON
09:40:56 KNX: Relay 1 = 0 sent to 2.2.1
09:40:56 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:40:56 MQT: stat/jey1/POWER1 = OFF
09:40:59 KNX: Relay 1 = 1 sent to 2.2.1
09:40:59 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
09:40:59 MQT: stat/jey1/POWER1 = ON
09:41:00 KNX: Relay 1 = 0 sent to 2.2.1
09:41:00 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:41:00 MQT: stat/jey1/POWER1 = OFF
09:41:33 KNX: Relay 1 = 1 sent to 2.2.1
09:41:33 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
09:41:33 MQT: stat/jey1/POWER1 = ON
09:41:43 KNX: Relay 1 = 0 sent to 2.2.1
09:41:43 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:41:43 MQT: stat/jey1/POWER1 = OFF
09:41:44 KNX: Relay 1 = 1 sent to 2.2.1
09:41:44 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
09:41:44 MQT: stat/jey1/POWER1 = ON
09:41:45 KNX: Relay 1 = 0 sent to 2.2.1
09:41:45 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:41:45 MQT: stat/jey1/POWER1 = OFF
09:42:59 KNX: Relay 1 = 1 sent to 2.2.1
09:42:59 MQT: stat/jey1/RESULT = {"POWER1":"ON"}
09:42:59 MQT: stat/jey1/POWER1 = ON
09:43:00 KNX: Relay 1 = 0 sent to 2.2.1
09:43:00 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:43:00 MQT: stat/jey1/POWER1 = OFF
09:45:20 MQT: tele/jey1/STATE = {"Time":"1970-01-01T09:45:20","Uptime":"0T09:45:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":100,"APMac":"88:D7:F6:02:18:80"}}
09:45:20 KNX: Relay 1 = 0 sent to 2.2.1
09:45:20 MQT: stat/jey1/RESULT = {"POWER1":"OFF"}
09:45:20 MQT: stat/jey1/POWER1 = OFF
09:45:20 MQT: stat/jey1/RESULT = {"POWER2":"OFF"}
09:45:20 MQT: stat/jey1/POWER2 = OFF
09:45:20 MQT: stat/jey1/RESULT = {"POWER3":"OFF"}
09:45:20 MQT: stat/jey1/POWER3 = OFF
09:46:54 CMD: status o
09:46:54 MQT: stat/jey1/STATUS = {"Status":{"Module":30,"FriendlyName":["JEY 1","JEY 12","JEY 13"],"Topic":"jey1","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}
09:47:00 CMD: status 0
09:47:00 MQT: stat/jey1/STATUS = {"Status":{"Module":30,"FriendlyName":["JEY 1","JEY 12","JEY 13"],"Topic":"jey1","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}
09:47:00 MQT: stat/jey1/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"Power on","Uptime":"0T09:46:46","StartupUTC":"","Sleep":0,"BootCount":5,"SaveCount":121,"SaveAddress":"FB000"}}
09:47:00 MQT: stat/jey1/STATUS2 = {"StatusFWR":{"Version":"5.13.1a","BuildDateTime":"2018-05-12T22:20:10","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
09:47:00 MQT: stat/jey1/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["SUGAR","SALT"],"TelePeriod":300,"SetOption":["02008009","55818000"]}}
09:47:00 MQT: stat/jey1/STATUS4 = {"StatusMEM":{"ProgramSize":466,"Free":536,"Heap":14,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3}}
09:47:00 MQT: stat/jey1/STATUS5 = {"StatusNET":{"Hostname":"jey1-4683","IPAddress":"192.168.0.26","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"60:01:94:98:B2:4B","Webserver":2,"WifiConfig":4}}
09:47:00 MQT: stat/jey1/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.200","MqttPort":1883,"MqttClientMask":"26","MqttClient":"26","MqttUser":"admin","MqttType":2,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
09:47:00 MQT: stat/jey1/STATUS7 = {"StatusTIM":{"UTC":"Thu Jan 01 09:47:00 1970","Local":"Thu Jan 01 09:47:00 1970","StartDST":"Thu Jan 01 00:00:00 1970","EndDST":"Thu Jan 01 00:00:00 1970","Timezone":8}}
09:47:00 MQT: stat/jey1/STATUS10 = {"StatusSNS":{"Time":"1970-01-01T09:47:00"}}
09:47:00 MQT: stat/jey1/STATUS11 = {"StatusSTS":{"Time":"1970-01-01T09:47:00","Uptime":"0T09:46:46","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":98,"APMac":"88:D7:F6:02:18:80"}}}
Device 2
08:20:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:20:52","Uptime":"0T08:20:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
08:25:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:25:52","Uptime":"0T08:25:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
08:30:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:30:52","Uptime":"0T08:30:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
08:35:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:35:52","Uptime":"0T08:35:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
08:40:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:40:52","Uptime":"0T08:40:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
08:45:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:45:52","Uptime":"0T08:45:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":96,"APMac":"88:D7:F6:02:18:80"}}
08:50:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:50:52","Uptime":"0T08:50:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
08:55:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T08:55:52","Uptime":"0T08:55:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:00:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:00:52","Uptime":"0T09:00:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:02:00 MQT: tele/jey2/UPTIME = {"Time":"1970-01-01T09:02:00","Uptime":"0T09:01:22"}
09:05:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:05:52","Uptime":"0T09:05:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:10:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:10:52","Uptime":"0T09:10:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:15:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:15:52","Uptime":"0T09:15:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":92,"APMac":"88:D7:F6:02:18:80"}}
09:20:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:20:52","Uptime":"0T09:20:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:25:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:25:52","Uptime":"0T09:25:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:30:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:30:52","Uptime":"0T09:30:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:35:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:35:52","Uptime":"0T09:35:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:39:07 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
09:39:07 MQT: stat/jey2/POWER1 = ON
09:39:08 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
09:39:08 MQT: stat/jey2/POWER1 = OFF
09:40:52 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:40:52","Uptime":"0T09:40:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}
09:41:21 KNX: Button 1 = 1 sent to 2.2.2
09:41:21 MQT: stat/jey2/RESULT = {"POWER1":"ON"}
09:41:21 MQT: stat/jey2/POWER1 = ON
09:41:22 KNX: Button 1 = 1 sent to 2.2.2
09:41:22 MQT: stat/jey2/RESULT = {"POWER1":"OFF"}
09:41:22 MQT: stat/jey2/POWER1 = OFF
09:45:03 CMD: status 0
09:45:03 MQT: stat/jey2/STATUS = {"Status":{"Module":30,"FriendlyName":["JEY 2","JEY 22","JEY 23"],"Topic":"jey2","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}
09:45:03 MQT: stat/jey2/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T09:44:17","StartupUTC":"","Sleep":0,"BootCount":5,"SaveCount":39,"SaveAddress":"F5000"}}
09:45:03 MQT: stat/jey2/STATUS2 = {"StatusFWR":{"Version":"5.13.1a","BuildDateTime":"2018-05-12T22:45:39","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
09:45:03 MQT: stat/jey2/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["SUGAR","SALT"],"TelePeriod":300,"SetOption":["02008009","55818000"]}}
09:45:03 MQT: stat/jey2/STATUS4 = {"StatusMEM":{"ProgramSize":466,"Free":536,"Heap":15,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3}}
09:45:03 MQT: stat/jey2/STATUS5 = {"StatusNET":{"Hostname":"jey2-2150","IPAddress":"192.168.0.27","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"60:01:94:97:48:66","Webserver":2,"WifiConfig":4}}
09:45:03 MQT: stat/jey2/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.200","MqttPort":1883,"MqttClientMask":"27","MqttClient":"27","MqttUser":"admin","MqttType":2,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
09:45:03 MQT: stat/jey2/STATUS7 = {"StatusTIM":{"UTC":"Thu Jan 01 09:45:03 1970","Local":"Thu Jan 01 09:45:03 1970","StartDST":"Thu Jan 01 00:00:00 1970","EndDST":"Thu Jan 01 00:00:00 1970","Timezone":8}}
09:45:03 MQT: stat/jey2/STATUS10 = {"StatusSNS":{"Time":"1970-01-01T09:45:03"}}
09:45:03 MQT: stat/jey2/STATUS11 = {"StatusSTS":{"Time":"1970-01-01T09:45:03","Uptime":"0T09:44:17","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":94,"APMac":"88:D7:F6:02:18:80"}}}
09:46:00 MQT: tele/jey2/STATE = {"Time":"1970-01-01T09:46:00","Uptime":"0T09:45:14","POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"SUGAR","RSSI":92,"APMac":"88:D7:F6:02:18:80"}}
Hi,
1- This is happening to both devices?
2- Are you using a wifi repeater?
3- Can you access to your wifi router configuration to see:
- If multicast is turned on ?
- IGMP is v3 ?
- Multicast Snoop is off ?
1- This is happening to both devices?
Yes, both devices. Usually with a simple reset it fixes it self today. I had to reset the router for it to take effect. Still investigating this part.
2- Are you using a wifi repeater?
The sonoff touch are connected to the Asus router setup as AP. The main router is connected via cable to the Asus AP.
3- Can you access to your wifi router configuration to see: I just drop the RTS value to 2304 from 2346

Please, Test if the issue persists changing Enable IGMP Snooping to disable
will do.
Also, please check the config on the main router as your AP is not isolated, meaning that your main router is the one that manages everything.
IGMP Snooping to disable, KNX stops receiving. When turn on it's communicating between devices. AP is not in isolated mode.
AP is not in isolated mode.
exactly, so the multicast is being managed by the main router
Please, check the configuration of your main router.
And if you can, try to connect both Sonoffs to the main router. If you can't do that, try the isolated turned on, on your AP.
Just an update. I took your tip about moving the KNX Sonoff stuff to the main router. Everything started working right after, also solved few other issue - NTP server sync, Web browser became more reachable and KNX were receiving messages.
The puzzling yet disappointing part is the stock ISP router seem far more reliable than the mid range Asus RT- AC55UHP that I have.
I also did some research on the Asus router, seems to be a common issue with multicast. It dropout after awhile and the only way to get it back is to do a power cycle.
Anyway, all systems been running for 15 hours without any major issue.
Wow. Very good news!
Happy to hear that you found the problem :)
El lun., 14 de may. de 2018 07:02, jeylites notifications@github.com
escribió:
Just an update. I took your tip about moving the KNX Sonoff stuff to the
main router. Everything started working right after, also solved few other
issue - NTP server sync, Web browser became more reachable and KNX were
receiving messages.The puzzling yet disappointing part is the stock ISP router seem far more
reliable than the mid range Asus RT- AC55UHP that I have.I also did some research on the Asus router, seems to be a common issue
with multicast. It dropout after awhile and the only way to get it back is
to do a power cycle.Anyway, all systems been running for 15 hours without any major issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/arendst/Sonoff-Tasmota/issues/2643#issuecomment-388763990,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ahw-h3mqNXJ4R5QsuFcd5ffzrIqTVDiwks5tyVYjgaJpZM4T0CKk
.
I've some networking question to ask.
SSID
I'm planing to have the following - A Main AC Router and two routers setup as AC AP MODE connection to main via LAN. Should I connect all Sonoff devices to the AP or both Main and AP
Is it advisable to have two different SSID names Tasmota device STA_SSID1 & STA_SSID2 or can they be the same?
What is the best wifi tool to use. Currently have WIFI_RETRY
(WIFI_RESTART, WIFI_SMARTCONFIG, WIFI_MANAGER, WIFI_WPSCONFIG, WIFI_RETRY, WIFI_WAIT)
Also planing to get a new AP router, what do you have installed perhaps I could look for something similar?
Should I connect all Sonoff devices to the AP or both Main and AP ?
Really, I don't know what should be the best. You should try. The only advise is (as explained on the davidelang video) be aware of the _hidden transmitters_, so try that all sonoff that are connected to a specific router, see each other.
Is it advisable to have two different SSID names Tasmota device STA_SSID1 & STA_SSID2 or can they be the same?
Can be the same. No problem with that. I have just one wifi router by now, so I put both SSID the same. So if it disconnects from the wifi will try again.
What is the best wifi tool to use?
That depends on what you want to do. I also use WIFI_RETRY so when it disconnects from the wifi it will immediately try to connect to the next SSID - that in my case is the same network.
what do you have installed ?
By now, my setup is just one TP-LINK Wifi Router provided by my ISP. Everything is connected there.
I'm planning to have another just to avoid the _hidden transmitter_ issue.
Thank you. I will try setting this up and see where it goes. :)
On Tue, May 15, 2018 at 1:07 PM Adrian Scillato notifications@github.com
wrote:
Should I connect all Sonoff devices to the AP or both Main and AP ?
Really, I don't know what should be the best. You should try. The only
advise is (as explained on the davidelang video) be aware of the hidden
transmitters, so try that all sonoff that are connected to a specific
router, see each other.Is it advisable to have two different SSID names Tasmota device STA_SSID1
& STA_SSID2 or can they be the same?Can be the same. No problem with that. I have just one wifi router by now,
so I put both SSID the same. So if it disconnects from the wifi will try
again.What is the best wifi tool to use?
That depends on what you want to do. I also use WIFI_RETRY so when it
disconnects from the wifi it will immediately try to connect to the next
SSID - that in my case is the same network.what do you have installed ?
By now, my setup is just one TP-LINK Wifi Router provided by my ISP.
Everything is connected there.
I'm planning to have another just to avoid the hidden transmitter issue.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/arendst/Sonoff-Tasmota/issues/2643#issuecomment-389044154,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIw6wPtnEyl6uDcRmY54y1MMhBSVcyPsks5tymKtgaJpZM4T0CKk
.>
Sent from Iphone Mobile