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

Not discovered? #247

Open
Ramdough opened this issue May 6, 2024 · 9 comments
Open

Not discovered? #247

Ramdough opened this issue May 6, 2024 · 9 comments

Comments

@Ramdough
Copy link

Ramdough commented May 6, 2024

Ok, so I am a bit of a newby….but please help.

I have copied your code directly but updated the MAC address, IP number, and unique ID (so it stood out more). My code compiles and writes to the arduino successfully.

I can see my arduino and pig it on the network.

Under MQTT on HA, I am able to publish to myself using the manual publish and listen feature. I have listen set to #, so I am listening to all traffic. So mosquito appears to be working. Discovery is on.

For some reason, I do not get a new sensor created using this code.

What should I try next?

@Ramdough
Copy link
Author

Ramdough commented May 8, 2024

Any thoughts anyone?

@jwilleke
Copy link

jwilleke commented May 9, 2024

Got any code to share?

@Ramdough
Copy link
Author

Got any code to share?

I used this exact binary-sensor example code but changed the MAC address, the unique ID, and the broker IP address.

@Ramdough
Copy link
Author

I am using an arduino mega and plan to modify this code to read all dio pins.

@romoloman
Copy link

Same on esp32 binary sensor is not discovered but is published on MQTT... (checking with MQTT explorer)

@dawidchyrzynski
Copy link
Owner

Hi @Ramdough, which version of Home Assistant do you use?

@romoloman
Copy link

With version 2.1.0 everything is fine on HA 2024.5.4, but still persist the issue of multiple devices of the same type in the network, so I had to use the develop branch that implements enableExtendedUniqueIds() using the mac address of the esp 32 as device id.

@Ramdough
Copy link
Author

Hi @Ramdough, which version of Home Assistant do you use?

I have auto updates so I am always on the latest version.

@Ramdough
Copy link
Author

Thanks everyone for helping! I appreciate the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants