ESPresense / ESPresense

An ESP32 based node for gathering indoor positioning and transmitting to mqtt
https://espresense.com/
GNU Affero General Public License v3.0
1.1k stars 141 forks source link

Amazfit GTR 2e shown as not_home in Home Assistant #509

Closed vzoltan closed 2 years ago

vzoltan commented 2 years ago

image

Blue is my Amazfit GTR 2e (also not_home) cyan is my MiBand (also not_home) red is my phone with Home assistant app, (in the correct room)

even the distance is correct for the two wearable.

Hi, im using room-assistant on a raspberry pi, which sees and reports that my Amazfit GTR 2e is at home/room but espresense shows as not_home.

what can be the problem?

(note: i did setup my phone, and that is shown in the given room just right with espresense, so the config is OK for the watch too.)

some lines from esp32 terminal Band4: [17:56:41]1 C# +1 | MAC: d0f10eab14e0, ID: known:d0f10eab14e0 -34dBm (0.09m) 76ms Watch: [17:56:41]1 C# +1 | MAC: e9b5de977bd4, ID: known:e9b5de977bd4 -69dBm (1.10m) 778ms Phone [18:05:05]1 New | MAC: 6c14b8a132f1, ID: iBeacon:3f2fe1df-007f-4af7-b945-b1be3871308a-100-1 -92dBm

image

configuration.yaml:

# One entry for each beacon you want to track
  - platform: mqtt_room
    device_id: "e9b5de977bd4"
    name: "Zoltans Watch"
    state_topic: "espresense/rooms"
    timeout: 10
    away_timeout: 120

  - platform: mqtt_room
    device_id: "d0f10eab14e0"
    name: "Zoltans MiBand"
    state_topic: "espresense/rooms"
    timeout: 10
    away_timeout: 120

  - platform: mqtt_room
    device_id: "iBeacon:3f2fe1df-007f-4af7-b945-b1be3871308a-100-1"
    name: "Zoltans Phone"
    state_topic: "espresense/rooms"
    timeout: 10
    away_timeout: 120

image image

image

Any idea on this ?

DTTerastar commented 2 years ago

device_id is missing known: prefix. That is part of the id.

vzoltan commented 2 years ago

thank you, solved it!