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

IRK setup #1031

Closed
nmcrae85 opened this issue Sep 1, 2023 · 5 comments
Closed

IRK setup #1031

nmcrae85 opened this issue Sep 1, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@nmcrae85
Copy link

nmcrae85 commented Sep 1, 2023

Describe the bug

Am i doing something wrong when trying to add the device to HA yaml file with something like this? I used the UI to get the IRK as per example below (not the irk is changed for the purpose of the post).

Just seeing not home...

  • platform: mqtt_room
    device_id: "irk:e46c37a106468d1376c58d33881ee47a"
    name: 'Me BLE'
    state_topic: 'espresense/devices'
    timeout: 5
    away_timeout: 20 # number of seconds after which the enitity will get status not_home

Version

No response

Active scan enabled

No response

Include filter

No response

Exclude filter

No response

Query filter

No response

Firmware flavor

No response

Device (be specific)

No response

Logs

No response

Screenshots

No response

@nmcrae85 nmcrae85 added the bug Something isn't working label Sep 1, 2023
@goedh452
Copy link

goedh452 commented Sep 8, 2023

The state_topic should be "espresense/rooms". At least, that works for me.

@harphere
Copy link

Also, setting 'devce_id' to the nickname was the trick for me.

@clipse2004
Copy link

Has that resolved for you?
I have the same problem, my IRK is displayed in MQTT Explorer and configured that way:

platform: mqtt_room
device_id: "irk:xxxxxxxxxxxxxxxxxxxxxxxxx"
name: '(BLE) iPhone Marco'
state_topic: 'espresense/rooms'
timeout: 5
away_timeout: 120

Apple Watch and girlfriend's iPhone (same config) works. But my iPhone is always shown as not_home :/

platform: mqtt_room
device_id: "irk:xxxxxxxxxxxxxxxxxxxxxxxxxx"
name: '(BLE) iPhone Marion '
state_topic: 'espresense/rooms'
timeout: 5
away_timeout: 120

Earlier it had worked.

@hdprice
Copy link

hdprice commented Oct 26, 2023

Has that resolved for you? I have the same problem, my IRK is displayed in MQTT Explorer and configured that way:

platform: mqtt_room
device_id: "irk:xxxxxxxxxxxxxxxxxxxxxxxxx"
name: '(BLE) iPhone Marco'
state_topic: 'espresense/rooms'
timeout: 5
away_timeout: 120

Apple Watch and girlfriend's iPhone (same config) works. But my iPhone is always shown as not_home :/

platform: mqtt_room device_id: "irk:xxxxxxxxxxxxxxxxxxxxxxxxxx" name: '(BLE) iPhone Marion ' state_topic: 'espresense/rooms' timeout: 5 away_timeout: 120

Earlier it had worked.

I had this same problem. it all worked fine with just one device being tracked but after adding a second, that only showed as "not home". I fixed it by changing the state topic to "espresense/devices/irk:xxxxxx" in each of the sensor declarations for the watches in sensors.yaml.

@meetbryce
Copy link

I was able to get it working by doing what @hdprice suggested!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants