Willkommen bei MattzoBricks › Foren › MattzoTrainController for Bluetooth (MTC4BT) › MQTT credentials in network_config
- Dieses Thema hat 7 Antworten sowie 4 Teilnehmer und wurde zuletzt vor vor 1 Jahr, 9 Monaten von
Matthias Runte aktualisiert.
-
AutorBeiträge
-
-
August 19, 2022 um 16:04 Uhr #5380
torobins …
Teilnehmer1st time posting. Matthias, thank you for this site. it is a wealth of information. I have been able to configure an esp32 with the MTC4BT firmware and use rocrail successfully using a public MQTT broker!! I was wondering if there is a way to specify credentials for my local mqtt broker in the network_config file? my local broker is mosquitto running through home assistant which requires username and password. after much research, i do not think there is a way for the home assistant mosquitto broker to accept anonymous users or null username/password. I have tried to add “password” and “username” lines to the network_config.json file but this does not work. any suggestions? thank you again for this wonderful site.
-
August 19, 2022 um 16:16 Uhr #5381
Matthias Runte
AdministratorFor the Arduino based controllers (MLC and MTC4PF) it should be quite simple: just add username and password to the connect method of the PubSubClient. Check https://pubsubclient.knolleary.net/api#connect
I will ask Ray to check how this would be done for the MTC4BT.
-
August 22, 2022 um 08:27 Uhr #5382
RayAdministratorThat’s correct. There’s currently no way you’d be able to specify the credentials to use to connect to MQTT. It’s probably a small addition though, so we’ll try to add it asap.
-
August 25, 2022 um 13:26 Uhr #5391
torobins …
Teilnehmerthanks! I look forward to it.
-
Dezember 7, 2023 um 14:51 Uhr #6559
Henrik Wils
TeilnehmerAny updates on this? I’ve got the same problem, and need to control my train from Home Assistant 🙂
-
Dezember 7, 2023 um 14:55 Uhr #6560
Matthias Runte
AdministratorNot yet. We have created a feature request for this request. Once we find the necessary time, we’ll care about it. Maybe around Christmas. Thanks for your patience.
-
Januar 5, 2024 um 11:45 Uhr #6582
Henrik Wils
TeilnehmerHappy new year 🙂 Hope that I can soon get my train working automagically from HA. It will actually be a feature for my Twitch channel, where a hype train should kick off the train by itself, so I’m really looking forward to it.
-
Januar 15, 2024 um 17:30 Uhr #6586
Matthias Runte
AdministratorNo. I am presently busy motorizing and automating the Orient Express. After that, I will finish a couple of other projects and then hopefully be able to start working on important backlog issues like this one. Thanks for your patience.
-
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
