-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Powercalc Group shows wrong Power Sensors / (counts Device Power instead of Power) #2185
Comments
This is actually working as expected. To also include the existing power and energy sensors in your group (not the virtual "device power" ones) you can add the in Hope this helps and clarifies things up for you. |
When you toggle utility meter for the "discovered" shelly plug profile, it only applies to the virtual power and energy sensor created by powercalc. When you also would like to create the utility meters for the existing power and energy sensors provided by the smart plug itself you can use the "Real power" option, see here: https://homeassistant-powercalc.readthedocs.io/en/latest/sensor-types/real-power-sensor.html. |
By recreated you mean you removed the ones added by powercalc and created manually using "Energy from real power" option? |
Sure Plug 4: config_entry-powercalc-a26ffec2a83a8a9f923ba3ca27a94a2d.json PlusPlugS4 is the discovered one / from library : config_entry-powercalc-310939cde88624e10fadf695cadb5270.json |
I have looked into the code and only powercalc entries created with "Virtual power (manual or library)" are listed here. |
Fixed with #2187. |
Great 👍 I'm gonna test with next release update. |
System Health details
System Information
Home Assistant Community Store
AccuWeather
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Spotify
Checklist
Describe the issue
Severel Smart Plugs (Nous A1T, PlusPlugS), which are added through discovery in the GUI do not work correctly when using then in a Powercalc Group. They all Have Device Power Sensor, also when enabling Utilitymeter afterwards.
When i create a Group with theses Powercalc Sensors they only count the "Device Power" not the "Power".
Using self created virtual sensors which dont have Device Power it works flawlessly.
Reproduction steps
...
Debug logs
Diagnostics dump or YAML config
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2024.4.0",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.12.2",
"docker": true,
"arch": "x86_64",
"timezone": "Europe/Berlin",
"os_name": "Linux",
"os_version": "6.6.20-haos",
"supervisor": "2024.03.1",
"host_os": "Home Assistant OS 12.1",
"docker_version": "24.0.7",
"chassis": "vm",
"run_as_root": true
},
"custom_components": {
"variable": {
"version": "3.4.2",
"requirements": [
"iso4217==1.11.20220401"
]
},
"tuya_local": {
"version": "2024.3.2",
"requirements": [
"tinytuya==1.13.2"
]
},
"virtual": {
"version": "0.8.0.1",
"requirements": []
},
"tuya_v2": {
"version": "1.5.0",
"requirements": [
"tuya-iot-py-sdk==0.4.1"
]
},
"localtuya": {
"version": "5.2.1",
"requirements": []
},
"better_thermostat": {
"version": "1.4.0",
"requirements": []
},
"pyscript": {
"version": "1.5.0",
"requirements": [
"croniter==1.3.8",
"watchdog==2.3.1"
]
},
"truenas": {
"version": "0.0.0",
"requirements": []
},
"spotcast": {
"version": "v3.6.30",
"requirements": []
},
"spook": {
"version": "2.2.4",
"requirements": []
},
"uptime_kuma": {
"version": "2.1.0",
"requirements": [
"pyuptimekuma-hass"
]
},
"climate_group": {
"version": "0.4.2",
"requirements": []
},
"alexa_media": {
"version": "4.9.2",
"requirements": [
"alexapy==1.27.10",
"packaging>=20.3",
"wrapt>=1.14.0"
]
},
"bosch": {
"version": "0.25.0",
"requirements": [
"bosch-thermostat-client==v0.25.0"
]
},
"powercalc": {
"version": "v1.11.4",
"requirements": [
"numpy>=1.21.1"
]
},
"alarmo": {
"version": "v1.9.15",
"requirements": []
},
"nodered": {
"version": "3.1.3",
"requirements": []
},
"openmediavault": {
"version": "0.0.0",
"requirements": []
},
"o365": {
"version": "v4.7.0",
"requirements": [
"O365==2.0.34",
"BeautifulSoup4>=4.10.0"
]
},
"sonoff": {
"version": "3.6.0",
"requirements": [
"pycryptodome>=3.6.6"
]
},
"switch_manager": {
"version": "1.3.3",
"requirements": []
},
"battery_notes": {
"version": "2.2.5",
"requirements": []
},
"bosch_shc": {
"version": "0.4.88",
"requirements": [
"boschshcpy==0.2.91"
]
},
"ui_lovelace_minimalist": {
"version": "v1.3.9",
"requirements": [
"aiofiles==0.8.0",
"aiogithubapi>=22.2.4"
]
},
"hacs": {
"version": "1.34.0",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"dwains_dashboard": {
"version": "3.6.0",
"requirements": []
},
"sleep_as_android": {
"version": "2.3.0",
"requirements": [
"pyhaversion"
]
}
},
"integration_manifest": {
"after_dependencies": [
"integration",
"utility_meter"
],
"codeowners": [
"@bramstroker"
],
"config_flow": true,
"dependencies": [
"light",
"group",
"template",
"select",
"utility_meter"
],
"documentation": "https://github.com/bramstroker/homeassistant-powercalc",
"domain": "powercalc",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/bramstroker/homeassistant-powercalc/issues",
"name": "Powercalc",
"requirements": [
"numpy>=1.21.1"
],
"version": "v1.11.4",
"is_built_in": false
},
"data": {
"entry": {
"entry_id": "25569d91b6b50cda79c0b7fad79d66ad",
"version": 2,
"minor_version": 1,
"domain": "powercalc",
"title": "PlusPlugS 4",
"data": {
"entity_id": "switch.plug_4",
"manufacturer": "shelly",
"model": "shelly plus plug s",
"unique_id": "pc_E465B8B5B2A8-switch:0",
"sensor_type": "virtual_power",
"name": "PlusPlugS 4",
"_power_entity": "sensor.plusplugs_4_device_power",
"_energy_entity": "sensor.plusplugs_4_device_energy"
},
"options": {},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "integration_discovery",
"unique_id": "pc_E465B8B5B2A8-switch:0",
"disabled_by": null
}
}
}
The text was updated successfully, but these errors were encountered: