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>
This commit is contained in:
parent
1caf5ff547
commit
8b85ff1db5
@ -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