//TEMPERATURE
-def getTempSensorsStatus() {
- def device = temperature_sensors.find { it.id == params.id }
- if (!device) {
- httpError(404, "Device not found")
- } else {
- def bat = getBatteryStatus(device.id)
- def scale = [Scale: location.temperatureScale]
- return [Device_state: device.currentValue('temperature')] + scale + bat
- }
-}
-
def getTempSensorsStatus(id) {
def device = temperature_sensors.find { it.id == id }
if (!device) {