diff --git a/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkBindingConstants.java b/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkBindingConstants.java index 35a43697441f0..c88514eb0d699 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkBindingConstants.java +++ b/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkBindingConstants.java @@ -174,10 +174,6 @@ public class OmnilinkBindingConstants { public static final String THING_PROPERTIES_NUMBER = "number"; public static final String THING_PROPERTIES_AREA = "area"; public static final String THING_PROPERTIES_AUTO_START = "autostart"; - public static final String THING_PROPERTIES_MODEL_NUMBER = "modelNumber"; - public static final String THING_PROPERTIES_MAJOR_VERSION = "majorVersion"; - public static final String THING_PROPERTIES_MINOR_VERSION = "minorVersion"; - public static final String THING_PROPERTIES_REVISION = "revision"; public static final String THING_PROPERTIES_PHONE_NUMBER = "phoneNumber"; public static final Set SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_OMNI_AREA, diff --git a/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/OmnilinkBridgeHandler.java b/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/OmnilinkBridgeHandler.java index 6230027067ccc..6fbf5b1644d46 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/OmnilinkBridgeHandler.java +++ b/bundles/org.openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/OmnilinkBridgeHandler.java @@ -587,10 +587,11 @@ private void updateBridgeProperties() { try { SystemInformation systemInformation = reqSystemInformation(); Map properties = editProperties(); - properties.put(THING_PROPERTIES_MODEL_NUMBER, Integer.toString(systemInformation.getModel())); - properties.put(THING_PROPERTIES_MAJOR_VERSION, Integer.toString(systemInformation.getMajor())); - properties.put(THING_PROPERTIES_MINOR_VERSION, Integer.toString(systemInformation.getMinor())); - properties.put(THING_PROPERTIES_REVISION, Integer.toString(systemInformation.getRevision())); + properties.put(Thing.PROPERTY_MODEL_ID, Integer.toString(systemInformation.getModel())); + properties.put(Thing.PROPERTY_FIRMWARE_VERSION, + Integer.toString(systemInformation.getMajor()) + "." + + Integer.toString(systemInformation.getMinor()) + "." + + Integer.toString(systemInformation.getRevision())); properties.put(THING_PROPERTIES_PHONE_NUMBER, systemInformation.getPhone()); updateProperties(properties); } catch (OmniInvalidResponseException | OmniUnknownMessageTypeException | BridgeOfflineException e) { diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/i18n/omnilink.properties b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/i18n/omnilink.properties index 5804eef25d5e5..7447554c43ccb 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/i18n/omnilink.properties +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/i18n/omnilink.properties @@ -11,6 +11,12 @@ thing-type.omnilink.audio_source.label = Audio Source thing-type.omnilink.audio_source.description = An audio source configured in the controller. thing-type.omnilink.audio_zone.label = Audio Zone thing-type.omnilink.audio_zone.description = An audio zone configured in the controller. +thing-type.omnilink.audio_zone.channel.zone_control.label = Control +thing-type.omnilink.audio_zone.channel.zone_control.description = Control the audio zone, e.g. start/stop/next/previous. +thing-type.omnilink.audio_zone.channel.zone_mute.label = Audio Zone Mute +thing-type.omnilink.audio_zone.channel.zone_mute.description = Mute status of this audio zone. +thing-type.omnilink.audio_zone.channel.zone_volume.label = Audio Zone Volume +thing-type.omnilink.audio_zone.channel.zone_volume.description = Volume level of this audio zone. thing-type.omnilink.button.label = Button thing-type.omnilink.button.description = A button configured in the controller. thing-type.omnilink.console.label = Console @@ -21,8 +27,14 @@ thing-type.omnilink.controller.channel.beep.label = Beep Consoles thing-type.omnilink.controller.channel.enable_disable_beeper.label = Console Beepers thing-type.omnilink.dimmable.label = Dimmable Unit thing-type.omnilink.dimmable.description = A dimmable unit configured in the controller. +thing-type.omnilink.dimmable.channel.level.label = Dimmable Level +thing-type.omnilink.dimmable.channel.level.description = Increase/Decrease the level of this dimmable unit. +thing-type.omnilink.dimmable.channel.switch.label = Dimmable Switch +thing-type.omnilink.dimmable.channel.switch.description = Turn this dimmable unit on/off. thing-type.omnilink.flag.label = Flag thing-type.omnilink.flag.description = A flag configured in the controller. +thing-type.omnilink.flag.channel.switch.label = Flag Switch +thing-type.omnilink.flag.channel.switch.description = Turn this flag on/off. thing-type.omnilink.humidity_sensor.label = Humidity Sensor thing-type.omnilink.humidity_sensor.description = A humidity sensor configured in the controller. thing-type.omnilink.lock.label = Lock @@ -31,20 +43,38 @@ thing-type.omnilink.lumina_area.label = Lumina Area thing-type.omnilink.lumina_area.description = An Lumina area configured in the controller. thing-type.omnilink.output.label = Voltage Output thing-type.omnilink.output.description = A voltage output configured in the controller. +thing-type.omnilink.output.channel.switch.label = Voltage Output Switch +thing-type.omnilink.output.channel.switch.description = Turn this voltage output on/off. thing-type.omnilink.room.label = Room thing-type.omnilink.room.description = A room configured in the controller. thing-type.omnilink.room.channel.scene_a.label = Scene A +thing-type.omnilink.room.channel.scene_a.description = Turn this scene on/off. thing-type.omnilink.room.channel.scene_b.label = Scene B +thing-type.omnilink.room.channel.scene_b.description = Turn this scene on/off. thing-type.omnilink.room.channel.scene_c.label = Scene C +thing-type.omnilink.room.channel.scene_c.description = Turn this scene on/off. thing-type.omnilink.room.channel.scene_d.label = Scene D +thing-type.omnilink.room.channel.scene_d.description = Turn this scene on/off. +thing-type.omnilink.room.channel.switch.label = Room Switch +thing-type.omnilink.room.channel.switch.description = Turn this room on/off. thing-type.omnilink.temp_sensor.label = Temperature Sensor thing-type.omnilink.temp_sensor.description = A temperature sensor configured in the controller. thing-type.omnilink.thermostat.label = Thermostat thing-type.omnilink.thermostat.description = A thermostat configured in the controller. +thing-type.omnilink.thermostat.channel.outdoor_temperature.label = Outdoor Temperature +thing-type.omnilink.thermostat.channel.outdoor_temperature.description = The current outdoor temperature detected by this thermostat. thing-type.omnilink.unit.label = Unit thing-type.omnilink.unit.description = A basic unit configured in the controller. +thing-type.omnilink.unit.channel.level.label = Unit Level +thing-type.omnilink.unit.channel.level.description = Increase/Decrease the level of this unit. +thing-type.omnilink.unit.channel.switch.label = Unit Switch +thing-type.omnilink.unit.channel.switch.description = Turn this unit on/off. thing-type.omnilink.upb.label = UPB Unit thing-type.omnilink.upb.description = A UPB unit configured in the controller. +thing-type.omnilink.upb.channel.level.label = UPB Level +thing-type.omnilink.upb.channel.level.description = Increase/Decrease the level of this UPB unit. +thing-type.omnilink.upb.channel.switch.label = UPB Switch +thing-type.omnilink.upb.channel.switch.description = Turn this UPB unit on/off. thing-type.omnilink.zone.label = Zone thing-type.omnilink.zone.description = A zone configured in the controller. @@ -111,16 +141,10 @@ channel-type.omnilink.audio_source_polling.label = Audio Source Polling channel-type.omnilink.audio_source_polling.description = Enable or disable polling of this audio source. channel-type.omnilink.audio_source_text.label = Source Data channel-type.omnilink.audio_source_text.description = A line of metadata from this audio source. -channel-type.omnilink.audio_zone_control.label = Control -channel-type.omnilink.audio_zone_control.description = Control the audio zone, e.g. start/stop/next/previous. -channel-type.omnilink.audio_zone_mute.label = Audio Zone Mute -channel-type.omnilink.audio_zone_mute.description = Mute status of this audio zone. channel-type.omnilink.audio_zone_power.label = Audio Zone Power channel-type.omnilink.audio_zone_power.description = Power status of this audio zone. channel-type.omnilink.audio_zone_source.label = Source channel-type.omnilink.audio_zone_source.description = Source for this audio zone. -channel-type.omnilink.audio_zone_volume.label = Audio Zone Volume -channel-type.omnilink.audio_zone_volume.description = Volume level of this audio zone. channel-type.omnilink.battery_event.label = Battery Event channel-type.omnilink.battery_event.description = Event sent when battery trouble conditions are detected. channel-type.omnilink.button_activated.label = Button Activated @@ -146,8 +170,6 @@ channel-type.omnilink.dcm_event.label = DCM Event channel-type.omnilink.dcm_event.description = Event sent when digital communicator trouble conditions are detected. channel-type.omnilink.energy_cost_event.label = Energy Cost Event channel-type.omnilink.energy_cost_event.description = Event sent when the cost of energy changes. -channel-type.omnilink.flag_switch.label = Flag Switch -channel-type.omnilink.flag_switch.description = Turn this flag on/off. channel-type.omnilink.flag_value.label = Flag Value channel-type.omnilink.flag_value.description = Numeric value of this flag. channel-type.omnilink.last_log.label = Last Log Entry @@ -210,10 +232,6 @@ channel-type.omnilink.room_state.state.option.2 = Scene A channel-type.omnilink.room_state.state.option.3 = Scene B channel-type.omnilink.room_state.state.option.4 = Scene C channel-type.omnilink.room_state.state.option.5 = Scene D -channel-type.omnilink.room_switch.label = Switch -channel-type.omnilink.room_switch.description = Turn this room on/off. -channel-type.omnilink.scene_toggle.label = Scene Toggle -channel-type.omnilink.scene_toggle.description = Turn this scene on/off. channel-type.omnilink.sensor_humidity.label = Humidity channel-type.omnilink.sensor_humidity.description = The current relative humidity at this humidity sensor. channel-type.omnilink.sensor_humidity_high_setpoint.label = High SetPoint @@ -255,8 +273,6 @@ channel-type.omnilink.thermostat_humidify_setpoint.label = Humidify SetPoint channel-type.omnilink.thermostat_humidify_setpoint.description = The current low/humidify setpoint for this thermostat. channel-type.omnilink.thermostat_humidity.label = Humidity channel-type.omnilink.thermostat_humidity.description = The relative humidity at this thermostat. -channel-type.omnilink.thermostat_outdoor_temperature.label = Outdoor Temperature -channel-type.omnilink.thermostat_outdoor_temperature.description = The current outdoor temperature detected by this thermostat. channel-type.omnilink.thermostat_status.label = Thermostat Status channel-type.omnilink.thermostat_status.description = The current status of this thermostat. channel-type.omnilink.thermostat_status.state.option.0 = Idle @@ -273,10 +289,6 @@ channel-type.omnilink.thermostat_system_mode.state.option.3 = Auto channel-type.omnilink.thermostat_system_mode.state.option.4 = Emergency heat channel-type.omnilink.thermostat_temperature.label = Temperature channel-type.omnilink.thermostat_temperature.description = The current temperature at this thermostat. -channel-type.omnilink.unit_level.label = Unit Level -channel-type.omnilink.unit_level.description = Increase/Decrease the level of this unit. -channel-type.omnilink.unit_switch.label = Switch -channel-type.omnilink.unit_switch.description = Turn this unit on/off. channel-type.omnilink.upb_link_activated_event.label = UPB Link channel-type.omnilink.upb_link_activated_event.description = Event sent when a UPB link is activated. channel-type.omnilink.upb_link_deactivated_event.label = UPB Link diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/area.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/area.xml index 10475f6362ba0..021e2fd5b89c7 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/area.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/area.xml @@ -31,9 +31,6 @@ - - - number @@ -77,6 +74,9 @@ Indicates if an alarm is active. Alarm + + Alarm + diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-source.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-source.xml index 314ff9c3e8cad..a5f382da6f0d3 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-source.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-source.xml @@ -20,9 +20,6 @@ - - - number diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-zone.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-zone.xml index 27cfce3666f7a..5ed77804db861 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-zone.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/audio-zone.xml @@ -13,10 +13,19 @@ An audio zone configured in the controller. - - + + + Mute status of this audio zone. + + + + Volume level of this audio zone. + - + + + Control the audio zone, e.g. start/stop/next/previous. + @@ -37,21 +46,10 @@ Power status of this audio zone. Switch - - - - Switch - - Mute status of this audio zone. - Switch - - - - Dimmer - - Volume level of this audio zone. - Slider - + + Control + Power + @@ -62,11 +60,4 @@ - - Player - - Control the audio zone, e.g. start/stop/next/previous. - MediaControl - - diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/bridge.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/bridge.xml index fef71b51c5303..6d05fac23a4b1 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/bridge.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/bridge.xml @@ -26,13 +26,6 @@ - - - - - - - network-address diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/button.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/button.xml index 3b5364f1108bb..05ac3f90853b8 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/button.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/button.xml @@ -15,10 +15,6 @@ - - - - number diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/humidity-sensor.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/humidity-sensor.xml index af126b62f839b..8821edb609539 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/humidity-sensor.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/humidity-sensor.xml @@ -16,10 +16,6 @@ - - - - number @@ -35,6 +31,10 @@ The current relative humidity at this humidity sensor. Humidity + + Measurement + Humidity + diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/lock.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/lock.xml index 8364b84914f30..c70d83387164d 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/lock.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/lock.xml @@ -14,10 +14,6 @@ - - - - number @@ -33,6 +29,9 @@ Lock or unlock this lock. Switch + + OpenState + diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/temp-sensor.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/temp-sensor.xml index a7fd4ec8a48a0..81241ca54d18a 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/temp-sensor.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/temp-sensor.xml @@ -16,10 +16,6 @@ - - - - number @@ -35,6 +31,10 @@ The current temperature at this temperature sensor. Temperature + + Measurement + Temperature + diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/thermostat.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/thermostat.xml index 1504f62a19016..93dea7cb2ac56 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/thermostat.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/thermostat.xml @@ -16,7 +16,10 @@ - + + + The current outdoor temperature detected by this thermostat. + @@ -26,10 +29,6 @@ - - - - number @@ -77,14 +76,10 @@ The current temperature at this thermostat. Temperature - - - - - Number:Temperature - - The current outdoor temperature detected by this thermostat. - Temperature + + Measurement + Temperature + @@ -109,6 +104,10 @@ The relative humidity at this thermostat. Humidity + + Measurement + Humidity + diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/unit.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/unit.xml index bc96c6e8f30d9..ff2cf3f15d6ec 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/unit.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/unit.xml @@ -12,8 +12,14 @@ A basic unit configured in the controller. - - + + + Increase/Decrease the level of this unit. + + + + Turn this unit on/off. + @@ -21,10 +27,6 @@ - - - - number @@ -42,8 +44,14 @@ A dimmable unit configured in the controller. - - + + + Increase/Decrease the level of this dimmable unit. + + + + Turn this dimmable unit on/off. + @@ -73,8 +81,14 @@ A UPB unit configured in the controller. - - + + + Increase/Decrease the level of this UPB unit. + + + + Turn this UPB unit on/off. + @@ -106,7 +120,10 @@ A flag configured in the controller. - + + + Turn this flag on/off. + @@ -135,7 +152,10 @@ A voltage output configured in the controller. - + + + Turn this voltage output on/off. + @@ -164,18 +184,25 @@ A room configured in the controller. - - + + + Turn this room on/off. + + + Turn this scene on/off. - + + Turn this scene on/off. - + + Turn this scene on/off. - + + Turn this scene on/off. @@ -193,21 +220,6 @@ - - Dimmer - - Increase/Decrease the level of this unit. - Slider - - - - - Switch - - Turn this unit on/off. - Switch - - Number @@ -268,20 +280,6 @@ - - Switch - - Turn this room on/off. - Switch - - - - Switch - - Turn this scene on/off. - Switch - - Number @@ -307,13 +305,6 @@ - - Switch - - Turn this flag on/off. - Switch - - trigger diff --git a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/zone.xml b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/zone.xml index 48f09b1624104..0833f25624a1b 100644 --- a/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/zone.xml +++ b/bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/zone.xml @@ -19,10 +19,6 @@ - - - - number @@ -38,6 +34,9 @@ Contact state information of this zone. Contact + + OpenState +