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_support(Sber): add SBDV-00154 #7446

Merged
merged 1 commit into from
Apr 27, 2024
Merged

Conversation

mrskycriper
Copy link
Contributor

@mrskycriper mrskycriper commented Apr 26, 2024

@mrskycriper mrskycriper marked this pull request as draft April 26, 2024 18:17
@mrskycriper mrskycriper marked this pull request as ready for review April 26, 2024 18:36
@@ -53,7 +53,17 @@ const definitions: Definition[] = [
battery({voltage: true, voltageReporting: true}),
],
},
// Sber SBDV-00154 Smart leak sensor (fingerprint unknown)
{
fingerprint: [{modelID: 'TS0207', manufacturerName: '_TZ3000_c8bqthpo'}],
Copy link
Owner

Choose a reason for hiding this comment

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

Can this be merged with TS0207_water_leak_detector? (and add it as a tuya.whitelabel there)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really like the whole concept of putting branded Tuya devices in tuya.ts as whitelabes. Especially when they are distinctly marketed with their own ecosystem only. This makes it harder to maintain as you have to search for a specific one in the sea of others

Copy link
Owner

Choose a reason for hiding this comment

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

This makes it harder to maintain as you have to search for a specific one in the sea of others

Why do you think this is the case? I want to prevent that we have the same code duplicated a lot of times for the same device (TS0207), otherwise we have to add every whitelabel as a separate defintion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then I'd have to delete sber.ts and move everything into tuya.ts. There are a lot of branded Tuya devices that have their own vendor files as well. I understand that this is code duplication, but a necessary one for more coherent grouping by vendor. Also, since Sber got their Tuya license revoked, it is very much possible that they will release non Tuya based devices in the future. So grouping them in a vendor file seems more logical that splitting up.

Copy link
Owner

Choose a reason for hiding this comment

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

Then let's make an exception for this one. But I prefer to have whitelabels in tuya.ts to prevent a lot of code duplication.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then let's make an exception for this one. But I prefer to have whitelabels in tuya.ts to prevent a lot of code duplication.

I'll keep this in mind, thanks!

@Koenkk Koenkk merged commit 4b40445 into Koenkk:master Apr 27, 2024
2 checks passed
@mrskycriper mrskycriper deleted the SBDV-00154 branch April 27, 2024 07:22
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.

None yet

2 participants