Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no devices #3

Open
daniel-lo opened this issue Apr 9, 2021 · 11 comments
Open

no devices #3

daniel-lo opened this issue Apr 9, 2021 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@daniel-lo
Copy link

Hi .. I am connecting to my iobroker on the port I have the sonoff adapter .. using the password defined there too .. but I cannot get any devices to show. I must be missin gsome magic. Could someone point me into the right direction?

@tom-23
Copy link
Owner

tom-23 commented Apr 9, 2021

Hmmm, this seems weird. I'm guessing you're using ioBroker as an MQTT broker right? https://www.iobroker.net/#en/adapters/adapterref/iobroker.mqtt/README.md

If so, I'll try to reproduce the issue and see what could be happening. Also, could you tell me the tasmota firmware version of the sonoff adapter? Thanks for reporting btw!

@tom-23 tom-23 added the bug Something isn't working label Apr 9, 2021
@tom-23 tom-23 self-assigned this Apr 9, 2021
@daniel-lo
Copy link
Author

in port 1883 only my sonoff adapter is listening .. which is in fact also an mqtt broker. I have the adapter you show additionally but that is listening on 1888 .. which I cannot use in your app .. since it limits port setting to 1883.
I have the newes version on my device .. 9.3.1

@tom-23
Copy link
Owner

tom-23 commented Apr 9, 2021

Yep, this is a bug! 😅

I've just released a software update that fixes this. You can update by going into Settings > Software Update and changing the update channel to Alpha. You should be able to change the sever port once updated.

@daniel-lo
Copy link
Author

I can now change the port .. but still I find no devices .. using neither of the two adapters

@tom-23
Copy link
Owner

tom-23 commented Apr 9, 2021

On the tasmota devices, do you have Home assistant discovery set to 1 by any chance? (SetOption19)

@daniel-lo
Copy link
Author

{"SetOption19":"OFF"}

@tom-23
Copy link
Owner

tom-23 commented Apr 9, 2021

Okay, I've just installed iobroker on a Debian system and installed the mqtt adapter (https://www.iobroker.net/#en/adapters/adapterref/iobroker.mqtt/README.md).

I've gone ahead and set the username, password and port and set the type to be a "Server/Broker" and TasmoManager seems to connect and discover the 1 device (which I've added to the server) without any issues.

On iobroker, could you go into Objects > mqtt and check to see if there is a tasmota object. There should also be a discovery object too (screenshots would be useful) Thanks!

Screenshot 2021-04-09 at 5 33 00 pm

@daniel-lo
Copy link
Author

Hmm .. ok .. if it has to be the mqtt adapter .. I don't have my sonoff topics in there (I use it differently) .. could you possibly try the sonoff adapter .. that should be the one to address in iobroker.

@tom-23
Copy link
Owner

tom-23 commented Apr 9, 2021

Ah okay I've tried Sonoff Adapter and found out what's going on. Sonoff Adapter doesn't allow any clients to read topic information. ioBroker/ioBroker.sonoff#107

In summary, TasmoManager can't read discovery information from Sonoff Adapter's MQTT server (or any information for that matter). If you wanted to use TasmoManager (or anything which needs to connect to an MQTT server and read from it), I would download and install a separate mqtt broker, (the one that's bundled with MQTT Adapter doesn't work that well), like Mosquitto and use MQTT Adapter as a client and connect to it from that.

In my opinion, its a pain that Sonoff Adapter doesn't allow for reading of topics but there are work arounds 🤷‍♂️.

@daniel-lo
Copy link
Author

Thanks for investigating .. maybe worth an issue in the adapter's git?

@tom-23
Copy link
Owner

tom-23 commented Apr 10, 2021

I think it's already been mentioned on there however, I think I'll mention it on the GH page anywas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants