Skip to content

Topic is not updated with device status "Not Home" after TRACKER_TIMEOUT reach out #275

@begemotik

Description

@begemotik

Describe the bug
I configured the gateway as Home Assistant addon. I see the successful messages of iphone being online. The problem is that when device is not actually connected the status is still "home". I expect the reason is that after timeout (TRACKER_TIMEOUT ) happen no new messages posted to the topic and last one contains "rssi" property.

Configuration

{
    "adapter": "",
    "bindkeys": {},
    "blacklist": [],
    "ble": 1,
    "ble_scan_time": 10,
    "ble_time_between_scans": 20,
    "discovery": "1",
    "discovery_device_name": "TheengsGateway",
    "discovery_filter": "[IBEACON]",
    "discovery_topic": "homeassistant",
    "enable_tls": 0,
    "enable_websocket": 0,
    "general_presence": 1,
    "hass_discovery": "1",
    "host": "core-mosquitto",
    "identities": {
        "redacted": "redacted"
    },
    "log_level": "INFO",
    "lwt_topic": "home/TheengsGateway/LWT",
    "pass": "redacted",
    "port": 1883,
    "presence": 1,
    "presence_topic": "home/presence/TheengsGateway",
    "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": 1,
    "tracker_timeout": 60,
    "user": "addons",
    "whitelist": [
        "redacted"
    ]
}

Expected behavior
I expect that after timeout configured if device is offline it should be marked as "not_home".

Screenshots
The last message was posted 30 minutes ago, and home assistant state is still "home".

Screenshot 2024-11-10 at 18 15 43

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