def prefHelp(){
log.info "--this is what setting two is all about..."
log.trace "-setting 2:"
log.info "--this is what setting one is all about..."
log.trace "-setting 1:"
log.warn "Preference help"
}
I'm assuming it's one of my capabilities, but without documentation I have no idea what capabilities are available on Hubitat, and which ones I should remove / tweak when porting from ST??
I checked the documentation in smartthings. That’s the go-to for commands and capabilities, until something more thorough is created locally, but there’s nothing listed. ^.^ So I have no idea.
You did a great job fitting all those settings into enum fields, btw.
As long as you’re having fun. I’m hoping to figure out how to parse hex strings to enable local control of my thermostats at some point… I’m currently using a web login for control because that’s the driver that they supplied and I just ported the base code and added a few features.
This can be called by apps like Rule Machine / webCoRE to enable remote alteration of specific parameter values.
I haven't found a way to make values sent appear as new values displayed in the driver preference section though... it only sends to the device itself. So if I remotely change a value using an app, it's not reflected on the device page. (this is not possible on ST either btw).
Can you force a device refresh that will pull a configuration report that will update the parameter values? I'm speaking completely in theory here because I don't really know what's possible with most devices.
You can query the device for current parameter values, and pass those values to the logs… but I have no idea how to pass the values so they display in the correct preference ‘tile’… I’d be very surprised if it were possible but also very happy if proven wrong!
If you are storing the value in current state it you should be able to do a sendEvent to update the value…unless I’m completely misunderstanding what you are trying to do…which is likely
I just re-read your previous posts and realized you are trying to update the values that show in the preference input boxes and not the state value. Ignore my previous bumblings.
Manually updating values of ST device handler preference settings is extremely limited. Only device.updateSetting("settingName", value) works in ST, and only with certain value types, and only if in the same execution of code after a user has just saved settings.
I think that call might have worked in HE in my early testing when I was porting the Xiaomi Zigbee device drivers… Would have to play with it again to be sure.
Send event actually creates an event that is submitted to the event handler as well as written and saved in the events db, state is a much better choice for this type of thing.