Is there a way to update a preference setting if the device phone app updates the corresponding preference ?
EG; Original setting was 50 but you change that in the phone app and even though the current states reflects that change the preference one isn't updated.
I want to update the later to what the current state shows.
So phone app changes MaxPower to 50 and the Current States reflect that but Preference setting does not, can the preference "input name: maxpower" be updated via groovy code or does this still have to be done manually?