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

feat(fan): added support for gorilla fan v2 #1988

Merged
merged 6 commits into from
Jun 26, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions custom_components/tuya_local/devices/gorilla_fan_v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Gorilla Fan V2
Copy link
Owner

Choose a reason for hiding this comment

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

Preferably there should be a products section here, with product id and name (with branding), and the top level name should be generic (Ceiling fan, for example)

Copy link
Owner

Choose a reason for hiding this comment

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

I see from #1971 that the brand is Atomberg, and the product name is Gorilla. The file naming and the name in the products section should reflect this. I'm not sure whether the V2 is part of the product name, or it is a misunderstanding that whatever config you originally installed this as is "V1" (but there is no atomberg or gorilla config, so there is no need to use v2 here as disambiguation if it is not part of the actual product name).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The fan in question is from Atomberg and is referred to as the Renesa fan. However, this name is not present in any of our systems. In both the Tuya Dashboard and the Smart Life App, it is listed as the Gorilla Fan V2. Therefore, I used this name for consistency.

Copy link
Owner

Choose a reason for hiding this comment

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

What about the product id? If you cannot get it from the cloud, it is also possible to read from python -m tinytuya scan

primary_entity:
entity: fan
dps:
- id: 1
type: boolean
name: switch
- id: 3
type: integer
name: speed
range:
min: 1
max: 5

secondary_entities:
- entity: light
translation_key: nightlight
dps:
- id: 15
type: boolean
name: switch
- entity: switch
name: Boost
aravindjaimon marked this conversation as resolved.
Show resolved Hide resolved
icon: mdi:car-turbocharger
dps:
- id: 115
type: boolean
name: switch
- entity: switch
name: Sleep
icon: mdi:sleep
dps:
- id: 113
type: boolean
name: switch
- entity: number
translation_key: timer
aravindjaimon marked this conversation as resolved.
Show resolved Hide resolved
category: config
dps:
- id: 102
type: integer
name: value
unit: min
range:
min: 0
max: 360