mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Enable use of analogue input with Shelly Plus Add-on (#16744)
Signed-off-by: Fabian Fagerholm <fabbe@paniq.net> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
a0370c4d38
commit
b041511f4c
@ -620,7 +620,11 @@ public class Shelly2ApiClient extends ShellyHttpClient {
|
||||
status.extVoltage = new ShellyExtVoltage(ds.voltmeter100.voltage);
|
||||
}
|
||||
if (ds.input100 != null) {
|
||||
status.extDigitalInput = new ShellyExtDigitalInput(getBool(ds.input100.state));
|
||||
if (ds.input100.state != null) {
|
||||
status.extDigitalInput = new ShellyExtDigitalInput(getBool(ds.input100.state));
|
||||
} else if (ds.input100.percent != null) {
|
||||
status.extAnalogInput = new ShellyExtAnalogInput(getDouble(ds.input100.percent));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user