-
Notifications
You must be signed in to change notification settings - Fork 33
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
How to force MQTT Discovery message? #280
Comments
Did you stop and restart Theengs Gateway? |
Yes, numerous times. I was able to republish Discovery message my changing the Discovery topic name (-Dt). But if I left it to default "homeassistant", it would not republish upon restart. |
So when you view the |
This really looks as if the discoveries have been published fine, also to the home assistant topic, and therefore won't be published again. Very likely that your HA and MQTT Broker resetting still left something unfinished for HA to cruelty recognise these discovery messages again for processing. MQTT Integration also installed again? |
Taking Home Assistant out of the equation, here is a test you can do to reproduce this:
|
I even deleted the whole Then Starting up Theengs Gateway again, all the discovery messages are being created again correctly as expected. I confirmed this procedure twice now. I really wonder what the issue might be with your setup. Are you on
if you are also using a pip install of Theengs Gateway? |
Hold on ;)
So you wait 10 minutes before each BLE scan, which also means there won't be any discovery messages until at least 10, possibly 20 or 30 minutes, depending how many and which devices might be discovered in the 5 seconds scan window. You might want to change that to a shorted time, at least until you have all your discovery messages agin. Could that have been your issue? And
I I take it that you do NOT want any H5072/75 devices to be discovered, correct? |
These are the versions:
I set the For now, I have manually pushed a discovery message to MQTT with the retain flag. This appears to work even after HA is restarted. Also, I get more specific entity names by doing this manually:
|
As I stated above, if this is the device you wanted discovery messages for, you shouldn't have added it to the "discovery_filter" list, as this list contains the model_ids of the devices you want to filter out to not be discovered. |
I have had to reset my Home Assistant and MQTT servers. Since then I haven't been able to re-add BLE entities in Home Assistant as Theengs Gateway doesn't re-publish the discovery payload:
Is there any way to force a republish of the discovery payload?
The text was updated successfully, but these errors were encountered: