AirGradient Forum

Sending data to both Sensor.Community and AirGradient Map -> duplicate data on AirGradient Map?

Hello! :wave:
As I’m a fan of open data platforms, I’m forwarding data from my new AirGradient Outdoor monitor to various platforms (blog post coming up :wink: ).

I’m sending data to both AirGradient map (via the checkbox in the dashboard) and to Sensor.Community (via a custom Home Assistant automation). The sensors are placed at exactly the same GPS coordinates in both platforms.
But now AirGradient map also pulls data from Sensor.Community, and the resulting behaviour is confusing:

  • In the browser version of the AirGradient map, only the Sensor.Community sensor is visible
  • in the Android App, sometimes the Sensore.Community sensor is visible, sometimes the AirGradient sensor

When looking into the API call from the AirGradient map, I can see that both sensors are returned from the backend.
I would however expect / prefer a consistent behaviour that favours the AirGradient sensor in the UI (i.e. detecting that it is the same sensor, not sure how though), or shows both sensors at the same location. Is there a way to achieve that, or would that be something that would make sense to look at on the AirGradient map side?
(I’m aware that this is rather an edge case, but judging from other topics there are at least some people interested in sharing data to Sensor.Community as well)

2 Likes

Hello @tom-mi, welcome to our community!

I’m glad to hear that we have a new member who is a fan of open data. Looking forward to seeing your blog post.

Regarding the issue you have reported. Do I understand it correctly that you deployed a single monitor and have its data shared to both platforms (to AirGradient Map (via AirGradient Dashboard) & to Sensor.Community (via your HA automation)?

Please let me take some time to consult our development team, and I’ll get back to you as soon as I have an update. Thanks!

Hi @tom-mi , would you mind sharing more details about how you share the data via your custom Home Assistant automation to Sensor.Commumity (how the automation works exactly, for example)?

Thank you.

Yeah, it’s a single monitor sending data to both platforms.
I registered a node with two sensors manually on sensor.community and created an automation POSTing sensor data every 5 minutes.
(on sensor.community it shows up as two separate nodes, as temperature / humidity is attributed to one sensor, PM2.5 / PM10 to another – this is necessary due to how Sensor.Community works)

Unfortunately I cannot post any links here, so I cannot share a detailed blogpost & the automation here

Thank you for your reply @tom-mi .

Sorry for the inconvenience. It looks like the Forum’s anti-spam system works a bit aggressively.

Could you please contact us via our support form here: https://www.airgradient.com/support

Please feel free to provide the link to your blog post in the form.

We would like to take a deeper look at this. Thank you in advance.

1 Like