Skip to content

How to force MQTT Discovery message? #280

@sumitbirla

Description

@sumitbirla

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:

DEBUG:BLEGateway:Already discovered or filtered: 90CEB8807040
DEBUG:BLEGateway:Sent `{"name": "Sd8a4d92e2d30a94eC", "id": "90:CE:B8:80:70:40", "rssi": -80, "brand": "GENERIC", "model": "iBeacon", "model_id": "IBEACON", "type": "BCON", "mfid": "4c00", "uuid": "74278bdab64445208f0c720eaf059935", "major": 0, "minor": -23587, "txpower": -59}` to topic `home/TheengsGateway/BTtoMQTT/90CEB8807040`

Is there any way to force a republish of the discovery payload?

{
    "adapter": "",
    "bindkeys": {},
    "blacklist": [],
    "ble": 1,
    "ble_scan_time": 5,
    "ble_time_between_scans": 600.0,
    "discovery": 1,
    "discovery_device_name": "TheengsGateway",
    "discovery_filter": [
        "IBEACON",
        "H5072/75"
    ],
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "general_presence": 0,
    "hass_discovery": 1,
    "host": "mqtt.local",
    "identities": {},
    "log_level": "DEBUG",
    "lwt_topic": "home/TheengsGateway/LWT",
    "pass": "***",
    "port": 1883,
    "presence": 0,
    "presence_topic": "home/TheengsGateway/presence",
    "publish_advdata": 0,
    "publish_all": 1,
    "publish_topic": "home/TheengsGateway/BTtoMQTT",
    "scanning_mode": "active",
    "subscribe_topic": "home/+/BTtoMQTT/undecoded",
    "time_format": 0,
    "time_sync": [],
    "tls_insecure": 0,
    "tracker_timeout": 120,
    "user": "***",
    "whitelist": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions