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

Duplicate SOMRIG devices created during import #24

Closed
bjorncs opened this issue Mar 29, 2024 · 8 comments
Closed

Duplicate SOMRIG devices created during import #24

bjorncs opened this issue Mar 29, 2024 · 8 comments
Assignees

Comments

@bjorncs
Copy link
Contributor

bjorncs commented Mar 29, 2024

I have 3 SOMRIG button devices in my smart home setup. During the inital setup I've ended up with 6 devices in total in HA. The duplicates are all named IKEA Dirigera Hub : 10.0.0.3 and do not have any entities.

Screenshot 2024-03-29 at 19 36 49

dirigera-devices.json

@sanjoyg
Copy link
Owner

sanjoyg commented Apr 2, 2024

Can you check with the latest release again.

@bjorncs
Copy link
Contributor Author

bjorncs commented Apr 2, 2024

Duplicates still there with 1.3.5.1. I removed the devices and re-paired with Dirigera. The duplicates reappeared once again.

@sanjoyg
Copy link
Owner

sanjoyg commented Apr 10, 2024

I got some time to look at the JSON. The hub returns two devices with different id but same serial number.
For example the first SOMRIG with name EntranceButton has two entries with almost same id except _1 and _2 at end. Same serial number but different attribute "switchLabel".

In one case the attribute value is "Shortcut 1" and other has "Shortcut 2"

Can you tell me how this is related to the physical device as I dont have one

@bjorncs
Copy link
Contributor Author

bjorncs commented Apr 10, 2024

The SOMRIG remote control consist of two buttons, each button supports single/double/long click as separate triggers.

After investigating the scene configuration dump I created fromthe https://github.com/Leggin/dirigera library it's clear that the two "devices" actually represents the two buttons of a single remote. The devices having suffix _1 represents the top button (the one with a single dot imprinted), while _2 represents the lower button.

The latter always has an empty customName and missing the attributes batteryPercentage and room. Otherwise identical.

@sanjoyg
Copy link
Owner

sanjoyg commented Apr 13, 2024

Closing this Issue, we shall track with the issue #29

@sanjoyg sanjoyg closed this as completed Apr 13, 2024
@bjorncs
Copy link
Contributor Author

bjorncs commented Apr 13, 2024

Not sure how this relates to #29. I'll working a on contribution that will remove the duplicate devices.

@sanjoyg sanjoyg reopened this Apr 13, 2024
@sanjoyg
Copy link
Owner

sanjoyg commented Apr 13, 2024

My bad, will get to fix this once we fix the empty scene creation that @slajob is working on.

@bjorncs
Copy link
Contributor Author

bjorncs commented Apr 13, 2024

I drafted #33. @slajob will hopefully be able to reuse most of the additional code introduced in his solution.

@bjorncs bjorncs closed this as completed Apr 20, 2024
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