03-06-2023 06:53 PM
Sync response:
device.set("id",devicedto.getThingName());
device.set("type","action.devices.types.THERMOSTAT");
List<String> traits = new ArrayList<>();
traits.add("action.devices.traits.TemperatureSetting");
// traits.add("action.devices.traits.TemperatureControl");
device.set("traits",traits);
device.set("willReportState",true);
// device.set("temperatureStepCelsius",1);//
HashMap<String,String> name = new HashMap<String,String>();
name.put("name",devicedto.getDeviceName());
device.set("name",name);
HashMap<String,Object> attributes = new HashMap<String,Object>();
List<String> attr = new ArrayList<>();
attr.add("heat");
attr.add("cool");
attr.add("off");
attr.add("eco");
attributes.put("availableThermostatModes",attr);
attributes.put("thermostatTemperatureUnit","C");//
HashMap<String,Object> range = new HashMap<String,Object>();
range.put("minThresholdCelsius",9.5);//
range.put("maxThresholdCelsius",32.5);//
attributes.put("thermostatTemperatureRange",range);
// attributes.put("commandOnlyTemperatureSetting",true);
device.set("attributes",attributes);
why can't show the temperature controlled;
Answered! Go to the Recommended Answer.
03-22-2023 09:04 AM
You can try controlling the temperature using the slider knob on the UI . If you don't see the temperature changing on the UI I would recommend killing the app and again restarting the app.
03-08-2023 12:11 AM
To the left of the B in Bathroom. Underneath it on the slider.
03-22-2023 09:04 AM
You can try controlling the temperature using the slider knob on the UI . If you don't see the temperature changing on the UI I would recommend killing the app and again restarting the app.