arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.12k stars 4.79k forks source link

KNX - Device not responding. #2643

Closed jeylites closed 6 years ago

jeylites commented 6 years ago

Make sure these boxes are checked before submitting your issue - Thank you!

@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"}}}
ascillato commented 6 years ago

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.

jeylites commented 6 years ago

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.

ascillato commented 6 years ago

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 .

jeylites commented 6 years ago

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?

ascillato commented 6 years ago

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.

jeylites commented 6 years ago

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