I’m wondering if it is possible to modify the settings attributes that are defined in the Preferences section (remotely).
Right now, I have the following working:
I configure a setting in the preference section of my device handler and have it sent to my physical device.
Now, I want to do the opposite:
I want to configure the setting on the physical device and have it updated in the preferences section in my device handler
Does anyone know a way of doing this?
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
2
Generally, no. There are architectural and security reasons / limitations.
But explain what you need with a little more detail and perhaps a concrete example, and we might come up with a known or possible workaround.
“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?
Unfortunately the answer is no. The preferences section is part of the metadata of the device handler. The only way to “modify” or interact with the metadata section is via Events and to my knowledge Events can only affect tile behavior.
It really sounds like both of these advanced features would be better served as extra tiles at the bottom of the device handler. Maybe even cordon them off with a blank row of tiles or one long tile with “Advanced Features Below” label.
At least until we get more dynamic device handler options.