Hello,
Today i would show a new voice assistant, totally offline… i combined, in a Raspberry, Rhasspy, Home Assistant and Mosquitto. It worked well at home.
But, when I turn the RPi on, in a new site, nothing append ! And, when I go back to home… it works !
I am a bit confused… I suspect a problem with IP (the site where nothing append was wifi free). Here the logs :
main()
File "/usr/lib/rhasspy/rhasspy-homeassistant-hermes/rhasspyhomeassistant_hermes/__main__.py", line 59, in main
hermes_cli.connect(client, args)
File "/usr/lib/rhasspy/rhasspy-hermes/rhasspyhermes/cli.py", line 93, in connect
client.connect(args.host, args.port)
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 937, in connect
return self.reconnect()
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 1071, in reconnect
sock = self._create_socket_connection()
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/usr/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
SError: [Errno 113] No route to host
I saw here and there that the MQTT IP adress must be the RPi one (withe docker).
If so, how Rhasspy+HA+Mosquitto work totally offline ? Which host should I filled in Rhasspy (and HA/Mosquitto) settings ?
I assume localhost won’t work ?
And my HA logs if this should help :
2022-05-23 20:18:01 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-05-23 20:18:02 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=110 from 2022-05-23 17:30:02.493299)
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of media_source is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of system_health is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of logbook is taking over 10 seconds.
2022-05-23 20:18:34 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds.
2022-05-23 20:18:39 WARNING (MainThread) [homeassistant.components.ssdp] Failed to setup listener for fe80::42:33ff:fe80:119d: [Errno 22] Invalid argument
2022-05-23 20:18:39 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect to MQTT server due to exception: [Errno 113] Host is unreachable
2022-05-23 20:18:40 ERROR (MainThread) [homeassistant.components.updater] Error requesting Home Assistant update data: Cannot connect to host www.home-assistant.io:443 ssl:default [Try again]
2022-05-23 20:18:40 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error ‘ClientConnectorError’
2022-05-23 20:21:22 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from localhost (::1). (Mozilla/5.0 (X11; CrOS armv7l 13597.84.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.187 Safari/537.36)
2022-05-23 20:23:06 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with
Thanks