From b523c873cc1de005cdda4453fe07378cd799d24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20L=27hopital?= Date: Mon, 16 Nov 2020 21:21:17 +0100 Subject: [PATCH] [VolvoOnCall] SAT corrections and some channels enhancements (#8997) * Sat enhancements and some channels enhancements * Reformating files * Documentation correction Signed-off-by: clinique --- .../org.openhab.binding.volvooncall/README.md | 14 ++--- .../volvooncall/internal/dto/Status.java | 59 +++++++------------ .../internal/dto/TyrePressure.java | 21 +++++-- .../internal/handler/VehicleHandler.java | 22 +++++-- .../handler/VolvoOnCallBridgeHandler.java | 10 ++-- .../OH-INF/i18n/volvooncall_fr.properties | 12 ++-- .../main/resources/OH-INF/thing/vehicle.xml | 58 ++++++++++++------ 7 files changed, 115 insertions(+), 81 deletions(-) diff --git a/bundles/org.openhab.binding.volvooncall/README.md b/bundles/org.openhab.binding.volvooncall/README.md index f2ea6f4c3..23c3b5eaf 100644 --- a/bundles/org.openhab.binding.volvooncall/README.md +++ b/bundles/org.openhab.binding.volvooncall/README.md @@ -73,16 +73,16 @@ Following channels are currently available: | tank#distanceToEmpty | Number:Length | Distance till tank is empty | | | position#location | Location | Location of the car | | | position#locationTimestamp | DateTime | Timestamp of the latest confirmed location | | -| tyrePressure#frontLeftTyre | String | Tyrepressure front left tyre | Normal / LowSoft | -| tyrePressure#frontRightTyr | String | Tyrepressure front right tyre | Normal / LowSoft | -| tyrePressure#rearLeftTyre | String | Tyrepressure rear left tyre | Normal / LowSoft | -| tyrePressure#rearRightTyre | String | Tyrepressure rear right tyre | Normal / LowSoft | +| tyrePressure#frontLeftTyre | Number | Tyrepressure front left tyre | Normal / LowSoft | +| tyrePressure#frontRightTyre | Number | Tyrepressure front right tyre | Normal / LowSoft | +| tyrePressure#rearLeftTyre | Number | Tyrepressure rear left tyre | Normal / LowSoft | +| tyrePressure#rearRightTyre | Number | Tyrepressure rear right tyre | Normal / LowSoft | | other#averageSpeed | Number:Speed | Average speed | | | other#engineRunning | Switch | Is the car engine running | | | other#remoteHeater | Switch | Start the car remote heater | Only if property 'remoteHeater' is true (see thing properties above) | | other#preclimatization | Switch | Start the car preclimatization | Only if property 'preclimatization' is true (see thing properties above) | -| other#brakeFluidLevel | String | Brake fluid level | Normal / Low / VeryLow | -| other#washerFluidLevel | String | Washer fluid level | Normal / Low / VeryLow | +| other#brakeFluidLevel | Number | Brake fluid level | Normal / Low / VeryLow | +| other#washerFluidLevel | Number | Washer fluid level | Normal / Low / VeryLow | | other#serviceWarning | String | Warning if service is needed | | | other#bulbFailure | Switch | ON if at least one bulb is reported as failed | | | battery#batteryLevel | Number:Dimensionless | Battery level | Only for Plugin hybrid / Twin Engine models | @@ -144,7 +144,7 @@ Switch Voc_DoorsCarLocked "Verouillée" (gV Number:Length Voc_Odometer "Kilométrage [%d %unit%]" (gVoc) {channel="volvooncall:vehicle:glh:XC60:odometer#odometer"} Number:Dimensionless Voc_FuelLevel "Fuel Level" (gVoc) {channel="volvooncall:vehicle:glh:XC60:tank#fuelLevel"} Switch Voc_Fuel_Alert "Niveau Carburant" (gVoc) {channel="volvooncall:vehicle:glh:XC60:tank#fuelAlert"} -String Voc_Fluid_Message "Lave Glace" (gVoc) {channel="volvooncall:vehicle:glh:XC60:other#washerFluidLevel"} +Number Voc_Fluid_Message "Lave Glace" (gVoc) {channel="volvooncall:vehicle:glh:XC60:other#washerFluidLevel"} Location Voc_Location "Location" (gVoc) {channel="volvooncall:vehicle:glh:XC60:position#location"} DateTime Voc_Location_LUD "Timestamp [%1$tH:%1$tM]"