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

Devices : Battery level unavailable for the JA-180W #110

Open
IKIKN opened this issue Jan 10, 2025 · 14 comments
Open

Devices : Battery level unavailable for the JA-180W #110

IKIKN opened this issue Jan 10, 2025 · 14 comments

Comments

@IKIKN
Copy link

IKIKN commented Jan 10, 2025

Hi,

Thanks for this great integration !

I added all my devices, and I can see the events being triggered for them, but one of my motion detectors doesn't report its battery level; instead, it says "Unavailable".

For my 2 others detectors, it works, but their model is different; the 2 that work are JA-150P, and the one that doesn't is a JA-180W. Is there something I can do about that?

Side questions:

  • For most of my Jablotron devices, the "Model" column says "Unknown". Is there a way for me to update that and report which model they are?
  • In my system, I have a position that is skipped (I have a device on position 1, then the next one is on 3). When I first configured the devices, I did not see that jump so I added a device on Position 2, then I started again and skipped it by setting it as "Empty". But I still see a device on position 2 on my devices (that I renamed to "Empty"). Is there a way to just delete it? Or is it by design that even an "Empty" device appears?

Thanks!

@kukulich
Copy link
Owner

For my 2 others detectors, it works, but their model is different; the 2 that work are JA-150P, and the one that doesn't is a JA-180W. Is there something I can do about that?

You can enable debug mode, see README, and send packets for the relevant device. It may be possible to fix it then.

For most of my Jablotron devices, the "Model" column says "Unknown". Is there a way for me to update that and report which model they are?

It may be possible only by more complicated integration settings.

In my system, I have a position that is skipped (I have a device on position 1, then the next one is on 3). When I first configured the devices, I did not see that jump so I added a device on Position 2, then I started again and skipped it by setting it as "Empty". But I still see a device on position 2 on my devices (that I renamed to "Empty"). Is there a way to just delete it? Or is it by design that even an "Empty" device appears?

I think it's situation nobody expected :) I can check source, if it's possible to fix it.

@IKIKN
Copy link
Author

IKIKN commented Jan 10, 2025

Hi,

Thanks for answering. I enabled the logs as explained in the README file, but I don't really understand how I can tackle only the logs from the device events you would be interested in.

Currently, the checked params are "Log all incoming packets" and "Log devices packets".

The current logs that are displayed are:

2025-01-10 13:32:57.687 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 13:32:58.188 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f8f838d1e
2025-01-10 13:33:12.784 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 13:33:35.970 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 13:33:35.970 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 13:33:36.471 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f3f86ad1e
2025-01-10 13:34:13.103 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 13:34:13.103 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 13:34:13.604 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823fcf88cd1e
2025-01-10 13:34:14.105 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 13:34:51.230 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 13:34:51.230 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 13:34:51.731 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f2f8bed1e
2025-01-10 13:34:53.278 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 0): 9019009c160a888a008906008a108900008a118800008a01890000
2025-01-10 13:35:14.783 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 13:35:30.743 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 13:35:30.743 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 13:35:31.244 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823fdf8d0d1f
2025-01-10 13:36:07.876 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 13:36:07.877 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 13:36:08.377 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f7f902d1f
2025-01-10 13:36:15.782 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 13:36:21.077 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 8): 55090089000242918d0012
2025-01-10 13:36:26.783 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000001
2025-01-10 13:36:33.549 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 6): 5509018180010192ad000a
2025-01-10 13:36:37.789 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803004000
2025-01-10 13:36:48.785 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 13:36:52.709 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 13:36:52.710 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 13:36:53.210 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f3f934d1f

Is it helpful ? What else do I need to do ?

Regarding your last comment about the empty device, OK, thank you for checking, let me know if I can help you with something. Thanks a lot!

@kukulich
Copy link
Owner

Incoming (device 6): 5509018180010192ad000a

This is log for device 6. So I need logs for the relevant device. I expect the relevant packets should start with 52 or 90.

@IKIKN
Copy link
Author

IKIKN commented Jan 10, 2025

The device in question is indeed the device 8.

Here are some events that happen when it detects me (there are other devices that appear but I suppose it's not an issue ?). Does it help?

/$ tail -f /config/home-assistant.log
2025-01-10 14:25:53.802 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 14:25:54.303 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f5f674e29
2025-01-10 14:26:16.799 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 14:26:32.159 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 14:26:32.160 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 14:26:32.660 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823fff696e29
2025-01-10 14:27:09.273 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 14:27:09.273 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 14:27:09.774 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f8f6c8e29
2025-01-10 14:27:17.799 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 14:27:47.606 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 14:27:47.607 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 14:27:48.107 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823fef6eae29
2025-01-10 14:27:51.986 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000001
2025-01-10 14:27:51.988 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 8): 550900890002326f2e0112
2025-01-10 14:28:02.798 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 14:28:22.157 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d0087b2807005071ce29
2025-01-10 14:28:23.392 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d2064ebb03000000
2025-01-10 14:28:29.720 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 14:28:29.720 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 14:28:29.808 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 124): 52020a7c
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 127): 52020a7f
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 125): 52020a7d
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 3): 52020a03
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 4): 52020a04
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 5): 52020a05
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 6): 52020a06
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 7): 52020a07
2025-01-10 14:28:29.809 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 8): 52020a08
2025-01-10 14:28:29.914 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 3): 94020301
2025-01-10 14:28:29.915 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 3): 9603030900
2025-01-10 14:28:30.221 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823fcf71ee29
2025-01-10 14:28:30.517 DEBUG (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Outcoming (device 3): 94020300
2025-01-10 14:28:30.721 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 124): 52188a7c0a888a008908008a108900008a118800008a01890000
2025-01-10 14:28:30.722 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 127): 52088a7fa42823100001
2025-01-10 14:28:30.724 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 125): 52088a7da683c0a8006f
2025-01-10 14:28:30.725 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 3): 52098a030400d201016b04
2025-01-10 14:28:31.226 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 4): 52098a0404007202016606
2025-01-10 14:28:31.228 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 5): 52098a0504201001fc2e0a
2025-01-10 14:28:31.229 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 6): 52098a0604207e00fc8a0a
2025-01-10 14:28:31.230 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 7): 52098a0704100e01fc940a
2025-01-10 14:28:31.231 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 8): 52098a0804102600fc320e
2025-01-10 14:29:03.794 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d803000000
2025-01-10 14:29:10.123 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 800d0cffffffff0700078008200100
2025-01-10 14:29:10.124 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: 5203820113
2025-01-10 14:29:10.625 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming: d008966c823f9f740e2a

@kukulich
Copy link
Owner

Regarding your last comment about the empty device, OK, thank you for checking, let me know if I can help you with something. Thanks a lot!

The device should be removed after you upgrade to latest release :)

@kukulich
Copy link
Owner

kukulich commented Jan 10, 2025

2025-01-10 14:28:31.230 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 7): 52098a0704100e01fc940a
2025-01-10 14:28:31.231 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 8): 52098a0804102600fc320e

Device 7: 0a (last two letters) means 100 % of battery
Device 8 0e is unknown value of battery - it looks we are not able to fix it.

You can log more if you can find 90 packet for device 8

@IKIKN
Copy link
Author

IKIKN commented Jan 10, 2025

Thanks a lot for the quick response, I can confirm that with the 3.29.0, the device is indeed removed!

Regarding the "90" packets you ask me to get for the device 8, does this mean a packet that STARTS with 90, or ENDS with 90, or something else ? 😄

@kukulich
Copy link
Owner

Regarding the "90" packets you ask me to get for the device 8, does this mean a packet that STARTS with 90, or ENDS with 90, or something else ?

Starts with 90 and is for device 8.

@IKIKN
Copy link
Author

IKIKN commented Jan 10, 2025

Thanks for the clarifications.

Unfortunately, I'm not able to get a message from the device 8 that starts with 90. This is what I got, that doesn't end with "0e":

2025-01-10 15:34:45.115 DEBUG (ThreadPoolExecutor-2_0) [custom_components.jablotron100] Incoming (device 8): 550900890002c28aaf0212
2025-01-10 15:36:39.016 DEBUG (ThreadPoolExecutor-5_1) [custom_components.jablotron100] Outcoming (device 8): 52020a08

Nothing starting with 90 from this device, unfortunately. Does this mean it's not able to report the state of its battery?

@kukulich
Copy link
Owner

Try to wait. Some packets can show only a few times a day.

@IKIKN
Copy link
Author

IKIKN commented Jan 10, 2025

OK, I'll keep you posted!

@IKIKN
Copy link
Author

IKIKN commented Jan 11, 2025

Hi,

I now have a lot of logs from Jablotron, but unfortunately, no one that start with 90 for the device 8 😢 Does this mean that we're out of luck?

I'm gonna let the logs run a few more days just to be sure but I'm not too optimistic.

@kukulich
Copy link
Owner

Does this mean that we're out of luck?

Yes, it looks so.

@IKIKN
Copy link
Author

IKIKN commented Jan 12, 2025

I don't know if it helps, but I think I found another bug.

If you configure a device type then change it, then the sensors that are not provided anymore (and maybe some diagnostics ? I'm not sure) are not removed. For instance my keypad was first set up as a door opening detector (because I did not see there was a "jump" in my positions), and the door sensor is still there, as unavailable.

I therefore deleted it manually, but I don't know if this means that it doesn't add the new sensors neither.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants