Skip to content

Commit 27daeb6

Browse files
committed
[fineoffsetweatherstation] Add support for WS85 sensor
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
1 parent 9c123ae commit 27daeb6

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

bundles/org.openhab.binding.fineoffsetweatherstation/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ If you have any issues or feedback, please feel free to [get in touch via the co
6868
- WH68 - 4-in-1 weather station - Solar-powered sensor for wind speed & direction, solar radiation & light
6969
- WH80 - 6-in-1 weather station - Ultrasonic sensor for wind speed & direction, solar radiation & light, temperature & humidity
7070
- WH90 - 7-in-1 weather station - Ultrasonic sensor for wind speed & direction, solar radiation & light, temperature, humidity and haptic rainfall Sensor
71+
- WS85 - 2-in-1 Piezoelectric rain gauge, ultrasonic anemometer
7172

7273
### Unsupported Devices
7374

bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/domain/Sensor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* The Sensors supported by the gateway.
2626
*
2727
* @author Andreas Berger - Initial contribution
28+
* @author Giovanni Fabiani - Add support for WS85 sensor
2829
*/
2930
@NonNullByDefault
3031
public enum Sensor {
@@ -43,7 +44,8 @@ public enum Sensor {
4344
WH65(LOW_HIGH),
4445
WH68(VOLTAGE_FINE_STEPS),
4546
WH80(VOLTAGE_FINE_STEPS),
46-
WH90(VOLTAGE_FINE_STEPS);
47+
WH90(VOLTAGE_FINE_STEPS),
48+
WS85(LOW_HIGH);
4749

4850
private final BatteryStatus.Type batteryStatusTpe;
4951

bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/domain/SensorGatewayBinding.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* The binding of a sensor to the gateway.
2626
*
2727
* @author Andreas Berger - Initial contribution
28+
* @author Giovanni Fabiani - Add support for WS85 sensor
2829
*/
2930
@NonNullByDefault
3031
public enum SensorGatewayBinding {
@@ -81,7 +82,8 @@ public enum SensorGatewayBinding {
8182
WH35_CH6((byte) 45, Sensor.WH35, 6),
8283
WH35_CH7((byte) 46, Sensor.WH35, 7),
8384
WH35_CH8((byte) 47, Sensor.WH35, 8),
84-
WH90((byte) 48, Sensor.WH90, null);
85+
WH90((byte) 48, Sensor.WH90, null),
86+
WS85((byte) 49, Sensor.WS85, null);
8587

8688
private static final Map<Byte, List<SensorGatewayBinding>> SENSOR_LOOKUP = new HashMap<>();
8789

0 commit comments

Comments
 (0)