tdm icon indicating copy to clipboard operation
tdm copied to clipboard

Column "IP address" shows "0.0.0.0" in case of ETH connection

Open Noschvie opened this issue 1 year ago • 22 comments

Hello using a Shelly Pro 4PM connected over ETH and Wifi is disabled.

17:20:22.813 CMD: ipaddress1
17:20:22.816 MQT: stat/tasmota_68FF94/RESULT = {"IPAddress1":"0.0.0.0 (0.0.0.0)"}
17:20:26.313 CMD: ipaddress2
17:20:26.316 MQT: stat/tasmota_68FF94/RESULT = {"IPAddress2":"192.168.7.1"}
17:20:42.264 CMD: wifi
17:20:42.267 MQT: stat/tasmota_68FF94/RESULT = {"Wifi":"OFF","Mode":"low rate"}

In case of {"IPAddress1":"0.0.0.0 (0.0.0.0)"} the alternative IP address {"IPAddress2":"192.168.7.1"} shall be used for this column and for calling the "WebUI". Thanks!

Noschvie avatar Jul 17 '24 15:07 Noschvie

Good one. I'll fix that later this week. (And hopefully release that thing :D )

jziolkowski avatar Jul 17 '24 17:07 jziolkowski

Also, can you pls paste here the result of status 5

jziolkowski avatar Jul 17 '24 17:07 jziolkowski

19:26:37.923 CMD: Status 5 19:26:37.928 MQT: stat/tasmota_68FF94/STATUS5 ={"StatusNET":{"Hostname":"tasmota-68FF94-8084","IPAddress":"0.0.0.0","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"34:98:7A:68:FF:94","IP6Global":"","IP6Local":"", "Ethernet"{"Hostname":"tasmota-68FF94-8084eth","IPAddress":"192.168.7.187","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"34:98:7A:68:FF:97","IP6Global":"","IP6Local":"fe80::3698:7aff:fe68:ff97%en1"},"Webserver":2,"HTTP_API":1,"WifiConfig":0,"WifiPower":17.0}}

Noschvie avatar Jul 17 '24 17:07 Noschvie

i'm working on it right now. what tasmota version are you using with this?

jziolkowski avatar Sep 12 '24 22:09 jziolkowski

The "Shelly Pro 4PM" is running Tasmota v14.1.0 and another device "WT32_ETH01" with v14.2.0 Thanks!

Noschvie avatar Sep 13 '24 05:09 Noschvie

Hello @jziolkowski , is there a Windows exe file available for tests? Thanks

Noschvie avatar Sep 15 '24 15:09 Noschvie

I'll prepare a pre-release later today

jziolkowski avatar Sep 15 '24 15:09 jziolkowski

Please have a look to the screenshot from version tdmgr_2024.9.3_x64:

.) Both devices connected by ETH doesn't show the IP address (DHCP used) .) Sorting by IP Address seems to be broken #281

grafik

Which logs are you needed? Thanks!

Noschvie avatar Sep 16 '24 07:09 Noschvie

Pls send me status 5 for both devices again, I'll try to inject this data into one of my devices

that sorting issue is weird, it works on my side. Tho I don't have any 0.0.0.0 address present. I'll have a look.

jziolkowski avatar Sep 18 '24 09:09 jziolkowski

Shelly Pro 4PM

12:51:00.273 CMD: status 5
12:51:00.278 MQT: stat/tasmota_68FF94/STATUS5 = {"StatusNET":{"Hostname":"tasmota-68FF94-8084","IPAddress":"0.0.0.0","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"34:98:7A:68:FF:94","IP6Global":"","IP6Local":"","Ethernet":{"Hostname":"tasmota-68FF94-8084-eth","IPAddress":"192.168.7.187","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"34:98:7A:68:FF:97","IP6Global":"","IP6Local":"fe80::3698:7aff:fe68:ff97%en1"},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}

WT32_ETH01

11:51:57.680 CMD: status 5
11:51:57.685 MQT: stat/tasmota_C7F738/STATUS5 = {"StatusNET":{"Hostname":"tasmota-C7F738-5944","IPAddress":"0.0.0.0","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"24:DC:C3:C7:F7:38","IP6Global":"","IP6Local":"","Ethernet":{"Hostname":"tasmota-C7F738-5944-eth","IPAddress":"192.168.7.178","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"24:DC:C3:C7:F7:3B","IP6Global":"","IP6Local":"fe80::26dc:c3ff:fec7:f73b%en1"},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":16.0}}

Noschvie avatar Sep 18 '24 10:09 Noschvie

check this build:

https://github.com/jziolkowski/tdm/releases/tag/pre2024.9.4.dev10

jziolkowski avatar Sep 21 '24 12:09 jziolkowski

Hi @jziolkowski please have a look to "Gateway", in case of an ETH connection this column should be taken from "StatusNET"."Ethernet"."Gateway"

grafik

And in the case of an ETH connection, the symbol in the “Device” column should be suppressed or replaced with another one.

grafik

Thanks again!

Noschvie avatar Sep 22 '24 08:09 Noschvie

Ah fair point. Sigh. Seems I'll have to get some eth esp32 devices.

jziolkowski avatar Sep 22 '24 11:09 jziolkowski

For example, a WT32 ETH01 would indeed be helpful.

Noschvie avatar Sep 22 '24 15:09 Noschvie

@jziolkowski please reopen this ticket, thanks.

Noschvie avatar Sep 27 '24 20:09 Noschvie

pls try https://github.com/jziolkowski/tdm/releases/tag/2024.10.2.1

jziolkowski avatar Oct 06 '24 23:10 jziolkowski

pls try https://github.com/jziolkowski/tdm/releases/tag/2024.10.2.1

...by the end of this week at the latest.

Noschvie avatar Oct 07 '24 08:10 Noschvie

No problem at all, just letting know ;)

jziolkowski avatar Oct 07 '24 12:10 jziolkowski

@jziolkowski both devices are connected to 192.168.7.x/24 Both fields "IP address" and "Gateway" shall be taken from "Ethernet" the icon looks quite good :-)

12:15:57.189 MQT: stat/tasmota_68FF94/STATUS5 = {"StatusNET":{"Hostname":"tasmota-68FF94-8084","IPAddress":"0.0.0.0","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"34:98:7A:68:FF:94","IP6Global":"","IP6Local":"","Ethernet":{"Hostname":"tasmota-68FF94-8084-eth","IPAddress":"192.168.7.187","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"34:98:7A:68:FF:97","IP6Global":"","IP6Local":"fe80::3698:7aff:fe68:ff97%en1"},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}

12:17:49.520 MQT: stat/tasmota_C7F738/STATUS5 = {"StatusNET":{"Hostname":"tasmota-C7F738-5944","IPAddress":"0.0.0.0","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"24:DC:C3:C7:F7:38","IP6Global":"","IP6Local":"","Ethernet":{"Hostname":"tasmota-C7F738-5944-eth","IPAddress":"192.168.7.178","Gateway":"192.168.7.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.7.1","DNSServer2":"0.0.0.0","Mac":"24:DC:C3:C7:F7:3B","IP6Global":"","IP6Local":"fe80::26dc:c3ff:fec7:f73b%en1"},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":16.0}}

grafik

Noschvie avatar Oct 11 '24 10:10 Noschvie

Ok this is weird. I have unit test for that and based on the example payloads you provided it should be working.

jziolkowski avatar Oct 11 '24 17:10 jziolkowski

Another issue is that tasmota remembers the gateway IP of the wifi interface. So even if you're disconnected from wifi then this address matches the value check I'm using and returns the set value. In tasmota WiFi is the main interface, so I think I need to follow the same approach in TDM.

Maaaaybe the gateway check should check if the wifi IP address is 0.0.0.0 and then decide which GW value to use.

However, I still have no idea why it insists on the 0.0.0.0 address in your example.

Can you tell me which version are these devices of yours?

jziolkowski avatar Oct 11 '24 17:10 jziolkowski

Both devices are running version 14.2.0, thanks.

Noschvie avatar Oct 12 '24 08:10 Noschvie