Hello
My whole network is Ubiquiti.
HA is set up as a virtual machine on a Proxmox server.
I can ping 192.168.4.113 and the newly assigned static IP of 192.168.4.96 from the HA terminat at 192.168.4.2.
Check out the console print out. First there’s and rc -2 then it connects to HA and the entity is recognize. So what does this prove? Hopefully it will stay connected!
19:50:41 MQT: Connect failed to 192.168.4.2:1883, rc -2. Retry in 10 sec
19:50:52 MQT: Attempting connection…
19:50:52 MQT: Connect failed to 192.168.4.2:1883, rc -2. Retry in 10 sec
19:51:03 MQT: Attempting connection…
19:51:03 MQT: Connect failed to 192.168.4.2:1883, rc -2. Retry in 10 sec
19:51:14 MQT: Attempting connection…
19:51:14 MQT: Connect failed to 192.168.4.2:1883, rc -2. Retry in 10 sec
19:51:25 MQT: Attempting connection…
19:51:25 MQT: Connect failed to 192.168.4.2:1883, rc -2. Retry in 10 sec
19:51:36 MQT: Attempting connection…
19:51:36 MQT: Connected
19:51:36 MQT: tele/switch_gosund_plug_1/LWT = Online (retained)
19:51:36 MQT: cmnd/switch_gosund_plug_1/POWER =
19:51:36 MQT: tele/switch_gosund_plug_1/INFO1 = {“Module”:“Gosund-WP5”,“Version”:“9.1.0(tasmota)”,“FallbackTopic”:“cmnd/DVES_25BFE5_fb/”,“GroupTopic”:“cmnd/tasmotas/”}
19:51:36 MQT: tele/switch_gosund_plug_1/INFO2 = {“WebServerMode”:“Admin”,“Hostname”:“Gosund_Plug_1”,“IPAddress”:“192.168.4.96”}
19:51:36 MQT: tele/switch_gosund_plug_1/INFO3 = {“RestartReason”:“Software/System restart”}
19:51:36 MQT: stat/switch_gosund_plug_1/RESULT = {“POWER”:“OFF”}
19:51:36 MQT: stat/switch_gosund_plug_1/POWER = OFF
19:51:37 MQT: homeassistant/switch/25BFE5_RL_1/config = {“name”:“Sun_Room”,“stat_t”:“tele/switch_gosund_plug_1/STATE”,“avty_t”:“tele/switch_gosund_plug_1/LWT”,“pl_avail”:“Online”,“pl_not_avail”:“Offline”,“cmd_t”:“cmnd/switch_gosund_plug_1/POWER”,“val_tpl”:"{{value_json.POWER}}",“pl_off”:“OFF”,“pl_on”:“ON”,“uniq_id”:“25BFE5_RL_1”,“dev”:{“ids”:[“25BFE5”]}} (retained)
19:51:37 MQT: homeassistant/sensor/25BFE5_status/config = {“name”:“Tasmota status”,“stat_t”:“tele/switch_gosund_plug_1/HASS_STATE”,“avty_t”:“tele/switch_gosund_plug_1/LWT”,“pl_avail”:“Online”,“pl_not_avail”:“Offline”,“json_attr_t”:“tele/switch_gosund_plug_1/HASS_STATE”,“unit_of_meas”:"%",“val_tpl”:"{{value_json[‘RSSI’]}}",“ic”:“mdi:information-outline”,“uniq_id”:“25BFE5_status”,“dev”:{“ids”:[“25BFE5”],“name”:“Tasmota”,“mdl”:“Gosund-WP5”,“sw”:“9.1.0(tasmota)”,“mf”:“Tasmota”}} (retained)
19:51:40 MQT: tele/switch_gosund_plug_1/STATE = {“Time”:“2022-03-02T19:51:40”,“Uptime”:“0T00:02:54”,“UptimeSec”:174,“Heap”:26,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:1,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“IoT”,“BSSId”:“E6:63:DA:A4:73:19”,“Channel”:1,“RSSI”:56,“Signal”:-72,“LinkCount”:1,“Downtime”:“0T00:00:03”}}
19:52:30 MQT: tele/switch_gosund_plug_1/STATE = {“Time”:“2022-03-02T19:52:30”,“Uptime”:“0T00:03:44”,“UptimeSec”:224,“Heap”:26,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:1,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“IoT”,“BSSId”:“E6:63:DA:A4:73:19”,“Channel”:1,“RSSI”:58,“Signal”:-71,“LinkCount”:1,“Downtime”:“0T00:00:03”}}
19:52:30 MQT: stat/switch_gosund_plug_1/RESULT = {“POWER”:“OFF”}
19:52:30 MQT: stat/switch_gosund_plug_1/POWER = OFF