Closed emile-bodin closed 1 year ago
Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
The summation delivered entity should be the one you can add to energy.
sensor.consumption_computer_kantoor is the only one showing up under "Add a device" in the energy config page.
summation delivered is working on the device page and any other location.
Hmm. Make sure the "summation delivered" sensor updated at least once more with ZHA, also try to refresh your browser and/or try to restart HA Core (and refresh again). Since the sensor entity was created properly, it should show up.
try searching for Summation please
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
I migrated from Deconz to ZHA and npw power consumption on plugs can not be added to energy config.
What version of Home Assistant Core has the issue?
2023.3.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
zha
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha/
Diagnostics information
{ "home_assistant": { "installation_type": "Home Assistant Supervised", "version": "2023.3.1", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.10", "docker": true, "arch": "x86_64", "timezone": "Europe/Amsterdam", "os_name": "Linux", "os_version": "5.10.0-19-amd64", "supervisor": "2023.03.1", "host_os": "Debian GNU/Linux 11 (bullseye)", "docker_version": "20.10.21", "chassis": "desktop", "run_as_root": true }, "custom_components": { "powercalc": { "version": "v1.3.7", "requirements": [ "numpy>=1.21.1" ] }, "nodered": { "version": "1.1.3", "requirements": [] }, "neerslag": { "version": "2022.07.07.1", "requirements": [] }, "hacs": { "version": "1.31.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "braviatv_psk": { "version": "0.4.2", "requirements": [ "pySonyBraviaPSK==0.2.4" ] }, "dwains_dashboard": { "version": "3.3.0", "requirements": [] }, "spotcast": { "version": "v3.6.30", "requirements": [ "spotify_token==1.0.0" ] }, "tuya_v2": { "version": "1.5.0", "requirements": [ "tuya-iot-py-sdk==0.4.1" ] }, "ui_lovelace_minimalist": { "version": "v1.1.6-hotfix", "requirements": [ "aiofiles==0.8.0", "aiogithubapi>=22.2.4" ] }, "google_home": { "version": "1.9.17", "requirements": [ "glocaltokens==0.7.0" ] }, "attributes": { "version": "1.2.0", "requirements": [] }, "illuminance": { "version": "4.0.0", "requirements": [] }, "browser_mod": { "version": "2.2.0", "requirements": [] }, "simpleicons": { "version": "v2.2.0", "requirements": [ "simpleicons==7.14.0" ] }, "fontawesome": { "version": "2.1.5", "requirements": [] }, "virtual": { "version": "0.8.0b1", "requirements": [] }, "auto_backup": { "version": "1.3.1", "requirements": [] }, "monitor_docker": { "version": "1.10", "requirements": [ "aiodocker==0.21.0", "python-dateutil==2.8.2" ] }, "localtuya": { "version": "5.0.0", "requirements": [] }, "lovelace_gen": { "version": "0.1.1", "requirements": [ "jinja2" ] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "config_flow": true, "dependencies": [ "file_upload" ], "documentation": "https://www.home-assistant.io/integrations/zha", "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp" ], "requirements": [ "bellows==0.34.9", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.93", "zigpy-deconz==0.19.2", "zigpy==0.53.2", "zigpy-xbee==0.16.2", "zigpy-zigate==0.10.3", "zigpy-znp==0.9.3" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "2652", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "sonoffplus", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "sonoffplus", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "zigstar", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "conbee", "known_devices": [ "Conbee II" ] }, { "vid": "10C4", "pid": "8A2A", "description": "zigbee", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "zigate", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "zigate", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "bv 2010/10", "known_devices": [ "Bitron Video AV2010/10" ] } ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "zigate" }, { "type": "_zigstar_gw._tcp.local.", "name": "zigstar" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06" } ], "is_built_in": true }, "data": { "ieee": "REDACTED", "nwk": 9847, "manufacturer": "frient A/S", "model": "SPLZB-132", "name": "frient A/S SPLZB-132", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "manufacturer_code": 4117, "power_source": "Mains", "lqi": 255, "rssi": -80, "last_seen": "2023-03-09T12:21:43", "available": true, "device_type": "Router", "signature": { "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4117, maximum_buffer_size=72, maximum_incoming_transfer_size=1560, server_mask=0, maximum_outgoing_transfer_size=1560, descriptor_capability_field=<DescriptorCapability.NONE: 0>, allocate_address=True, is_alternate_pan_coordinator=False, is_coordinator=False, is_end_device=False, is_full_function_device=True, is_mains_powered=True, is_receiver_on_when_idle=True, is_router=True, *is_security_capable=False)", "endpoints": { "1": { "profile_id": 49353, "device_type": "0x0001", "in_clusters": [ "0x0005", "0x0006" ], "out_clusters": [] }, "2": { "profile_id": 260, "device_type": "0x0051", "in_clusters": [ "0x0000", "0x0002", "0x0003", "0x0004", "0x0005", "0x0006", "0x0009", "0x0702", "0x0b04" ], "out_clusters": [ "0x0000", "0x0003", "0x000a", "0x0019", "0x0406" ] } } }, "active_coordinator": false, "entities": [ { "entity_id": "sensor.computer_ac_frequency", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_active_power", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_device_temperature", "name": "frient A/S SPLZB-132" }, { "entity_id": "button.computer_identify", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_instantaneous_demand", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_lqi", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_power_factor", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_rms_current", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_rms_voltage", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_rssi", "name": "frient A/S SPLZB-132" }, { "entity_id": "sensor.computer_summation_delivered", "name": "frient A/S SPLZB-132" }, { "entity_id": "switch.computer_switch", "name": "frient A/S SPLZB-132" }, { "entity_id": "switch.computer_switch_2", "name": "frient A/S SPLZB-132" } ], "neighbors": [ { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xFCA0", "permit_joining": "NotAccepting", "depth": "15", "lqi": "116" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x0322", "permit_joining": "NotAccepting", "depth": "15", "lqi": "124" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xD5F2", "permit_joining": "NotAccepting", "depth": "15", "lqi": "117" }, { "device_type": "Coordinator", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x0000", "permit_joining": "NotAccepting", "depth": "0", "lqi": "101" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x6057", "permit_joining": "NotAccepting", "depth": "15", "lqi": "91" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x028B", "permit_joining": "NotAccepting", "depth": "15", "lqi": "89" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xF91D", "permit_joining": "NotAccepting", "depth": "15", "lqi": "104" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xCE4C", "permit_joining": "NotAccepting", "depth": "15", "lqi": "89" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xDAFC", "permit_joining": "NotAccepting", "depth": "15", "lqi": "89" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x9EC7", "permit_joining": "NotAccepting", "depth": "15", "lqi": "87" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Child", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0x4EF2", "permit_joining": "NotAccepting", "depth": "3", "lqi": "101" }, { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Child", "extended_pan_id": "REDACTED", "ieee": "REDACTED", "nwk": "0xBEF7", "permit_joining": "NotAccepting", "depth": "3", "lqi": "101" } ], "routes": [ { "dest_nwk": "0x0000", "route_status": "Active", "memory_constrained": false, "many_to_one": false, "route_record_required": true, "next_hop": "0xFCA0" } ], "endpoint_names": [ { "name": "SMART_PLUG" }, { "name": "unknown 1 device_type of 0xc0c9 profile id" } ], "user_given_name": "Computer", "device_reg_id": "55ee3df7956af6fa5a67ff5b7c277498", "area_id": "kantoor", "cluster_details": { "2": { "device_type": { "name": "SMART_PLUG", "id": 81 }, "profile_id": 260, "in_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": { "0x0004": { "attribute_name": "manufacturer", "value": "frient A/S" }, "0x0005": { "attribute_name": "model", "value": "SPLZB-132" } }, "unsupported_attributes": {} }, "0x0702": { "endpoint_attribute": "smartenergy_metering", "attributes": { "0x0000": { "attribute_name": "current_summ_delivered", "value": 226723 }, "0x0200": { "attribute_name": "status", "value": 0 }, "0x0300": { "attribute_name": "unit_of_measure", "value": 0 }, "0x0301": { "attribute_name": "multiplier", "value": 1 }, "0x0302": { "attribute_name": "divisor", "value": 1000 }, "0x0303": { "attribute_name": "summation_formatting", "value": 248 }, "0x0304": { "attribute_name": "demand_formatting", "value": 248 }, "0x0306": { "attribute_name": "metering_device_type", "value": 0 }, "0x0400": { "attribute_name": "instantaneous_demand", "value": 69 } }, "unsupported_attributes": { "0x0100": { "attribute_name": "current_tier1_summ_delivered" }, "0x0104": { "attribute_name": "current_tier3_summ_delivered" }, "0x0102": { "attribute_name": "current_tier2_summ_delivered" }, "0x0020": { "attribute_name": "active_register_tier_delivered" }, "0x010a": { "attribute_name": "current_tier6_summ_delivered" }, "0x0106": { "attribute_name": "current_tier4_summ_delivered" }, "0x0108": { "attribute_name": "current_tier5_summ_delivered" }, "0x001a": { "attribute_name": "current_in_energy_carrier_demand" }, "0x0015": { "attribute_name": "current_in_energy_carrier_summ" } } }, "0x0003": { "endpoint_attribute": "identify", "attributes": {}, "unsupported_attributes": {} }, "0x0009": { "endpoint_attribute": "alarms", "attributes": {}, "unsupported_attributes": { "0xfffe": { "attribute_name": "attr_reporting_status" } } }, "0x0b04": { "endpoint_attribute": "electrical_measurement", "attributes": { "0x0000": { "attribute_name": "measurement_type", "value": 11 }, "0x0300": { "attribute_name": "ac_frequency", "value": 50000 }, "0x0400": { "attribute_name": "ac_frequency_multiplier", "value": 1 }, "0x0401": { "attribute_name": "ac_frequency_divisor", "value": 1000 }, "0x0505": { "attribute_name": "rms_voltage", "value": 23371 }, "0x0507": { "attribute_name": "rms_voltage_max", "value": 23928 }, "0x0508": { "attribute_name": "rms_current", "value": 479 }, "0x050a": { "attribute_name": "rms_current_max", "value": 667 }, "0x050b": { "attribute_name": "active_power", "value": 78 }, "0x0600": { "attribute_name": "ac_voltage_multiplier", "value": 1 }, "0x0601": { "attribute_name": "ac_voltage_divisor", "value": 100 }, "0x0602": { "attribute_name": "ac_current_multiplier", "value": 1 }, "0x0603": { "attribute_name": "ac_current_divisor", "value": 1000 }, "0x0604": { "attribute_name": "ac_power_multiplier", "value": 1 }, "0x0605": { "attribute_name": "ac_power_divisor", "value": 1000 } }, "unsupported_attributes": { "0x0402": { "attribute_name": "power_multiplier" }, "0x0403": { "attribute_name": "power_divisor" }, "0x0302": { "attribute_name": "ac_frequency_max" }, "0x0103": { "attribute_name": "dc_current" }, "0x0305": { "attribute_name": "total_reactive_power" }, "0x0306": { "attribute_name": "total_apparent_power" }, "0x0304": { "attribute_name": "total_active_power" }, "0x050d": { "attribute_name": "active_power_max" }, "0x050f": { "attribute_name": "apparent_power" }, "0x090f": { "attribute_name": "apparent_power_ph_b" }, "0x0a0f": { "attribute_name": "apparent_power_ph_c" } } }, "0x0006": { "endpoint_attribute": "on_off", "attributes": { "0x0000": { "attribute_name": "on_off", "value": 1 } }, "unsupported_attributes": { "0x4003": { "attribute_name": "start_up_on_off" } } }, "0x0004": { "endpoint_attribute": "groups", "attributes": {}, "unsupported_attributes": {} }, "0x0005": { "endpoint_attribute": "scenes", "attributes": {}, "unsupported_attributes": {} }, "0x0002": { "endpoint_attribute": "device_temperature", "attributes": { "0x0000": { "attribute_name": "current_temperature", "value": 30 } }, "unsupported_attributes": {} } }, "out_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": {}, "unsupported_attributes": {} }, "0x0019": { "endpoint_attribute": "ota", "attributes": {}, "unsupported_attributes": {} }, "0x000a": { "endpoint_attribute": "time", "attributes": {}, "unsupported_attributes": {} }, "0x0003": { "endpoint_attribute": "identify", "attributes": {}, "unsupported_attributes": {} }, "0x0406": { "endpoint_attribute": "occupancy", "attributes": {}, "unsupported_attributes": {} } } }, "1": { "device_type": { "name": "unknown", "id": 1 }, "profile_id": 49353, "in_clusters": { "0x0005": { "endpoint_attribute": "scenes", "attributes": {}, "unsupported_attributes": {} }, "0x0006": { "endpoint_attribute": "on_off", "attributes": {}, "unsupported_attributes": {} } }, "out_clusters": {} } } } }
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The sensor that shows under the energy conifg is under the device_class power.
sensor.computer_instantaneous_demand state_class: measurement device_type: Electric Metering status: NO_ALARMS unit_of_measurement: W device_class: power friendly_name: Computer Instantaneous demand
But when it is added a error shows.
Entity not defined Check the integration or your configuration that provides: