Skip to content

Conversation

MWierzbinskaS
Copy link
Contributor

@MWierzbinskaS MWierzbinskaS commented Oct 22, 2020

@SmartThingsCommunity/srpol-pe-team

@greens could you please take a look at the code?

@MWierzbinskaS MWierzbinskaS changed the title [WWST7126] Fingerprint for Somfy Situo 1 [WWST-7126] Fingerprint for Somfy Situo 1 Oct 22, 2020
Comment on lines 369 to 370
private boolean isSomfySituo() {
device.getDataValue("model") == "Situo 4 Zigbee"
device.getDataValue("model") == "Situo 4 Zigbee" || device.getDataValue("model") == "Situo 1 Zigbee"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to just refactor this to isSomfy and just check the manufacturer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose naming the function isSomfy or leaving as isSomfySituo is fine, as they are both accurate.

fingerprint manufacturer: "IKEA of Sweden", model: "TRADFRI open/close remote", deviceJoinName: "IKEA Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-IKEA_TRADFRI_open/close_remote" // raw description 01 0104 0203 01 07 0000 0001 0003 0009 0020 1000 FC7C 07 0003 0004 0006 0008 0019 0102 1000 //IKEA TRÅDFRI Open/Close Remote
fingerprint manufacturer: "KE", model: "TRADFRI open/close remote", deviceJoinName: "IKEA Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-IKEA_TRADFRI_open/close_remote" // raw description 01 0104 0203 01 07 0000 0001 0003 0009 0020 1000 FC7C 07 0003 0004 0006 0008 0019 0102 1000 //IKEA TRÅDFRI Open/Close Remote
fingerprint manufacturer: "SOMFY", model: "Situo 4 Zigbee", deviceJoinName: "SOMFY Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-Somfy_open/close_remote" // raw description 01 0104 0203 00 02 0000 0003 04 0003 0005 0006 0102
fingerprint manufacturer: "SOMFY", model: "Situo 1 Zigbee", deviceJoinName: "SOMFY Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-Somfy_open/close_remote" // raw description 01 0104 0203 00 02 0000 0003 04 0003 0005 0006 0102
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the difference between 4 and 1? Is there any?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are very similar devices. I think that here you can find good explanation about differences https://www.screeninnovations.com/accessories/situo-remote-4-ch/

@greens greens merged commit 9df93fe into SmartThingsCommunity:master Oct 26, 2020
shinasys pushed a commit to shinasys/SmartThingsPublic that referenced this pull request Apr 29, 2021
* [WWST7126] Fingerprint for Somfy Situo 1

* shortened checking if is somfy situo
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

Successfully merging this pull request may close these issues.

3 participants