Skip to content

Sensors not updated when data is sent in multiple payloads #481

Description

@proffalken

Expected Behavior

When I send a payload that has one set of sensor data in it, and another payload that has other data in it, I expect previous value to be retained

Actual Behavior

I have a ESP32 Pax Counter working via the TTN integration.

I have already logged sensebox/ttn-osem-integration#54 for this against that repo, however I am not sure if this is an issue with the TTN integration or the main site.

The PAX Counter sends two payloads:

  1. WiFi/BLE Device counts, PM10, PM2.5
  2. Temperature, Humidity, Air Pressure, VOC (from a BME680)

Because the second payload is sent directly after the first, the sensor values for PM10, PM2.5, and BLE/WiFi are always zero

I would expect the sensor to not get updated unless there is a value passed for that sensor.

Environment

  • OS: Linux (Various)
  • Browser & Version: Brave/Chrome/Firefox all latest versions from APT/SNAP

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions