home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.81k stars 30.51k forks source link

sensor.community integration doesn't show device for noise sensor #88989

Closed niwi-hh closed 1 year ago

niwi-hh commented 1 year ago

The problem

I want to integrate a noise sensor from the sensor.community integration. The ID is 77729. The integration itself is possible, but no device is shown.

What version of Home Assistant Core has the issue?

Home Assistant 2023.2.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

sensor.community

Link to integration documentation on our website

https://www.home-assistant.io/integrations/luftdaten

Diagnostics information

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.2.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.7", "docker": true, "arch": "x86_64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "5.15.90", "supervisor": "2023.01.1", "host_os": "Home Assistant OS 9.5", "docker_version": "20.10.22", "chassis": "embedded", "run_as_root": true }, "custom_components": { "alexa_media": { "version": "4.6.0", "requirements": [ "alexapy==1.26.4", "packaging>=20.3", "wrapt>=1.12.1" ] }, "gardena_smart_system": { "version": "1.0.0", "requirements": [ "py-smart-gardena==1.3.7" ] }, "waste_collection_schedule": { "version": "1.35.0", "requirements": [ "icalendar", "recurring_ical_events", "icalevents", "bs4" ] }, "hacs": { "version": "1.30.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "dwd_pollenflug": { "version": "1.0.2", "requirements": [ "pytz" ] }, "homematicip_local": { "version": "1.32.0", "requirements": [ "hahomematic==2023.2.10" ] }, "tedee": { "version": "2022.2.0", "requirements": [ "pytedee>=0.0.3" ] }, "vorwerk": { "version": "0.9.6", "requirements": [ "pybotvac==0.0.20" ] } }, "integration_manifest": { "domain": "luftdaten", "name": "Sensor.Community", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/luftdaten", "requirements": [ "luftdaten==0.7.4" ], "codeowners": [ "@fabaff", "@frenck" ], "quality_scale": "gold", "iot_class": "cloud_polling", "integration_type": "device", "loggers": [ "luftdaten" ], "is_built_in": true }, "data": { "noise_LAeq": 42.37, "noise_LA_min": 39.64, "noise_LA_max": 46.76, "sensor_id": "REDACTED", "longitude": "REDACTED", "latitude": "REDACTED", "altitude": 4.5 } }

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @fabaff, @frenck, mind taking a look at this issue as it has been labeled with an integration (luftdaten) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `luftdaten` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign luftdaten` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


luftdaten documentation luftdaten source (message by IssueLinks)

fabaff commented 1 year ago

Home Assistant doesn't have support for noise at the moment.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

modem-man-gmx commented 1 year ago

I have the same problem here and could support the development a lot, because I actively maintain three of the luftdaten.info noise sensors (recently two, the third is offlined/in service) where one is connected to my local network.

config_entry-luftdaten-4d0eb1bd1aa90deabac493943adb1eb3.json.txt

modem-man-gmx commented 1 year ago

Hi @fabaff, @frenck, is there any way to reopen this issue? Or do you state there is no way until HA knows about deciBel sensors? How about raw numbers?

We want to automate silent chill music to support sleeping in times of raising nightly train noise. Would be a great thing to have the sound levels avail.

fabaff commented 1 year ago

For every given sensor are the measurements available through the API. The response contains sensordatavalues which are the three noise related values which could be gathered by a rest sensor.

$ http https://data.sensor.community/airrohr/v1/sensor/37833/
[
    {
        "id": 16058093854,
        "location": {
            "altitude": "283.1",
            "country": "DE",
            "exact_location": 0,
            "id": 23678,
            "indoor": 0,
            "latitude": "48.778",
            "longitude": "9.16"
        },
        "sampling_rate": null,
        "sensor": {
            "id": 37833,
            "pin": "15",
            "sensor_type": {
                "id": 29,
                "manufacturer": "Luftdaten.info",
                "name": "DNMS (Laerm)"
            }
        },
        "sensordatavalues": [
            {
                "id": 36190231007,
                "value": "39.08",
                "value_type": "noise_LAeq"
            },
            {
                "id": 36190231015,
                "value": "31.68",
                "value_type": "noise_LA_min"
            },
            {
                "id": 36190231018,
                "value": "51.00",
                "value_type": "noise_LA_max"
            }
[...]
    }
]
modem-man-gmx commented 1 year ago

so, if I got you right, it is just easy adding a "rest" type sensor in HA. I'll give it a try next rainy weekend.

THX! Mo