-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local config instead of lightmanagers config - part 1
- Loading branch information
Showing
35 changed files
with
3,631 additions
and
1,613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...kotlin/de/visualdigits/kotlin/klanglicht/hardware/lightmanager/model/lm/LMActionHybrid.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm | ||
|
||
class LMActionHybrid( | ||
comment: String? = null, | ||
val ids: String? = null, | ||
val hexColors: String? = null, | ||
val gains: String? = null, | ||
) : LMAction(comment) { | ||
|
||
override fun toString(): String { | ||
return "[LMAir] $comment: ids=$ids hexColors=$hexColors" | ||
} | ||
|
||
override fun url(): String = "/v1/scenes/json/hybrid?ids=$ids&hexColors=$hexColors&gains=$gains&" | ||
} | ||
|
14 changes: 14 additions & 0 deletions
14
.../kotlin/de/visualdigits/kotlin/klanglicht/hardware/lightmanager/model/lm/LMActionLmAir.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm | ||
|
||
class LMActionLmAir( | ||
comment: String? = null, | ||
val sceneIndex: Int? = null, | ||
) : LMAction(comment) { | ||
|
||
override fun toString(): String { | ||
return "[LMAir] $comment: $sceneIndex" | ||
} | ||
|
||
override fun url(): String = "/v1/scenes/json/lmair?sceneIndex=$sceneIndex&" | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
...visualdigits/kotlin/klanglicht/hardware/lightmanager/model/lm/LMActionLmYamahaAvantage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm | ||
|
||
class LMActionLmYamahaAvantage( | ||
comment: String? = null, | ||
val command: String? = null, | ||
val program: String? = null, | ||
) : LMAction(comment) { | ||
|
||
override fun toString(): String { | ||
return "[YamahaAvantage] $comment: command=$command program=$program" | ||
} | ||
|
||
override fun url(): String = "/v1/scenes/json/yamahaAvantage?command=$command&program=$program&" | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
...kotlin/de/visualdigits/kotlin/klanglicht/hardware/lightmanager/model/lm/LMActionShelly.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package de.visualdigits.kotlin.klanglicht.hardware.lightmanager.model.lm | ||
|
||
class LMActionShelly( | ||
comment: String? = null, | ||
val ids: String? = null, | ||
val turnOn: Boolean?= null | ||
) : LMAction(comment) { | ||
|
||
override fun toString(): String { | ||
return "[LMAir] $comment: ids=$ids turnOn=$turnOn" | ||
} | ||
|
||
override fun url(): String = "/v1/scenes/json/shelly?ids=$ids&turnOn=$turnOn&" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.