]> git.basschouten.com Git - openhab-addons.git/commit
[wled] Abstract json api for better segment support (#11509)
authorMatthew Skinner <matt@pcmus.com>
Sat, 20 Nov 2021 11:41:46 +0000 (22:41 +1100)
committerGitHub <noreply@github.com>
Sat, 20 Nov 2021 11:41:46 +0000 (12:41 +0100)
commitec863117ea61eed0d974872a38217364dfbbbabe
treeae17d9946e01ad278b5e3174d8c6743d92117ce0
parent58f40a5c734a124684b014346e11fb6dcb7b4079
[wled] Abstract json api for better segment support (#11509)

* Change to json for states

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Add 3rd colours.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Segments now mostly work

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* changes to json api fully made

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Mirror and Reverse channels added.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Remove old channels when needed.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Simplify return

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Add support for named presets

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Dont add empty preset 0 to list

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Add preset saving with custom names

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Tidy up

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Rename function for clarity

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Add more channels

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Clean up

Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Fix bugs and update readme for new channels

Signed-off-by: Matthew Skinner <matt@pcmus.com>
15 files changed:
bundles/org.openhab.binding.wled/README.md
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedActions.java
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedBindingConstants.java
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedDiscoveryService.java
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedHandler.java
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedHandlerFactory.java
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedHelper.java
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WledState.java [new file with mode: 0644]
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/api/ApiException.java [new file with mode: 0644]
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/api/WledApi.java [new file with mode: 0644]
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/api/WledApiFactory.java [new file with mode: 0644]
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/api/WledApiV0110.java [new file with mode: 0644]
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/api/WledApiV0130.java [new file with mode: 0644]
bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/api/WledApiV084.java [new file with mode: 0644]
bundles/org.openhab.binding.wled/src/main/resources/OH-INF/thing/thing-types.xml