Closed julianpas closed 4 months ago
Hey there @bdraco, @ollo69, @pestevez, mind taking a look at this issue as it has been labeled with an integration (nut
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
nut documentation nut source (message by IssueLinks)
FYI, this helped me, see if it helps you: https://github.com/home-assistant/core/issues/81976#issuecomment-1506299142
To add some new information here:
The entities appeared after a while actually but every now and then almost all will become unavaialble except the ones that were present from the get go and then reappear on the next poll I guess. I am fine with clsoing this issue but I still think there might be some issue with parsing the output in some cases.
Have you double checked NUT itself? In my case the device was set to "auto", so every once in a while it would become unavailable by the "upsc" command (apparently a NUT bug). Changing it to the actual device (/dev/whatever) got it stable.
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.
The problem
The NUT integration is only exposing 5 parameters of the UPS and a lot of the important parameters like current load, input voltage etc are not exposed. I have another UPS which is also using the NUT integration and it exposes 18 parameters.
The NUT integration is communicating with a NUT server running as an addon on the same device.
What version of Home Assistant Core has the issue?
core-2024.3.0
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
NUT
Link to integration documentation on our website
https://www.home-assistant.io/integrations/nut
Diagnostics information
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.3.0", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.12.2", "docker": true, "arch": "aarch64", "timezone": "Europe/Zurich", "os_name": "Linux", "os_version": "6.1.73-haos-raspi", "supervisor": "2024.03.0", "host_os": "Home Assistant OS 12.0", "docker_version": "24.0.7", "chassis": "embedded", "run_as_root": true }, "custom_components": { "xiaomi_cloud_map_extractor": { "version": "v2.2.0", "requirements": [ "pillow", "pybase64", "python-miio", "requests", "pycryptodome" ] }, "gardena_smart_system": { "version": "1.0.0", "requirements": [ "py-smart-gardena==1.3.8" ] }, "edgeos": { "version": "2.0.31", "requirements": [ "aiohttp" ] }, "nest": { "version": "2023.2.3", "requirements": [ "python-nest==4.2.0", "google-nest-sdm==2.2.4" ] }, "localtuya": { "version": "5.2.1", "requirements": [] }, "luxtronik": { "version": "2022.12.01", "requirements": [ "luxtronik==0.3.14" ] }, "hacs": { "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "petsafe": { "version": "1.3.0", "requirements": [ "petsafe==2.0.1" ] }, "bwt_perla": { "version": "0.5.0", "requirements": [ "bwt_api==0.4.2" ] }, "huawei_solar": { "version": "1.3.3", "requirements": [ "huawei-solar==2.2.9" ] }, "miheater": { "version": "1.3.0", "requirements": [] }, "dlight": { "version": "1.0.0", "requirements": [] } }, "integration_manifest": { "domain": "nut", "name": "Network UPS Tools (NUT)", "codeowners": [ "@bdraco", "@ollo69", "@pestevez" ], "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/nut", "integration_type": "device", "iot_class": "local_polling", "loggers": [ "pynut2" ], "requirements": [ "pynut2==2.1.2" ], "zeroconf": [ "_nut._tcp.local." ], "is_built_in": true }, "data": { "entry": { "entry_id": "0a875490867d9867ac6934c69ff8eadc", "version": 1, "minor_version": 1, "domain": "nut", "title": "anubis@localhost:3493", "data": { "host": "localhost", "port": 3493, "password": "REDACTED", "username": "REDACTED", "alias": "anubis" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": null, "disabled_by": null }, "nut_data": { "ups_list": null, "status": { "battery.charge": "100.0", "battery.charge.low": "5", "battery.date": "2017-07-02", "battery.runtime": "4500.0", "battery.runtime.low": "180", "battery.voltage": "13.5", "battery.voltage.nominal": "12.0", "device.mfr": "APC", "device.model": "Back-UPS XS 950U ", "device.serial": "",
"device.type": "ups",
"driver.name": "apcupsd-ups",
"driver.parameter.pollinterval": "2",
"driver.parameter.port": "",
"driver.parameter.synchronous": "auto",
"driver.version": "2.8.0",
"driver.version.internal": "0.6",
"input.sensitivity": "M",
"input.transfer.high": "280.0",
"input.transfer.low": "155.0",
"input.transfer.reason": "No transfers since turnon",
"input.voltage": "240.0",
"input.voltage.nominal": "230",
"ups.date": "2024-03-13",
"ups.firmware": "925.T2 .I USB FW:T2",
"ups.id": "anubis",
"ups.load": "8.0",
"ups.mfr": "APC",
"ups.model": "Back-UPS XS 950U ",
"ups.realpower.nominal": "480.0",
"ups.serial": "",
"ups.status": "OL",
"ups.test.result": "NO",
"ups.time": "16:18:53"
},
"commands": []
},
"device": {
"area_id": "office",
"config_entries": [
"0a875490867d9867ac6934c69ff8eadc"
],
"configuration_url": null,
"connections": [],
"disabled_by": null,
"entry_type": null,
"hw_version": null,
"id": "c4cb8f3f97845ca70c7611514e5b611c",
"identifiers": [
[
"nut",
"APCBack-UPS XS 950U "
]
],
"labels": [],
"manufacturer": "APC",
"model": "Back-UPS XS 950U ",
"name_by_user": null,
"name": "Anubis",
"serial_number": null,
"suggested_area": null,
"sw_version": null,
"via_device_id": null,
"is_new": false,
"entities": {
"sensor.anubis_nominal_real_power": {
"unique_id": "APCBack-UPS XS 950U _ups.realpower.nominal",
"platform": "nut",
"previous_unique_id": null,
"aliases": [],
"area_id": null,
"capabilities": null,
"config_entry_id": "0a875490867d9867ac6934c69ff8eadc",
"device_class": null,
"device_id": "c4cb8f3f97845ca70c7611514e5b611c",
"domain": "sensor",
"disabled_by": "integration",
"entity_category": "diagnostic",
"hidden_by": null,
"icon": null,
"id": "ccb2439f25a5575253af7484a21cf49d",
"has_entity_name": true,
"labels": [],
"name": null,
"options": {},
"original_device_class": "power",
"original_icon": null,
"original_name": "Nominal real power",
"supported_features": 0,
"translation_key": "ups_realpower_nominal",
"unit_of_measurement": "W",
"state": null
},
"sensor.anubis_battery_runtime": {
"unique_id": "APCBack-UPS XS 950U _battery.runtime",
"platform": "nut",
"previous_unique_id": null,
"aliases": [],
"area_id": null,
"capabilities": null,
"config_entry_id": "0a875490867d9867ac6934c69ff8eadc",
"device_class": null,
"device_id": "c4cb8f3f97845ca70c7611514e5b611c",
"domain": "sensor",
"disabled_by": "integration",
"entity_category": "diagnostic",
"hidden_by": null,
"icon": null,
"id": "11a19b6624b542e53d26b27241cc3e99",
"has_entity_name": true,
"labels": [],
"name": null,
"options": {},
"original_device_class": "duration",
"original_icon": null,
"original_name": "Battery runtime",
"supported_features": 0,
"translation_key": "battery_runtime",
"unit_of_measurement": "s",
"state": null
},
"sensor.anubis_status_data": {
"unique_id": "APCBack-UPS XS 950U _ups.status",
"platform": "nut",
"previous_unique_id": null,
"aliases": [],
"area_id": null,
"capabilities": null,
"config_entry_id": "0a875490867d9867ac6934c69ff8eadc",
"device_class": null,
"device_id": "c4cb8f3f97845ca70c7611514e5b611c",
"domain": "sensor",
"disabled_by": null,
"entity_category": null,
"hidden_by": null,
"icon": null,
"id": "a538a3c53df4cd6b68b29d8e5a211906",
"has_entity_name": true,
"labels": [],
"name": null,
"options": {
"conversation": {
"should_expose": false
}
},
"original_device_class": null,
"original_icon": null,
"original_name": "Status data",
"supported_features": 0,
"translation_key": "ups_status",
"unit_of_measurement": null,
"state": {
"state": "OL",
"attributes": {
"friendly_name": "Anubis Status data"
},
"last_changed": "2024-03-13T09:53:12.014977+00:00",
"last_updated": "2024-03-13T09:53:12.014977+00:00"
}
},
"sensor.anubis_battery_charge": {
"unique_id": "APCBack-UPS XS 950U _battery.charge",
"platform": "nut",
"previous_unique_id": null,
"aliases": [],
"area_id": null,
"capabilities": {
"state_class": "measurement"
},
"config_entry_id": "0a875490867d9867ac6934c69ff8eadc",
"device_class": null,
"device_id": "c4cb8f3f97845ca70c7611514e5b611c",
"domain": "sensor",
"disabled_by": null,
"entity_category": null,
"hidden_by": null,
"icon": null,
"id": "4983e608ffe5f6dd6a64df9866d6f681",
"has_entity_name": true,
"labels": [],
"name": null,
"options": {
"conversation": {
"should_expose": false
}
},
"original_device_class": "battery",
"original_icon": null,
"original_name": "Battery charge",
"supported_features": 0,
"translation_key": "battery_charge",
"unit_of_measurement": "%",
"state": {
"state": "100.0",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "%",
"device_class": "battery",
"friendly_name": "Anubis Battery charge"
},
"last_changed": "2024-03-13T09:53:12.019952+00:00",
"last_updated": "2024-03-13T09:53:12.019952+00:00"
}
},
"sensor.anubis_status": {
"unique_id": "APCBack-UPS XS 950U _ups.status.display",
"platform": "nut",
"previous_unique_id": null,
"aliases": [],
"area_id": null,
"capabilities": null,
"config_entry_id": "0a875490867d9867ac6934c69ff8eadc",
"device_class": null,
"device_id": "c4cb8f3f97845ca70c7611514e5b611c",
"domain": "sensor",
"disabled_by": null,
"entity_category": null,
"hidden_by": null,
"icon": null,
"id": "b12c70b5cf6792e9b617a24be9281fdd",
"has_entity_name": true,
"labels": [],
"name": null,
"options": {
"conversation": {
"should_expose": false
}
},
"original_device_class": null,
"original_icon": null,
"original_name": "Status",
"supported_features": 0,
"translation_key": "ups_status_display",
"unit_of_measurement": null,
"state": {
"state": "Online",
"attributes": {
"friendly_name": "Anubis Status"
},
"last_changed": "2024-03-13T09:53:12.022450+00:00",
"last_updated": "2024-03-13T09:53:12.022450+00:00"
}
}
}
}
}
}
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response