Homeassistant here. Config.yaml all is ok. Integration mqtt unsuccessful.
Can ypou please me suggest what is wrong
Ps certificate also renewed today
Homeassistant here. Config.yaml all is ok. Integration mqtt unsuccessful.
Can ypou please me suggest what is wrong
Ps certificate also renewed today
Hello @Raffaele
Welcome to the HiveMQ Community! I’m sorry, but I didn’t quite catch the issue you’re experiencing with Home Assistant and HiveMQ. Could you please provide more details so we can better assist you?
Kind regards,
Diego from HiveMQ Team
Hi Thanks for reply
Homeassistant installed.
Configuration.yaml configured as :
mqtt:
broker: HIVEMQ_BROKER_HOSTNAME
port: 8883
username: MQTT_USERNAME
password: MQTT_PASSWORD
certificate: PATH_TO_STORED_CERTIFICATE
Installed mqtt homeassistant integration BUT THE PROBLEM is the ui get not connection to the broker whatever I do.
Can you suggest some tips?
Thanks in advance
Raffaele
Hi Diego after researching with mqtt explorer I discover that enabling tls encryption all is good. But my homeassistant has not such flag (it i sold version) . So I kindly request you how to modify my configuration.yaml in homeassistant to enabling tls.
Thanks in advance
Regards
Raffaele
Hello @Raffaele
If I understand correctly, you’re trying to connect to the HiveMQ Cloud broker using the Home Assistant MQTT Integration. From what I know, all configurations for the Home Assistant MQTT Integration can now be done through the user interface, so there’s no need to modify the configuration.yaml
file.
Have you tried configuring the HiveMQ Cloud broker settings through the Home Assistant Integration web UI?
Kind regards,
Diego from HiveMQ Team
Yes I do that. But my version of homeassistant does not permit me to flag tls encryption that instead , with that flag, works perfectly in mqtt explorer softare. Are theree any chanche to add tls encryption from the manage home hivecmqtt. Otherwise i see no chances,
Thanks for your time
Regards
Raffaele
Which Home Assistant version are you using? I will try to reproduce it from my end.
Versione
|
core-2021.5.3
|
- | - |
Tipo di installazione
|
Home Assistant Container
|
Sviluppo
|
false
|
Supervisor
|
false
|
Docker
|
true
|
Ambiente virtuale
|
false
|
Versione Python
|
3.8.9
|
Famiglia del Sistema Operativo
|
Linux
|
Versione del Sistema Operativo
|
5.10.17-v7+
|
Architettura della CPU
|
armv7l
|
Fuso orario
|
UTC
|
Home Assistant Community Store
GitHub API
|
ok
|
- | - |
Github API Calls Remaining
|
4905
|
Installed Version
|
1.12.2
|
Stage
|
running
|
Available Repositories
|
1518
|
Installed Repositories
|
5
|
Home Assistant Cloud
Accesso effettuato
|
false
|
- | - |
Server dei Certificati raggiungibile
|
ok
|
Server di Autenticazione raggiungibile
|
ok
|
Home Assistant Cloud raggiungibile
|
ok
|
Lovelace
Hi Diego any news to suggest?
Thanks
Raffaele Fabbrizio
Here’s the configuration I set up in my Home Assistant (core-2021.5.3) configuration.yaml
file to successfully connect to HiveMQ Cloud.
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
broker: TYPE_HIVEMQ_CLOUD_BROKER_URL
port: 8883
username: TYPE_USERNAME
password: TYPE_PASSWORD
certificate: /config/isrgrootx1.pem
Kind regards,
Diego from HiveMQ Team
Hi Diego thanks for your config. My only mistake was not setting the proper path to the certificate *.pem.
Many thanks and have a good time
Regards
Raffaele