Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
Changes needed for new ch savePreset to show up and work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skinah committed Jul 6, 2020
1 parent 71f5c65 commit b0a153c
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Dimmer XmasTreeDimmer "level" {channel="wled:wled:001:0eb121:colour"}
Number XmasTreeFX "FX" <text> {channel="wled:wled:001:0eb121:fx"}
Number XmasTreePalette "Palette" <colorwheel> {channel="wled:wled:001:0eb121:palettes"}
Number XmasTreePresets "Preset" <text> {channel="wled:wled:001:0eb121:presets"}
Number XmasTreesavePreset "Save Preset" <text> {channel="wled:wled:001:0eb121:savePreset"}
Number XmasTreeSavePreset "Save Preset" <text> {channel="wled:wled:001:0eb121:savePreset"}
Dimmer XmasTreeSpeed "FX Speed" <time> {channel="wled:wled:001:0eb121:speed"}
Dimmer XmasTreeIntensity "FX Intensity" {channel="wled:wled:001:0eb121:intensity"}
Switch XmasTreePresetCycle "presetCycle" <time> {channel="wled:wled:001:0eb121:presetCycle"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class WLedBindingConstants {
public static final String CHANNEL_COLOUR = "colour";
public static final String CHANNEL_PALETTES = "palettes";
public static final String CHANNEL_PRESETS = "presets";
public static final String CHANNEL_SAVE_PRESETS = "savePresets";
public static final String CHANNEL_SAVE_PRESET = "savePreset";
public static final String CHANNEL_PRESET_DURATION = "presetDuration";
public static final String CHANNEL_PRESET_TRANS_TIME = "presetTransformTime";
public static final String CHANNEL_PRESET_CYCLE = "presetCycle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
case CHANNEL_PRESETS:
bridgeHandler.queueToSendMQTT(topic + "/api", "PL=" + command.toString());
break;
case CHANNEL_SAVE_PRESETS:
case CHANNEL_SAVE_PRESET:
bridgeHandler.queueToSendMQTT(topic + "/api", "PS=" + command.toString());
break;
case CHANNEL_PRESET_DURATION:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/ESH-INF/thing/thing-types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<channel id="speed" typeId="speed"/>
<channel id="intensity" typeId="intensity"/>
<channel id="sleep" typeId="sleep"/>
<channel id="savePreset" typeId="savePreset"/>
</channels>
</thing-type>

Expand Down
1 change: 1 addition & 0 deletions target/classes/ESH-INF/thing/thing-types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<channel id="speed" typeId="speed"/>
<channel id="intensity" typeId="intensity"/>
<channel id="sleep" typeId="sleep"/>
<channel id="savePreset" typeId="savePreset"/>
</channels>
</thing-type>

Expand Down
4 changes: 2 additions & 2 deletions target/classes/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Automatic-Module-Name: org.openhab.binding.wled
Bnd-LastModified: 1594039070194
Bnd-LastModified: 1594040970297
Bundle-Description: This project contains the official add-ons of open
HAB
Bundle-Developers: openhab;email="[email protected]";name=openHAB;organ
Expand All @@ -20,7 +20,7 @@ Bundle-SCM: url="https://github.com/openhab/openhab-addons/org.openhab
tor.bundles/org.openhab.binding.wled",tag=HEAD
Bundle-SymbolicName: org.openhab.binding.wled
Bundle-Vendor: openHAB.org
Bundle-Version: 2.5.4.202007061237
Bundle-Version: 2.5.4.202007061309
Created-By: 1.8.0_231 (Oracle Corporation)
Import-Package: org.eclipse.smarthome.config.core,org.eclipse.smarthom
e.config.discovery,org.eclipse.smarthome.core.library.types,org.eclip
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Created by Apache Maven
#Created by Apache Maven 3.6.3
version=2.5.4-SNAPSHOT
groupId=org.openhab.addons.bundles
artifactId=org.openhab.binding.wled

0 comments on commit b0a153c

Please sign in to comment.