How to get Supla devices in Home Assistant without MQTT?

topolino65
Posts: 12
Joined: Mon Jun 26, 2023 5:51 am

Post

OK I rermoved all files in the custom components folder, as you recommended. My /share/mosquitto/mosquitto.conf file is now:

connection bridge-Enigma1965
address mqtt37.supla.org:8883
supla topic/# in
topic homeassistant/# in
topic supla/+/devices/+/channels/+/execute_action out
topic supla/+/devices/+/channels/+/set/+ out
remote_username c0ea48db06c2fe59af73fc708916cd52
remote_password zpjlckwETTXf94kFQy*REwrFbgv4vKs*
bridge_capath /etc/ssl/certs


However with the HA MQTT add on set as follows:

active: true
folder: mosquitto

and the Enable certificate set to ON

I get the following error in the log and the broker stops. Becasue it stops, It also prevents the addon from connecting to my local broker on 192.168.1.176 (my local MQTT broker)

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[11:42:17] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
s6-rc: info: service legacy-services successfully started
[11:42:19] INFO: Starting NGINX for authentication handling...
[11:42:19] INFO: Starting mosquitto MQTT broker...
1704714139: Error: Unable to open include_dir '/share/mosquitto'.
1704714139: Error found at /etc/mosquitto/mosquitto.conf:37.
[11:42:19] WARNING: Halt add-on
s6-rc: info: service legacy-services: stopping
[11:42:19] INFO: Service restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
User avatar
pzygmunt
Posts: 18613
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

What is on line 37 in /etc/mosquitto/mosquitto.conf?
topolino65
Posts: 12
Joined: Mon Jun 26, 2023 5:51 am

Post

Nothing on line 37 as the .conf file is only 9 lines long. I should add I created the .conf file through the File Editor addon not via "nano" SSH. Could this be why the MQTT broker add on cannot seem to find the .conf file according to the logs I showed you? Also you can probably sort this problem out in a matter of minutes. Would you be willing to log into my HA instance to see for yourself the problem if I send you my details via PM? As I said I have a device (Afterburner) currently using the MQTT local broker via a local IP address as set in the MQTT addon configuration, but when you try to enable the Active: True option to set up the bridge, the addon will not start and the logs say it cannot find the .conf file and I then lose my MQTT connection to the device using the local IP address, so I am actually even worse off. To clarify I have two MQTT devices

1 The first device is local and connects to the HA MQTT local broker addon via my HA local IP address and on port of 1883

2. The other device is reachable only via the IP address of mqtt.supla37.org:8883 but needs to be able to talk back(publish and sibscribe to my HA local broker. I basically want to add an HVAC Climate entity to Home Assistant, to be able to control it through HA as opposed to through the Supla app.

I'm pretty much lost now as to what to do as I followed your instructions but nothing seems to work.
User avatar
pzygmunt
Posts: 18613
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Why don't you use a terminal and a text editor?
topolino65
Posts: 12
Joined: Mon Jun 26, 2023 5:51 am

Post

Which one do you suggest? I have the SSH terminal addon but I cant seem to get the mkdir command to work to create the share directory so I just created it and the conf file in the FIle Editor addon. However when I run MQTT broker addon it sill cant find the file even though it is located in /share/mosquitto/mosquitto.conf
User avatar
pzygmunt
Posts: 18613
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

If you want, I can take a look remotely. You can use teamviewer from this link. https://get.teamviewer.com/adfz4q6
topolino65
Posts: 12
Joined: Mon Jun 26, 2023 5:51 am

Post

Yes OK what time or do I just open session?
topolino65
Posts: 12
Joined: Mon Jun 26, 2023 5:51 am

Post

I've left session open...code is: s15-398-1970 can you send me a text when you are ready to connect (00447519659128)
topolino65
Posts: 12
Joined: Mon Jun 26, 2023 5:51 am

Post

I have an emergency dental appointment to day so will be away from my PC until around 2pm UK time.
topolino65
Posts: 12
Joined: Mon Jun 26, 2023 5:51 am

Post

I updated heater as instructed

Return to “Help”