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

Device tracker after restart #627

Closed
Hydci opened this issue Jan 13, 2022 · 23 comments
Closed

Device tracker after restart #627

Hydci opened this issue Jan 13, 2022 · 23 comments
Labels
bug Something isn't working

Comments

@Hydci
Copy link
Contributor

Hydci commented Jan 13, 2022

Hello, I use your components to track presence with 2 nut however I noticed that after a restart if one of the two monitored devices is not present the status remains unknown despite the state after restart option is checked, is this an expected behavior or a problem?

@Ernst79
Copy link
Collaborator

Ernst79 commented Jan 13, 2022

this is an issue, I will look into it.

@Ernst79 Ernst79 changed the title Devise tracker after restart Device tracker after restart Jan 13, 2022
@Hydci
Copy link
Contributor Author

Hydci commented Jan 13, 2022

Ok, thanks for the answer, I'll wait for your answer.

@Ernst79
Copy link
Collaborator

Ernst79 commented Jan 13, 2022

I tried to reproduce the issue, but I don't see this behavior. It is restored fine after a restart.

Can you check the following. There are two places where you can set the restore_state option. You can set it as a general, overall, setting, in the first screen you see when you open the options menu of BLE monitor

image

And there is a second option in the menu when you select the specific device. This last setting will overrule the general setting, if you set it to something other than Default. Can you check both settings and post here how these two settings are set?

image

@Hydci
Copy link
Contributor Author

Hydci commented Jan 13, 2022

I therefore looked at what you told me in the general parameters the box and ticked and in the parameters of the device followed it is default so I do not understand why it does not work at worst if instead of putting unknown it gives me was away that would work around the problem

@Hydci
Copy link
Contributor Author

Hydci commented Jan 14, 2022

I tried over and over and over again the same problem ...

Option device restore states default or true it's the same after restarting the status remains unavaible

to create the problem:

  1. Off the device tracker
  2. Restart HA (configuration ==> parameter ==> reboot)
  3. After reboot Status is unavaible

Why the status of the device tracker does not go away and remains unavaible

@Ernst79
Copy link
Collaborator

Ernst79 commented Jan 14, 2022

I have no idea, I tried it myself, it works fine. What kind of device do you use (shouldn't really matter, to be honest)? My settings are at the end of the video. In the video, I show the state (away), do a restart and show the state again (still away). Battery is removed from the device.

screen-capture.mp4

@Hydci
Copy link
Contributor Author

Hydci commented Jan 14, 2022

My settings are the same as you.
Yes I see for you that it works, I tried to delete and redo the device but the same it does not work.
my presence and manage by this https://www.amazon.fr/Nut-localisateur-portemonnaie-portefeuille-t%C3%A9l%C3%A9commande/dp/B01MA5WFJR

@Ernst79
Copy link
Collaborator

Ernst79 commented Jan 14, 2022

The only difference is that I use a device that also has sensors (temperature sensors). I will try to reproduce it with a BT device that isn't a (HA) sensor as well.

@Hydci
Copy link
Contributor Author

Hydci commented Jan 14, 2022

All right, I'm waiting for your return

@Ernst79 Ernst79 added the bug Something isn't working label Jan 23, 2022
@Hydci
Copy link
Contributor Author

Hydci commented Jan 25, 2022

Hello I come to the news for the state unavailable problem after the restart to know if a fix had been found ?

@Ernst79
Copy link
Collaborator

Ernst79 commented Jan 25, 2022

Sorry, not yet. Have been busy working on some other things (and bought a new house, which also takes some time 😄 I'll try to look into it a.s.a.p.

@Ernst79
Copy link
Collaborator

Ernst79 commented Jan 29, 2022

I have tried it again, with a device that is not a sensor, but still no problem. It just restores Away after a restart.

Unfortunately, this makes it impossible for me to debug. I have no idea why it isn't working in your case.

@Hydci
Copy link
Contributor Author

Hydci commented Feb 3, 2022

Hello,
Thank you for looking unfortunately I do not know where the problem comes from either I noticed that after a start if it was absent it was not even in the list of devices in the c integration It's a misunderstanding, thanks for watching anyway

@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 3, 2022

What do you mean by, it wasn't even in the list of devices? In the BLE monitor options, in the pull down menu "devices" ? Or when you are in the integration menu in HA, and click on "x devices" on the BLE monitor tile?

@Hydci
Copy link
Contributor Author

Hydci commented Feb 3, 2022

Sorry m'y english is not good

Here Or when you are in the integration menu in HA, and click on "x devices" on the BLE monitor tile?

@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 3, 2022

No problem, pictures can help

In which list don't you see your device after a restart?

  1. Here when you click on devices
    image

or

  1. when you click on configure and than look in this list.
    image

@Hydci
Copy link
Contributor Author

Hydci commented Feb 3, 2022

the screenshots on a good idea, so the answer is the first screenshot (number 1)

@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 3, 2022

That's strange. Could you make a printscreen of the BLE monitor options and of the device options. Like in my 2nd printscreen. And one after selecting the MAC of the device and clicking on submit (of the new window that opens).

@Hydci
Copy link
Contributor Author

Hydci commented Feb 3, 2022

If I understand correctly you want this
add-on config
device config

@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 19, 2022

Could you try to change the MAC address of the device to track to capital (upper case) letters, (01:5C:5E:11:5D:68)? Just to see if it makes any difference

@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 22, 2022

I think your issue might be fixed in beta version 7.9.0-beta. It had something to do with the lower case MAC address. Could you check if it works for you (keep the lower case MAC in your configuration)? Let us know if it works for you.

@Ernst79 Ernst79 added the fixed in beta This issue is fixed in the current beta release label Feb 22, 2022
@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 26, 2022

I think this issue is fixed in 7.9.2. If it isn't fixed, you can reopen this issue.

@Ernst79 Ernst79 closed this as completed Feb 26, 2022
@Ernst79 Ernst79 removed the fixed in beta This issue is fixed in the current beta release label Feb 26, 2022
@KameDomotics
Copy link

@Hydci
Which Nuts do you use? I have these but they don't work with the integration.

IMG_8280

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

3 participants