# Set Input Control dynamic default value from device tag

**URL:** <https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378>\
**Category:** Feature Request\
**Created:** [December 26, 2018, 10:12pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378 "2018-12-26T22:12:27Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![WoobaGooba](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/woobagooba/32/507_2.png) [@WoobaGooba](https://forums.losant.com/u/WoobaGooba)\
**Post date:** [December 26, 2018, 10:12pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/1 "2018-12-26T22:12:27Z")

</div>

Here is the control screen capture …

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/e3bad33d8342aa6b671241568ede72f896d481aa.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [December 28, 2018, 5:18am UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/2 "2018-12-28T05:18:56Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![WoobaGooba](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/woobagooba/32/507_2.png) [@WoobaGooba](https://forums.losant.com/u/WoobaGooba)\
**Post date:** [December 28, 2018, 1:30pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/3 "2018-12-28T13:30:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [December 28, 2018, 2:41pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/4 "2018-12-28T14:41:01Z")

</div>

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](https://docs.losant.com/dashboards/input-controls/#button-triggers), you are really either sending a [device command](https://docs.losant.com/devices/commands/) or triggering a [workflow virtual button](https://docs.losant.com/workflows/triggers/virtual-button/).

Does that make sense?

---

<div class="post-metadata">

**Author:** ![WoobaGooba](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/woobagooba/32/507_2.png) [@WoobaGooba](https://forums.losant.com/u/WoobaGooba)\
**Post date:** [December 28, 2018, 10:43pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/5 "2018-12-28T22:43:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![WoobaGooba](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/woobagooba/32/507_2.png) [@WoobaGooba](https://forums.losant.com/u/WoobaGooba)\
**Post date:** [January 9, 2019, 12:44am UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/6 "2019-01-09T00:44:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![WoobaGooba](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/woobagooba/32/507_2.png) [@WoobaGooba](https://forums.losant.com/u/WoobaGooba)\
**Post date:** [January 19, 2019, 1:53pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/7 "2019-01-19T13:53:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [January 19, 2019, 11:02pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/8 "2019-01-19T23:02:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![WoobaGooba](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/woobagooba/32/507_2.png) [@WoobaGooba](https://forums.losant.com/u/WoobaGooba)\
**Post date:** [January 21, 2019, 7:26pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/9 "2019-01-21T19:26:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ChrisGM](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@ChrisGM](https://forums.losant.com/u/ChrisGM)\
**Post date:** [February 28, 2022, 2:22pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/10 "2022-02-28T14:22:29Z")

</div>

Hi @Brandon_Cannaday,

I’m looking at this same issue currently.

Is there a solution to using device Tags in the input block?  
Or is writing these to attributes the best current workaround?

Many thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [February 28, 2022, 2:40pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/11 "2022-02-28T14:40:39Z")

</div>

Hi @ChrisGM,

You are correct, using attributes is the best current workaround as this ticket is still open.

I will, though, add your +1 to this ticket and keep you updated with any information I learn about it.

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Sunday\_Ajiroghene](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sunday_ajiroghene/32/4915_2.png) [@Sunday\_Ajiroghene](https://forums.losant.com/u/Sunday_Ajiroghene)\
**Post date:** [March 28, 2022, 8:32am UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/12 "2022-03-28T08:32:17Z")

</div>

Hello,

Has anyone integrated max30100 sensor to losant, I am having issues with uploading to the losant dashboard.

---

<div class="post-metadata">

**Author:** ![Sunday\_Ajiroghene](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sunday_ajiroghene/32/4915_2.png) [@Sunday\_Ajiroghene](https://forums.losant.com/u/Sunday_Ajiroghene)\
**Post date:** [March 28, 2022, 8:34am UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/13 "2022-03-28T08:34:36Z")

</div>

Hello,

This max30100 sensor is having some bugs uploading its data to losant dashboard.

This happens with the device.connect() method.

I am using arduino idea for prototyping. Can you assist me?

Warmest regards,

Sunny

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [March 28, 2022, 1:28pm UTC](https://forums.losant.com/t/set-input-control-dynamic-default-value-from-device-tag/1378/14 "2022-03-28T13:28:13Z")

</div>

Hi @Sunday_Ajiroghene,

I replied here: [Max30100 sensor not reporting to losant - #2 by Heath](https://forums.losant.com/t/max30100-sensor-not-reporting-to-losant/4426/2)

Let’s continue the discussion in that thread.

Thank you,  
Heath
