New router?

Hi all,

I have just swapped broadband providers and as such I have changed the router, I was planning on using my old username and password on the new router so I wouldn’t need to update all my Sonoff’s all over the house but this wasn’t possible.

Last night I connected my Raspberry to the new router (It’s connected with a cable) and the logged into each Sonoff (Running Tasmota) to swap the Wifi username, password and MQTT IP.

All this was successful, the Console in Tasmota on each device showed it connecting and passing information and I can see the connections in MQTT in HA.

Logging on to Home Assistant I noticed none of the information was updating and I could not switch anything so I restarted Home Assistant.
Now for every Entity it says “Entity not available” :roll_eyes:

I have updated the details on the Sonoff’s, I can see those working so why do I get the “Entity not available message”? Have missed a setting?

Can anyone suggested something that I have missed?

Regards
James

Just to add the Sonoff’s have kept the same IP address on the new router.

Also when I go to Developer Tools -> Go to the States UI none of the Sonoff’s appear, but when I log onto each Sonoff they seam to be working fine.

Could this be a MQTT setting that I have not updated?

Regards
James

Which MQTT broker are you using?

I am using Mosquitto broker 5.1

Regards
James

Here is a snippet of the log

1585821923: Client DVES_14E0AE has exceeded timeout, disconnecting.
1585822040: New connection from 192.168.1.230 on port 1883.
[INFO] found smithjames0 on local database
1585822041: New client connected from 192.168.1.230 as DVES_2DEE3E (p2, c1, k30, u’smithjames0’).
1585822041: New connection from 192.168.1.131 on port 1883.
1585822041: New client connected from 192.168.1.131 as DVES_15E6FE (p2, c1, k30, u’smithjames0’).
1585822043: New connection from 192.168.1.130 on port 1883.

IS the mqtt client connecting to home assistant ok?

Check the home assistant supervisor log.

I have just restarted MQTT and the log looks ok

[12:33:48] INFO: Setup mosquitto configuration
[12:33:48] WARNING: SSL not enabled - No valid certs found!
[12:33:48] INFO: Found local users inside config
[12:33:49] INFO: Initialize Hass.io Add-on services
[12:33:49] INFO: Initialize Home Assistant discovery
[12:33:49] INFO: Start Mosquitto daemon
1585827229: mosquitto version 1.6.3 starting
1585827229: Config loaded from /etc/mosquitto.conf.
1585827229: Loading plugin: /usr/share/mosquitto/auth-plug.so
1585827229: |-- *** auth-plug: startup
1585827229: ├── Username/password checking enabled.
1585827229: ├── TLS-PSK checking enabled.
1585827229: └── Extended authentication not enabled.
1585827229: Opening ipv4 listen socket on port 1883.
1585827229: Opening ipv6 listen socket on port 1883.
1585827229: Opening websockets listen socket on port 1884.
1585827229: Warning: Mosquitto should not be run as root/administrator.
1585827231: New connection from 192.168.1.132 on port 1883.
[INFO] found smithjames0 on local database
1585827232: New client connected from 192.168.1.132 as DVES_14E0AE (p2, c1, k30, u’smithjames0’).
1585827232: New connection from 192.168.1.131 on port 1883.
1585827232: New connection from 192.168.1.232 on port 1883.
1585827232: New connection from 192.168.1.236 on port 1883.
1585827232: New connection from 192.168.1.197 on port 1883.
1585827232: New connection from 192.168.1.135 on port 1883.
1585827232: New connection from 192.168.1.233 on port 1883.
1585827232: New connection from 192.168.1.130 on port 1883.
1585827232: New connection from 192.168.1.134 on port 1883.

1 Like

:man_shrugging:

That’s the mqtt log.

Check the HA supervisor log.

I have just found this in the HA log

Log Details (WARNING)

Thu Apr 02 2020 12:47:25 GMT+0100 (BST)

Config entry for mqtt not ready yet. Retrying in 80 seconds.

It’s working! I had forgotten to change the MQTT IP address in Configuration.yaml

Thanks for your help

Regards
James

huh. too many settings to change, right?
btw, you can mark a post as a solution so people in similar situation would easily find it :wink: