Skip to content

Commit

Permalink
Merge pull request #1395 from SmartThingsCommunity/feat/new-device-types
Browse files Browse the repository at this point in the history
  • Loading branch information
dljsjr authored May 30, 2024
2 parents 6568894 + 60a7e31 commit 374ccd0
Show file tree
Hide file tree
Showing 44 changed files with 5,500 additions and 2,923 deletions.
30 changes: 30 additions & 0 deletions drivers/SmartThings/philips-hue/profiles/4-button-remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 4-button-remote
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
14 changes: 14 additions & 0 deletions drivers/SmartThings/philips-hue/profiles/contact-sensor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: contact-sensor
components:
- id: main
capabilities:
- id: contactSensor
version: 1
- id: tamperAlert
version: 1
- id: battery
version: 1
- id: refresh
version: 1
categories:
- name: ContactSensor
16 changes: 16 additions & 0 deletions drivers/SmartThings/philips-hue/profiles/motion-sensor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: motion-sensor
components:
- id: main
capabilities:
- id: motionSensor
version: 1
- id: illuminanceMeasurement
version: 1
- id: temperatureMeasurement
version: 1
- id: battery
version: 1
- id: refresh
version: 1
categories:
- name: MotionSensor
12 changes: 12 additions & 0 deletions drivers/SmartThings/philips-hue/profiles/plug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: plug
components:
- id: main
capabilities:
- id: switch
version: 1
- id: samsungim.hueSyncMode
version: 1
- id: refresh
version: 1
categories:
- name: SmartPlug
12 changes: 12 additions & 0 deletions drivers/SmartThings/philips-hue/profiles/single-button.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: single-button
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
version: 1
- id: refresh
version: 1
categories:
- name: Button
18 changes: 18 additions & 0 deletions drivers/SmartThings/philips-hue/profiles/two-button.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: two-button
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
9 changes: 9 additions & 0 deletions drivers/SmartThings/philips-hue/src/consts.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local Consts = {}

--- minimum colortemp value from Hue
Consts.DEFAULT_MIREK = 153
Consts.MIN_TEMP_KELVIN_COLOR_AMBIANCE = 2000
Consts.MIN_TEMP_KELVIN_WHITE_AMBIANCE = 2200
Consts.MAX_TEMP_KELVIN = 6500

return Consts
Loading

0 comments on commit 374ccd0

Please sign in to comment.