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

Add support 090615.remote.btsw1 on old gateway firmwares #1463

Open
PeaceByPeace opened this issue Sep 27, 2024 · 13 comments
Open

Add support 090615.remote.btsw1 on old gateway firmwares #1463

PeaceByPeace opened this issue Sep 27, 2024 · 13 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@PeaceByPeace
Copy link

PeaceByPeace commented Sep 27, 2024

I have an issue and don't know to what it is related. The device is shown and connected but action status always stays the same no matter what I press(singe, double or hold actions doesn't appear in logs). What's more interesting when I press the botton it resets the counter last seen in logs to 1 sec and diagnostic value of bluetooth drops to 1 sec too , so integration has some internal connection going on but nothing works (btw in xiaomi app everything works as expected)
image

@gx19970920
Copy link

You click on this entity to see if there are any 'attributes', and the state change may be in the attributes

@PeaceByPeace
Copy link
Author

PeaceByPeace commented Sep 28, 2024

You click on this entity to see if there are any 'attributes', and the state change may be in the attributes

No, there's no attributes to this sensor which is interesting because vibration sensor has attributes when triggered (which indicates that someting wrong with connection itself) .

image

image

I turn on logging sensor and data is updated when I press the button but no action is being recorded on the side of integration.

image
image

Basically what I'm referring to is that only logging BLE sensor displays history information and action bell displays nothing, so that's the issue.

P.S. btw I tried to reset device and add it to mi home app again a couple times and result is still the same.

Update:

I found out that this button has no key last_report_gateway (I have bluetooth smoke detector which works fine and it has this attribute)

image

Now I have my suspicion on the matter of this key. What's far more interesting is that last seen parametr (which is present both is last_seen and last_report_gw) mac is mac of my xiaomi gateway 2. So basically there's a registration of connection (since last seen is updated as I press the button) but no key last_report_gateway, which is an attribute of timestamp class, maybe something wrong with that. Also "params" key value is empty which doesn't seems right.

@AlexxIT AlexxIT added the question Further information is requested label Oct 1, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 1, 2024

@PeaceByPeace
Copy link
Author

PeaceByPeace commented Oct 3, 2024

I still don't get how documentation would help me understand why action aren't appearing on action bell when I touch ptx button. Also you pointed to ble locks section which has nothing to do with my button but that's ok, maybe I don't understand something here. What I'm struggling to make sense of is if there was an action there should be a trace of it (basically last triggered state in action bell arrtibutes as documentation states) but no, it's nothing.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2024

You just need to learn how to write Hass automations. By states and attributes.

@PeaceByPeace
Copy link
Author

PeaceByPeace commented Oct 7, 2024

I have over 20 automaions but never faced an issue like that. Basically since not a single object(except vibration sensors and button) has this kind of behaviour(I mean action bell), so that's why I'm asking since there's no attributes(except info and friendly name) and state of object, it's just blank

image

And after I press a button nothing had changed, it stays blank (no new attributes appearing). Only thing that changes is BLE sensor, so I'm assuming if issue won't go away I will be forced to use this sensor as indicator to my automation (I don't need a type of press, just fact itself). I still don't get what have I done wrong in that case. Would be much appreciated if you can provide me with detailed answer of what should I do. I rarely post something on internet like this and trying to find answers myself but it's a dead end for me, thank you in advance.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 7, 2024

Please show device diagnostics for your gateway device.

@PeaceByPeace
Copy link
Author

PeaceByPeace commented Oct 8, 2024

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 8, 2024

I think old gateway firmware could be reason of your problem. It can have old BLE format for your model. You needs update it. Or collect debug log, so I can update converter for supporting old format.

@PeaceByPeace
Copy link
Author

PeaceByPeace commented Oct 11, 2024

As far as I can remember my gateway is supported by ingergation(lumi.gateway.mgl03 and 1.5.0_0026 version) and also wanted to point out that in native mi Home no issue whatsoever. What about BLE format? How can I update it? I will collect debug log but later (have no access to device at the moment). Wrapping up wanted to ask: there's a command select menu in diagnostic part of gateway integration which indicated I can update my gateway to a newer version, so I wonder, are there some issues regarding an update from 1.5.0_0026 to 1.5.5 for instance since I saw "limited support" because of the key. I'm asking because maybe there's something essentially broken in this version.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 11, 2024

It is very important to securely save the key before upgrading. Because it will be difficult to retrieve it after the upgrade.
Some info about old BLE format you can read here AlexxIT/Blog#20

@PeaceByPeace
Copy link
Author

@AlexxIT AlexxIT added enhancement New feature or request and removed question Further information is requested labels Oct 20, 2024
@AlexxIT AlexxIT self-assigned this Oct 20, 2024
@AlexxIT AlexxIT changed the title PTX BLE Wireless Switch 090615.remote.btsw1 recognized but no action is shown Add support 090615.remote.btsw1 on old gateway firwares Oct 20, 2024
@AlexxIT AlexxIT changed the title Add support 090615.remote.btsw1 on old gateway firwares Add support 090615.remote.btsw1 on old gateway firmwares Oct 20, 2024
@AlexxIT AlexxIT added this to the v4.0.7 milestone Oct 20, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 20, 2024

You can check latest master version

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

No branches or pull requests

3 participants