“locked” and “unlocked” are state values of the Attribute for Lock (with Commands lock() and unlock().
These are not “preferences” … they are states.
In this particular device handler, I created a lock preference for the thermostat keypad lock feature.
I do not want to create a tile for it, since it is considered an “advanced feature”.
I do understand that I could create a tile for it, but I would prefer not.
I will use another example:
The thermostat can display the temperature on its LCD in Celsius or Fahrenheit.
This setting can modified locally on the thermostat and also in the preference section in my device handler.
If I change it from °C to °F from the device handler, the thermostat changes its display format.
If I change the setting locally on the thermostat, I would like the device handler to update the preference section to the new display format.
Once again, I know that I could set another tile to control the unit format, but since it is unlikely that this setting will be ever changed again, I would prefer to have it located in the preference section.
My question is simple: Is there any way to have settings defined in the preferences section modified by a message received from the device?