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
73.75k stars 30.86k forks source link

NUT integration doesn't report UPS temperature #119287

Closed cristianstoica closed 5 months ago

cristianstoica commented 5 months ago

The problem

UPS temperature not reported. Model APC SMT1500i. Using NUT server add-on. Developer closed reported issue stating that the problem is with NUT integration.

What version of Home Assistant Core has the issue?

core-2024.6.1

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

Network UPS Tools (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.6.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Bucharest",
    "os_name": "Linux",
    "os_version": "6.6.28-haos-raspi",
    "supervisor": "2024.06.0",
    "host_os": "Home Assistant OS 12.3",
    "docker_version": "25.0.5",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "nest_protect": {
      "documentation": "https://github.com/imicknl/ha-nest-protect",
      "version": "0.4.0b4",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "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": [
      "aionut"
    ],
    "requirements": [
      "aionut==4.3.2"
    ],
    "zeroconf": [
      "_nut._tcp.local."
    ],
    "is_built_in": true
  },
  "setup_times": {
    "null": {
      "setup": 5.951699858997017e-05
    },
    "23c53f7408c9b6b0d7baf3ccacc3b488": {
      "wait_import_platforms": -12.804217334996792,
      "config_entry_setup": 13.059873877005884
    }
  },
  "data": {
    "entry": {
      "data": {
        "host": "a0d7b954-nut",
        "port": 3493,
        "username": "**REDACTED**",
        "password": "**REDACTED**"
      },
      "disabled_by": null,
      "domain": "nut",
      "entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
      "minor_version": 1,
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "title": "a0d7b954-nut:3493",
      "unique_id": null,
      "version": 1
    },
    "nut_data": {
      "ups_list": {
        "smt1500i": "Description unavailable"
      },
      "status": {
        "battery.charge": "100",
        "battery.charge.low": "10",
        "battery.charge.warning": "50",
        "battery.runtime": "20100",
        "battery.runtime.low": "120",
        "battery.type": "PbAc",
        "battery.voltage": "27.4",
        "battery.voltage.nominal": "24.0",
        "device.mfr": "American Power Conversion ",
        "device.model": "Smart-UPS 1500",
        "device.serial": "AS1239220678  ",
        "device.type": "ups",
        "driver.name": "usbhid-ups",
        "driver.parameter.pollfreq": "30",
        "driver.parameter.pollinterval": "2",
        "driver.parameter.port": "auto",
        "driver.parameter.synchronous": "auto",
        "driver.parameter.vendorid": "051d*",
        "driver.version": "2.8.0",
        "driver.version.data": "APC HID 0.98",
        "driver.version.internal": "0.47",
        "driver.version.usb": "libusb-1.0.26 (API: 0x1000109)",
        "ups.beeper.status": "enabled",
        "ups.delay.shutdown": "20",
        "ups.firmware": "UPS 08.3 / ID=18",
        "ups.mfr": "American Power Conversion ",
        "ups.mfr.date": "2012/09/24",
        "ups.model": "Smart-UPS 1500",
        "ups.productid": "0003",
        "ups.serial": "AS1239220678  ",
        "ups.status": "OL",
        "ups.timer.reboot": "-1",
        "ups.timer.shutdown": "-1",
        "ups.vendorid": "051d"
      },
      "commands": [
        "shutdown.reboot",
        "beeper.enable",
        "beeper.mute",
        "load.off",
        "beeper.disable",
        "shutdown.stop"
      ]
    },
    "device": {
      "area_id": null,
      "config_entries": [
        "23c53f7408c9b6b0d7baf3ccacc3b488"
      ],
      "configuration_url": null,
      "connections": [],
      "disabled_by": null,
      "entry_type": null,
      "hw_version": null,
      "id": "199c04e8100c3ca154a9519796a42d1b",
      "identifiers": [
        [
          "nut",
          "American Power Conversion _Smart-UPS 1500_AS1239220678  "
        ]
      ],
      "labels": [],
      "manufacturer": "American Power Conversion ",
      "model": "Smart-UPS 1500",
      "name_by_user": null,
      "name": "Smt1500I",
      "serial_number": null,
      "suggested_area": null,
      "sw_version": "UPS 08.3 / ID=18",
      "via_device_id": null,
      "is_new": false,
      "entities": {
        "sensor.smt1500i_status_data": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _ups.status",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": null,
          "hidden_by": null,
          "icon": null,
          "id": "e8d06347b280f0e7fb5283fa3f1d485c",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "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": "Smt1500I Status data"
            },
            "last_changed": "2024-06-07T21:46:13.290125+00:00",
            "last_reported": "2024-06-10T11:24:13.370631+00:00",
            "last_updated": "2024-06-07T21:46:13.290125+00:00"
          }
        },
        "sensor.smt1500i_ups_shutdown_delay": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _ups.delay.shutdown",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": "user",
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "16273f1c6656468b1bd7d72e7e5f64ca",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": "duration",
          "original_icon": null,
          "original_name": "UPS shutdown delay",
          "supported_features": 0,
          "translation_key": "ups_delay_shutdown",
          "unit_of_measurement": "s",
          "state": null
        },
        "sensor.smt1500i_load_reboot_timer": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _ups.timer.reboot",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "82fd8a8149ced9c914454972a51b84ac",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": "duration",
          "original_icon": null,
          "original_name": "Load reboot timer",
          "supported_features": 0,
          "translation_key": "ups_timer_reboot",
          "unit_of_measurement": "s",
          "state": {
            "state": "-1",
            "attributes": {
              "unit_of_measurement": "s",
              "device_class": "duration",
              "friendly_name": "Smt1500I Load reboot timer"
            },
            "last_changed": "2024-06-07T21:46:13.291180+00:00",
            "last_reported": "2024-06-10T11:24:13.370843+00:00",
            "last_updated": "2024-06-07T21:46:13.291180+00:00"
          }
        },
        "sensor.smt1500i_load_shutdown_timer": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _ups.timer.shutdown",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "74ae6a3827e78f8d4515f195a5e57322",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": "duration",
          "original_icon": null,
          "original_name": "Load shutdown timer",
          "supported_features": 0,
          "translation_key": "ups_timer_shutdown",
          "unit_of_measurement": "s",
          "state": {
            "state": "-1",
            "attributes": {
              "unit_of_measurement": "s",
              "device_class": "duration",
              "friendly_name": "Smt1500I Load shutdown timer"
            },
            "last_changed": "2024-06-07T21:46:13.291799+00:00",
            "last_reported": "2024-06-10T11:24:13.370986+00:00",
            "last_updated": "2024-06-07T21:46:13.291799+00:00"
          }
        },
        "sensor.smt1500i_beeper_status": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _ups.beeper.status",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "d8e16a9d4ac40ee14866bfecb166acb2",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": null,
          "original_icon": null,
          "original_name": "Beeper status",
          "supported_features": 0,
          "translation_key": "ups_beeper_status",
          "unit_of_measurement": null,
          "state": {
            "state": "enabled",
            "attributes": {
              "friendly_name": "Smt1500I Beeper status"
            },
            "last_changed": "2024-06-07T21:46:13.292268+00:00",
            "last_reported": "2024-06-10T11:24:13.371106+00:00",
            "last_updated": "2024-06-07T21:46:13.292268+00:00"
          }
        },
        "sensor.smt1500i_battery_charge": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.charge",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": {
            "state_class": "measurement"
          },
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": null,
          "hidden_by": null,
          "icon": null,
          "id": "263b059c0d49579a62b75ad1c2565a35",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "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",
            "attributes": {
              "state_class": "measurement",
              "unit_of_measurement": "%",
              "device_class": "battery",
              "friendly_name": "Smt1500I Battery charge"
            },
            "last_changed": "2024-06-07T21:46:13.292745+00:00",
            "last_reported": "2024-06-10T11:24:13.371244+00:00",
            "last_updated": "2024-06-07T21:46:13.292745+00:00"
          }
        },
        "sensor.smt1500i_low_battery_setpoint": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.charge.low",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": "user",
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "0dbddad5ede677bf870e8981190b1a6b",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "conversation": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            }
          },
          "original_device_class": null,
          "original_icon": null,
          "original_name": "Low battery setpoint",
          "supported_features": 0,
          "translation_key": "battery_charge_low",
          "unit_of_measurement": "%",
          "state": null
        },
        "sensor.smt1500i_warning_battery_setpoint": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.charge.warning",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": "user",
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "16e5ca7291dd99d5ae79b791000debeb",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "conversation": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            }
          },
          "original_device_class": null,
          "original_icon": null,
          "original_name": "Warning battery setpoint",
          "supported_features": 0,
          "translation_key": "battery_charge_warning",
          "unit_of_measurement": "%",
          "state": null
        },
        "sensor.smt1500i_battery_voltage": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.voltage",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": {
            "state_class": "measurement"
          },
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "685a0e4107af5c9c106ae4153d0206b0",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": "voltage",
          "original_icon": null,
          "original_name": "Battery voltage",
          "supported_features": 0,
          "translation_key": "battery_voltage",
          "unit_of_measurement": "V",
          "state": {
            "state": "27.4",
            "attributes": {
              "state_class": "measurement",
              "unit_of_measurement": "V",
              "device_class": "voltage",
              "friendly_name": "Smt1500I Battery voltage"
            },
            "last_changed": "2024-06-10T11:24:13.371577+00:00",
            "last_reported": "2024-06-10T11:24:13.371577+00:00",
            "last_updated": "2024-06-10T11:24:13.371577+00:00"
          }
        },
        "sensor.smt1500i_nominal_battery_voltage": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.voltage.nominal",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "d8d1601918225c1f87ddb55d9b938b42",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": "voltage",
          "original_icon": null,
          "original_name": "Nominal battery voltage",
          "supported_features": 0,
          "translation_key": "battery_voltage_nominal",
          "unit_of_measurement": "V",
          "state": {
            "state": "24.0",
            "attributes": {
              "unit_of_measurement": "V",
              "device_class": "voltage",
              "friendly_name": "Smt1500I Nominal battery voltage"
            },
            "last_changed": "2024-06-07T21:46:13.294307+00:00",
            "last_reported": "2024-06-10T11:24:13.372068+00:00",
            "last_updated": "2024-06-07T21:46:13.294307+00:00"
          }
        },
        "sensor.smt1500i_battery_runtime": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.runtime",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "95db13bbdd1e87fff61462bfc4ecbdd5",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": "duration",
          "original_icon": null,
          "original_name": "Battery runtime",
          "supported_features": 0,
          "translation_key": "battery_runtime",
          "unit_of_measurement": "s",
          "state": {
            "state": "20100",
            "attributes": {
              "unit_of_measurement": "s",
              "device_class": "duration",
              "friendly_name": "Smt1500I Battery runtime"
            },
            "last_changed": "2024-06-09T18:46:13.372208+00:00",
            "last_reported": "2024-06-10T11:24:13.372209+00:00",
            "last_updated": "2024-06-09T18:46:13.372208+00:00"
          }
        },
        "sensor.smt1500i_low_battery_runtime": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.runtime.low",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": "user",
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "f79e854951f699d1fe264df5fac86bb3",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "sensor": {
              "display_precision": null
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": "duration",
          "original_icon": null,
          "original_name": "Low battery runtime",
          "supported_features": 0,
          "translation_key": "battery_runtime_low",
          "unit_of_measurement": "s",
          "state": null
        },
        "sensor.smt1500i_battery_chemistry": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _battery.type",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": "user",
          "entity_category": "diagnostic",
          "hidden_by": null,
          "icon": null,
          "id": "348752413ddf82d800794e34a38767f2",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "conversation": {
              "should_expose": false
            }
          },
          "original_device_class": null,
          "original_icon": null,
          "original_name": "Battery chemistry",
          "supported_features": 0,
          "translation_key": "battery_type",
          "unit_of_measurement": null,
          "state": null
        },
        "sensor.smt1500i_status": {
          "unique_id": "American Power Conversion _Smart-UPS 1500_AS1239220678  _ups.status.display",
          "platform": "nut",
          "previous_unique_id": null,
          "aliases": [],
          "area_id": null,
          "categories": {},
          "capabilities": null,
          "config_entry_id": "23c53f7408c9b6b0d7baf3ccacc3b488",
          "device_class": null,
          "device_id": "199c04e8100c3ca154a9519796a42d1b",
          "domain": "sensor",
          "disabled_by": null,
          "entity_category": null,
          "hidden_by": null,
          "icon": null,
          "id": "14487099ac9f01b0ce9bab09bbbf056d",
          "has_entity_name": true,
          "labels": [],
          "name": null,
          "options": {
            "cloud.alexa": {
              "should_expose": false
            },
            "cloud.google_assistant": {
              "should_expose": false
            },
            "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": "Smt1500I Status"
            },
            "last_changed": "2024-06-07T21:46:13.295808+00:00",
            "last_reported": "2024-06-10T11:24:13.372361+00:00",
            "last_updated": "2024-06-07T21:46:13.295808+00:00"
          }
        }
      }
    }
  }
}

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 5 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!

Code owner commands Code owners of `nut` 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 nut` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


nut documentation nut source (message by IssueLinks)

bdraco commented 5 months ago

It doesn't look like your UPS reports temperature via NUT. From your diagnostics the available status values:

    "status": {
        "battery.charge": "100",
        "battery.charge.low": "10",
        "battery.charge.warning": "50",
        "battery.runtime": "20100",
        "battery.runtime.low": "120",
        "battery.type": "PbAc",
        "battery.voltage": "27.4",
        "battery.voltage.nominal": "24.0",
        "device.mfr": "American Power Conversion ",
        "device.model": "Smart-UPS 1500",
        "device.serial": "AS1239220678  ",
        "device.type": "ups",
        "driver.name": "usbhid-ups",
        "driver.parameter.pollfreq": "30",
        "driver.parameter.pollinterval": "2",
        "driver.parameter.port": "auto",
        "driver.parameter.synchronous": "auto",
        "driver.parameter.vendorid": "051d*",
        "driver.version": "2.8.0",
        "driver.version.data": "APC HID 0.98",
        "driver.version.internal": "0.47",
        "driver.version.usb": "libusb-1.0.26 (API: 0x1000109)",
        "ups.beeper.status": "enabled",
        "ups.delay.shutdown": "20",
        "ups.firmware": "UPS 08.3 / ID=18",
        "ups.mfr": "American Power Conversion ",
        "ups.mfr.date": "2012/09/24",
        "ups.model": "Smart-UPS 1500",
        "ups.productid": "0003",
        "ups.serial": "AS1239220678  ",
        "ups.status": "OL",
        "ups.timer.reboot": "-1",
        "ups.timer.shutdown": "-1",
        "ups.vendorid": "051d"
      },

There may be a firmware update that adds support for temperature but that's some you would need to work with the APC on