Set Input Control dynamic default value from device tag


#1

Here is the control screen capture …

I would like to be pulling the default value from a device tag, which is subsequently set to the new tag value in the Virtual Button triggered workflow using the Device: Update node (this node already accommodates both attributes and tags).

Thanks


#2

You’re definitely not the first to ask for this functionality and it is already a ticket. It looks like you’re using the control to update a set point, which is then stored on a device tag. That use case makes a lot of sense!


#3

Thank you Brandon. User adjust-ability of device configuration (setpoints etc implemented with device tags) is exactly the use case.

Conversely … it is not clear to me how an input control to change the value of a device attribute (state) would be useful for anything but debugging?


#4

It’s less so “Use this control to change the state value” than it is “Use this control to turn the lights on - because the block indicates they are currently off - which in turn will cause the state value to change from off to on.” Because when you push the button, you are really either sending a device command or triggering a workflow virtual button.

Does that make sense?


#5

Thanks Dylan. IIRC my views are aligned with typical IETF practices. Turning device behavior on or off … that is configuration and I am thinking device tag for that. Attributes align with the IETF notion for status reporting of operational data from the device.


#6

I’ve got a set of new-in-box cowbells I can offer as reward for pushing this feature to the top of your pile.


Retrieve value from slider
#7

I’m considering a work-around until you are able to address this ticket. If I switch these “configuration” tags and associated workflow logic over to device attributes, does that mean these seldom changing configuration values (now attributes) will be sucking up space in your time series database?


#8

Attributes are a perfectly good workaround. I don’t see any concern over using up time-series storage for these.


#9

And … almost.

I added “mirror” attributes into which the actual tag values are copied when Device State is updated. The specific reason for that being to allow the Input Control dynamic values to initialize from the tag values.

The Input Control does not seem to be updating properly. I have a Device List which links a dashboard with context for a specific device. The dashboard (couple dozen blocks) displays properly for the specific device context EXCEPT the Input Control dynamic values. Only after I do a manual browser reload of the entire dashboard page do the Input Control dynamic values display properly for the specific device. Until I do that, it is either displaying the defaults or (worse) the values from the previously displayed device but with the correctly displayed device name in the header (pulled from the context).

I am also seeing spaces being injected at the front of dynamic control string values.