# \#device-state

**URL:** https://forums.losant.com/tag/device-state/99.md

[Latest](https://forums.losant.com/latest.md) · [Categories](https://forums.losant.com/categories.md) · [Tags](https://forums.losant.com/tags.md)

---

## [Data Discrepancy](https://forums.losant.com/t/data-discrepancy/5806)

<div class="topic-metadata">

**Author:** [@Tanner\_Williams](https://forums.losant.com/u/Tanner_Williams)\
**Replies:** 1\
**Last updated:** [March 17, 2025, 9:15pm UTC](https://forums.losant.com/t/data-discrepancy/5806 "2025-03-17T21:15:05Z")

</div>

Can some one help explain why this is happening? This is the historical data for our attribute ZeroCountPoints yet the current data that is being return by the composite state is i noticed this because some math…

---

## [Possibility to Register EEA Devices as Gateways for Enhanced Functionality](https://forums.losant.com/t/possibility-to-register-eea-devices-as-gateways-for-enhanced-functionality/5471)

<div class="topic-metadata">

**Author:** [@Vander\_Maziero](https://forums.losant.com/u/Vander_Maziero)\
**Replies:** 3\
**Last updated:** [October 11, 2024, 5:59pm UTC](https://forums.losant.com/t/possibility-to-register-eea-devices-as-gateways-for-enhanced-functionality/5471 "2024-10-11T17:59:33Z")

</div>

Hi, We are exploring the potential of leveraging low-cost gateways, based on ESP32 devices, capable of executing EEA (Edge Event Agent) but not GEA (Gateway Event Agent). In this context, we propose a feature enhancemen…

---

## [How to get deviceId from a device specified in "Device: State"](https://forums.losant.com/t/how-to-get-deviceid-from-a-device-specified-in-device-state/5484)

<div class="topic-metadata">

**Author:** [@David\_Santoso](https://forums.losant.com/u/David_Santoso)\
**Replies:** 7\
**Last updated:** [June 4, 2024, 5:04pm UTC](https://forums.losant.com/t/how-to-get-deviceid-from-a-device-specified-in-device-state/5484 "2024-06-04T17:04:05Z")

</div>

I’m building a simple workflow to set the connection status of a specified device in Losant. I use the “Device: State” trigger to select the device, and then I set its connection status using the “Device: Set Connection …

---

## [Enable Device System attributes calculated via workflow](https://forums.losant.com/t/enable-device-system-attributes-calculated-via-workflow/5407)

<div class="topic-metadata">

**Author:** [@Logan\_Parker](https://forums.losant.com/u/Logan_Parker)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 3:29pm UTC](https://forums.losant.com/t/enable-device-system-attributes-calculated-via-workflow/5407 "2024-02-08T15:29:17Z")

</div>

Device systems are an awesome way of aggregating different sets of devices - however, the attributes on the device systems should be able to be set not only as aggregates of the children device data, but also by workflow…

---

## [Inconsistent Data between Composite State / Attributes Tab / Data Tab](https://forums.losant.com/t/inconsistent-data-between-composite-state-attributes-tab-data-tab/5258)

<div class="topic-metadata">

**Author:** [@Stephen\_Earthy](https://forums.losant.com/u/Stephen_Earthy)\
**Replies:** 1\
**Last updated:** [September 11, 2023, 5:42pm UTC](https://forums.losant.com/t/inconsistent-data-between-composite-state-attributes-tab-data-tab/5258 "2023-09-11T17:42:24Z")

</div>

Hi, We have recently seen some inconsistent data between a device’s compositeState as reported in: a workflow Device:Get node, the Attributes Tab for the device the Data Tab for the device. There seems to be situatio…

---

## [Device connection status - Standalone - Webhook](https://forums.losant.com/t/device-connection-status-standalone-webhook/4999)

<div class="topic-metadata">

**Author:** [@Frank12](https://forums.losant.com/u/Frank12)\
**Replies:** 3\
**Last updated:** [June 26, 2023, 1:22pm UTC](https://forums.losant.com/t/device-connection-status-standalone-webhook/4999 "2023-06-26T13:22:28Z")

</div>

I have a device created as Standalone, and the data comes in via a webhook. However, the connection status of the device stays “unknown” all time. Does it require a workflow to change the “connection status” to connec…

---

## [Device State Query Match ALL Tags](https://forums.losant.com/t/device-state-query-match-all-tags/5108)

<div class="topic-metadata">

**Author:** [@Marco\_Bernutz](https://forums.losant.com/u/Marco_Bernutz)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 2:31pm UTC](https://forums.losant.com/t/device-state-query-match-all-tags/5108 "2023-06-14T14:31:03Z")

</div>

Hi, I would like to have the possibility to create a “Match ALL Tags” query in addition to the “Match ANY Tags” query in the “Device: State” trigger. Regards, Marco

---

## [Failed to load recent states and failed to load connection logs](https://forums.losant.com/t/failed-to-load-recent-states-and-failed-to-load-connection-logs/5036)

<div class="topic-metadata">

**Author:** [@Dave\_Blaylock](https://forums.losant.com/u/Dave_Blaylock)\
**Replies:** 3\
**Last updated:** [April 24, 2023, 8:25pm UTC](https://forums.losant.com/t/failed-to-load-recent-states-and-failed-to-load-connection-logs/5036 "2023-04-24T20:25:53Z")

</div>

Hello, I am working through a cartridge authentication on a device at one of our customers locations. I when to look for the device state log and ran into this and this wondering of someone can help me understan…

---

## [Deleting device state](https://forums.losant.com/t/deleting-device-state/4474)

<div class="topic-metadata">

**Author:** [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Replies:** 5\
**Last updated:** [March 22, 2023, 9:41pm UTC](https://forums.losant.com/t/deleting-device-state/4474 "2023-03-22T21:41:32Z")

</div>

Hi there, is there a way to delete the entire state or time slice of it (one or many attributes) for a device via API or Node function? This is to prevent dirty data coming into the system as a result of a parsing issu…

---

## [Customize Device State Payload Structure](https://forums.losant.com/t/customize-device-state-payload-structure/4796)

<div class="topic-metadata">

**Author:** [@Denys\_Willian](https://forums.losant.com/u/Denys_Willian)\
**Replies:** 2\
**Last updated:** [November 3, 2022, 12:51pm UTC](https://forums.losant.com/t/customize-device-state-payload-structure/4796 "2022-11-03T12:51:35Z")

</div>

I use some devices that do not allow the total free modification of the payload structure (more specifically Weintek iE series HMIs), but the format is close enough to the standard structure, only having “d” instead of “…

---

## [Device Stat trigger on connection status](https://forums.losant.com/t/device-stat-trigger-on-connection-status/4618)

<div class="topic-metadata">

**Author:** [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Replies:** 4\
**Last updated:** [June 30, 2022, 10:52am UTC](https://forums.losant.com/t/device-stat-trigger-on-connection-status/4618 "2022-06-30T10:52:24Z")

</div>

Hi there, I want to use the device state trigger to create an even when one of my devices is change its connection status. However the trigger device state block doesn’t seem to act or report the connection information…

---

## [Device payload count](https://forums.losant.com/t/device-payload-count/4248)

<div class="topic-metadata">

**Author:** [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Replies:** 10\
**Last updated:** [December 2, 2021, 7:39pm UTC](https://forums.losant.com/t/device-payload-count/4248 "2021-12-02T19:39:14Z")

</div>

I know I can see current month payload count per Application, but is there a similar value I could see payload per device when selecting one of the applications? Or is something like this available via the API?

---

## [Storing string attribute as blob](https://forums.losant.com/t/storing-string-attribute-as-blob/3944)

<div class="topic-metadata">

**Author:** [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Replies:** 1\
**Last updated:** [July 21, 2021, 6:45pm UTC](https://forums.losant.com/t/storing-string-attribute-as-blob/3944 "2021-07-21T18:45:05Z")

</div>

I have a string I need to store as an attribute, but it’s more than 1023 characters. I attempted to store it as a blob having a workflow using the “encodeBase64” helper, and set the Attribute Content Type to text/csv, a…

---

## [Devices does not connect](https://forums.losant.com/t/devices-does-not-connect/3821)

<div class="topic-metadata">

**Author:** [@CHAIMAA\_DRIOUECH](https://forums.losant.com/u/CHAIMAA_DRIOUECH)\
**Replies:** 13\
**Last updated:** [June 3, 2021, 9:36pm UTC](https://forums.losant.com/t/devices-does-not-connect/3821 "2021-06-03T21:36:08Z")

</div>

Hello, We are experiencing some “Unknown Connection Status” for ALL our devices, Please see attached picture for reference. Thanks in advance

---

## [Attribute Values more than 6 months old](https://forums.losant.com/t/attribute-values-more-than-6-months-old/3789)

<div class="topic-metadata">

**Author:** [@Greg\_Bopp](https://forums.losant.com/u/Greg_Bopp)\
**Replies:** 4\
**Last updated:** [May 20, 2021, 9:58pm UTC](https://forums.losant.com/t/attribute-values-more-than-6-months-old/3789 "2021-05-20T21:58:11Z")

</div>

We have had some device attributes expire that contained customer input data (ie, vanityName of a device or alert switches). Attempting to access old data to re-populate the attribute I discover that data only seems to g…

---

## [Device Log Not Receiving Payloads](https://forums.losant.com/t/device-log-not-receiving-payloads/3424)

<div class="topic-metadata">

**Author:** [@Pablo\_Irusta](https://forums.losant.com/u/Pablo_Irusta)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 3:03pm UTC](https://forums.losant.com/t/device-log-not-receiving-payloads/3424 "2020-11-25T15:03:20Z")

</div>

Hello. I’m using a NodeMCU board connected to a DHT22 sensor. I created a blank application and added a standalone device with attributes for humidity, tempF, tempC, heatIndexF and heatIndexC. I generate the keys and ad…

---

## [Filtering with the Device State Trigger](https://forums.losant.com/t/filtering-with-the-device-state-trigger/2323)

<div class="topic-metadata">

**Author:** [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Replies:** 0\
**Last updated:** [October 29, 2019, 8:22pm UTC](https://forums.losant.com/t/filtering-with-the-device-state-trigger/2323 "2019-10-29T20:22:10Z")

</div>

Did you know that the Device State Node can now trigger on specific data? You can now filter by all, any, or specific attributes and ignore states in the past. We’ll be back next Tuesday with a new tip. Until then, k…

---

## [Download Device State from the Dashboard](https://forums.losant.com/t/download-device-state-from-the-dashboard/2483)

<div class="topic-metadata">

**Author:** [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Replies:** 0\
**Last updated:** [December 17, 2019, 10:01pm UTC](https://forums.losant.com/t/download-device-state-from-the-dashboard/2483 "2019-12-17T22:01:59Z")

</div>

Did you know you can now download device state data as a CSV file from the Device State Table Block? We’ll be back next Tuesday with a new tip. Until then, keep exploring! :pick: Julia

---

## [Disable payloads](https://forums.losant.com/t/disable-payloads/2640)

<div class="topic-metadata">

**Author:** [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Replies:** 1\
**Last updated:** [February 14, 2020, 1:07pm UTC](https://forums.losant.com/t/disable-payloads/2640 "2020-02-14T13:07:54Z")

</div>

To minimize MQTT payload postings from a device, could you set a device to “deny” payloads during certain hours? In the case there is no other way to disable traffic being sent from device.

---

## [Threshold (versioning)](https://forums.losant.com/t/threshold-versioning/2597)

<div class="topic-metadata">

**Author:** [@Carlos\_Mecking](https://forums.losant.com/u/Carlos_Mecking)\
**Replies:** 4\
**Last updated:** [February 7, 2020, 10:35am UTC](https://forums.losant.com/t/threshold-versioning/2597 "2020-02-07T10:35:20Z")

</div>

Hello! What is the most appropriate place to store the thresholds of a given device considering that at any given time these thresholds may change, and this must be properly represented in the graphs? For example: for …

---

## [Missing Attribute in Device?](https://forums.losant.com/t/missing-attribute-in-device/2236)

<div class="topic-metadata">

**Author:** [@Mark\_Nicholson](https://forums.losant.com/u/Mark_Nicholson)\
**Replies:** 10\
**Last updated:** [October 2, 2019, 2:53pm UTC](https://forums.losant.com/t/missing-attribute-in-device/2236 "2019-10-02T14:53:14Z")

</div>

Dashboard ID: 5d9264aa6cdb3e0006f151f5 I have a device with six attributes. In the Device -\> Debug section, I can clearly see all six attribute data coming in via a Webhook, and then into the Device. However, when I c…

---

## [The Bulk (Device) of the Matter](https://forums.losant.com/t/the-bulk-device-of-the-matter/2162)

<div class="topic-metadata">

**Author:** [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 3:09pm UTC](https://forums.losant.com/t/the-bulk-device-of-the-matter/2162 "2019-09-19T15:09:13Z")

</div>

Exporting a single device’s state is easily done with one click of a button on the device details page, but maybe you have a lot of devices, and you’d like to export more than one device’s state data at a time. We search…

---

## [Workflow: apply command to the device that triggered the command](https://forums.losant.com/t/workflow-apply-command-to-the-device-that-triggered-the-command/1356)

<div class="topic-metadata">

**Author:** [@Gambit\_Support](https://forums.losant.com/u/Gambit_Support)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 8:39pm UTC](https://forums.losant.com/t/workflow-apply-command-to-the-device-that-triggered-the-command/1356 "2018-12-19T20:39:16Z")

</div>

We are implementing a control system, where a device state triggers a command (through a conditional). We have figured out that we can issue the command in the “Device Command” box for “Use Device ID(s) specified on th…
