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

Adding Support for Inovelli VZM31-SN Blue 2-1 Dimmer Switch #1497

Merged
merged 15 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from 6 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
6 changes: 6 additions & 0 deletions drivers/SmartThings/zigbee-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2263,6 +2263,12 @@ zigbeeManufacturer:
manufacturer: Insta GmbH
model: NEXENTRO Dimming Actuator
deviceProfileName: on-off-level
# Inovelli
- id: "Inovelli/VZM31-SN"
deviceLabel: "Inovelli 2-in-1 Blue Series"
manufacturer: Inovelli
model: VZM31-SN
deviceProfileName: inovelli-vzm31-sn
zigbeeGeneric:
- id: "genericSwitch"
deviceLabel: Zigbee Switch
Expand Down
20 changes: 20 additions & 0 deletions drivers/SmartThings/zigbee-switch/profiles/child-notification.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you rename this to match the other related profiles rgbw-bulb-[min_color_temp]-[max_color_temp].yml and add in the firmwareUpdate capability?

Copy link
Contributor

Choose a reason for hiding this comment

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

you need to git rm this file

Copy link
Author

Choose a reason for hiding this comment

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

K, I deleted it.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: child-notification
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
- id: colorTemperature
version: 1
config:
values:
- key: "colorTemperature.value"
range: [ 2700, 6500 ]
- id: colorControl
version: 1
- id: refresh
version: 1
categories:
- name: Light
269 changes: 269 additions & 0 deletions drivers/SmartThings/zigbee-switch/profiles/inovelli-vzm31-sn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
name: inovelli-vzm31-sn
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
- id: powerMeter
version: 1
- id: energyMeter
version: 1
- id: refresh
version: 1
- id: configuration
version: 1
- id: firmwareUpdate
version: 1
categories:
- name: Switch
- id: button1
label: Down Button
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button2
label: Up Button
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
label: Config Button
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
preferences:
- name: "notificationChild"
title: "Add Child Device - Notification"
description: "Create Separate Child Device for Notification Control"
required: false
preferenceType: boolean
definition:
default: false
- name: "notificationType"
title: "Notification Effect"
description: "This is the notification effect used by the notification child device"
required: false
preferenceType: enumeration
definition:
options:
"255": "Clear"
"1": "Solid"
"2": "Fast Blink"
"3": "Slow Blink"
"4": "Pulse"
"5": "Chase"
"6": "Open/Close"
"7": "Small-to-Big"
"8": "Aurora"
"9": "Slow Falling"
"10": "Medium Falling"
"11": "Fast Falling"
"12": "Slow Rising"
"13": "Medium Rising"
"14": "Fast Rising"
"15": "Medium Blink"
"16": "Slow Chase"
"17": "Fast Chase"
"18": "Fast Siren"
"19": "Slow Siren"
default: 1
- name: "parameter258"
title: "258. Switch Mode"
description: "Use as a Dimmer or an On/Off switch"
required: false
preferenceType: enumeration
definition:
options:
"0": "Dimmer"
"1": "On/Off (default)"
default: 1
- name: "parameter22"
title: "22. Aux Switch Type"
description: "Set the Aux switch type. Smart Bulb Mode does not work in Dumb 3-Way Switch mode."
required: false
preferenceType: enumeration
definition:
options:
"0": "None (default)"
"1": "3-Way Dumb Switch"
"2": "3-Way Aux Switch"
"3": "Full Sine Wave (fw 2.11+)"
default: 0
- name: "parameter52"
title: "52. Smart Bulb Mode"
description: "For use with Smart Bulbs that need constant power and are controlled via commands rather than power. Smart Bulb Mode does not work in Dumb 3-Way Switch mode."
required: false
preferenceType: enumeration
definition:
options:
"0": "Disabled (default)"
"1": "Smart Bulb Mode"
default: 0
- name: "parameter1"
title: "1. Dimming Speed (Remote)"
description: "This changes the speed that the light dims up when controlled from the hub. A setting of '0' turns the light immediately on. Increasing the value slows down the transition speed. Value is multiplied by 100ms.
Default=25 (2500ms or 2.5s)"
required: false
preferenceType: number
definition:
minimum: 0
maximum: 126
default: 25
- name: "parameter2"
title: "2. Dimming Speed (Local)"
description: "This changes the speed that the light dims up when controlled at the switch. A setting of '0' turns the light immediately on. Increasing the value slows down the transition speed. Value is multiplied by 100ms.
(i.e 25 = 2500ms or 2.5s) Default=127 (Sync with parameter 1)"
required: false
preferenceType: number
definition:
minimum: 0
maximum: 127
default: 127
- name: "parameter3"
title: "3. Ramp Rate (Remote)"
description: "This changes the speed that the light turns on when controlled from the hub. A setting of '0' turns the light immediately on. Increasing the value slows down the transition speed. Value is multiplied by 100ms.
(i.e 25 = 2500ms or 2.5s) Default=127 (Sync with parameter 1)"
required: false
preferenceType: number
definition:
minimum: 0
maximum: 127
default: 127
- name: "parameter4"
title: "4. Ramp Rate (Local)"
description: "This changes the speed that the light turns on when controlled at the switch. A setting of '0' turns the light immediately on. Increasing the value slows down the transition speed. Value is multiplied by 100ms.
(i.e 25 = 2500ms or 2.5s) Default=127 (Sync with parameter 3)"
required: false
preferenceType: number
definition:
minimum: 0
maximum: 127
default: 127
Comment on lines +110 to +149
Copy link
Contributor

Choose a reason for hiding this comment

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

One suggestion I would make would just be to unify all 4 of these parameters into 1 that controls the transition speed in all scenarios.

Copy link
Author

Choose a reason for hiding this comment

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

We actually have 8 settings for this functionality so I have already consolidated it somewhat. I was told to try to use the same settings as what is in our red series driver that is already in the repo:





- name: "parameter9"
title: "9. Minimum Level"
description: "The minimum level that the light can be dimmed. Useful when the user has a light that does not turn on or flickers at a lower level."
required: false
preferenceType: number
definition:
minimum: 1
maximum: 99
default: 1
- name: "parameter10"
title: "10. Maximum Level"
description: "The maximum level that the light can be dimmed. Useful when the user wants to limit the maximum brighness."
required: false
preferenceType: number
definition:
minimum: 2
maximum: 100
default: 100
- name: "parameter11"
title: "11. Invert Switch"
description: "Inverts the orientation of the switch. Useful when the switch is installed upside down. Essentially up becomes down and down becomes up."
required: false
preferenceType: enumeration
definition:
options:
"0": "No (default)"
"1": "Yes"
default: 0
- name: "parameter15"
title: "15. Level After Power Restored"
description: "The level the switch will return to when power is restored after power failure.
0=Off
1-100=Set Level
101=Use previous level."
required: false
preferenceType: number
definition:
minimum: 0
maximum: 101
default: 101
- name: "parameter17"
title: "17. Load Level Indicator Timeout"
description: "Shows the level that the load is at for x number of seconds after the load is adjusted and then returns to the Default LED state."
required: false
preferenceType: enumeration
definition:
options:
"0": "Do not display Load Level"
"1": "1 Second"
"2": "2 Seconds"
"3": "3 Seconds"
"4": "4 Seconds"
"5": "5 Seconds"
"6": "6 Seconds"
"7": "7 Seconds"
"8": "8 Seconds"
"9": "9 Seconds"
"10": "10 Seconds"
"11": "Display Load Level with no timeout"
default: 11
- name: "parameter95"
title: "95. LED Indicator Color (w/On)"
description: "Set the color of the Full LED Indicator when the load is on."
required: false
preferenceType: enumeration
definition:
options:
"0": "Red"
"7": "Orange"
"28": "Lemon"
"64": "Lime"
"85": "Green"
"106": "Teal"
"127": "Cyan"
"148": "Aqua"
"170": "Blue (default)"
"190": "Violet"
"212": "Magenta"
"234": "Pink"
"255": "White"
default: 170
- name: "parameter96"
title: "96. LED Indicator Color (w/Off)"
description: "Set the color of the Full LED Indicator when the load is off."
required: false
preferenceType: enumeration
definition:
options:
"0": "Red"
"7": "Orange"
"28": "Lemon"
"64": "Lime"
"85": "Green"
"106": "Teal"
"127": "Cyan"
"148": "Aqua"
"170": "Blue (default)"
"190": "Violet"
"212": "Magenta"
"234": "Pink"
"255": "White"
default: 170
- name: "parameter97"
title: "97. LED Indicator Intensity (w/On)"
description: "Set the intensity of the Full LED Indicator when the load is on."
required: false
preferenceType: number
definition:
minimum: 0
maximum: 100
default: 50
- name: "parameter98"
title: "98. LED Indicator Intensity (w/Off)"
description: "Set the intensity of the Full LED Indicator when the load is off."
required: false
preferenceType: number
definition:
minimum: 0
maximum: 100
default: 5
3 changes: 2 additions & 1 deletion drivers/SmartThings/zigbee-switch/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ local zigbee_switch_driver_template = {
lazy_load_if_possible("ge-link-bulb"),
lazy_load_if_possible("bad_on_off_data_type"),
lazy_load_if_possible("robb"),
lazy_load_if_possible("wallhero")
lazy_load_if_possible("wallhero"),
lazy_load_if_possible("inovelli-vzm31-sn")
},
lifecycle_handlers = {
init = device_init,
Expand Down
Loading