Skip to content
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

Group options disappeared from group #2971

Open
5 tasks done
blair287 opened this issue Jan 18, 2025 · 7 comments
Open
5 tasks done

Group options disappeared from group #2971

blair287 opened this issue Jan 18, 2025 · 7 comments
Labels
bug Something isn't working config-flow group

Comments

@blair287
Copy link

System Health details

System Information

version core-2025.1.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.1
os_name Linux
os_version 6.6.66-haos
arch x86_64
timezone Europe/London
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4970
Installed Version 2.0.3
Stage running
Available Repositories 1505
Downloaded Repositories 27
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.1
update_channel stable
supervisor_version supervisor-2024.12.3
agent_version 1.6.0
docker_version 27.2.0
disk_total 62.3 GB
disk_used 28.8 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization kvm
board ova
supervisor_api ok
version_api ok
installed_addons Samba share (12.4.0), File editor (5.8.0), ESPHome Device Builder (2024.12.4), Home Assistant Google Drive Backup (0.112.1), AdGuard Home (5.2.2), Node-RED (19.0.0), Nginx Proxy Manager (1.0.1), Z-Wave JS UI (3.18.0), Grocy (0.23.0), Limited guest access (0.1.33), Advanced SSH & Web Terminal (20.0.0), Frigate (Full Access) (0.14.1), EMQX (0.7.2), Matter Server (7.0.0), SAIC MQTT Gateway (Python) (0.7.1)
Dashboards
dashboards 3
resources 12
views 30
mode storage
Recorder
oldest_recorder_run 3 January 2025 at 21:45
current_recorder_run 18 January 2025 at 11:54
estimated_db_size 1458.27 MiB
database_engine sqlite
database_version 3.47.1

Checklist

  • I have read the FAQ to see if there is a known solution to my problem.
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Group options have disappeared for one of my groups

Only basic options are shown on another group it's still present.

Image

Image

Reproduction steps

One group has only basic option other group has basic and group options.

Debug logs

N/A

Diagnostics dump or YAML config

No response

@blair287 blair287 added the bug Something isn't working label Jan 18, 2025
@bramstroker
Copy link
Owner

Could you please share diagnostics for the affected group.
You can do by clicking 3 dots, download diagnostics.

@blair287
Copy link
Author

Could you please share diagnostics for the affected group. You can do by clicking 3 dots, download diagnostics.

config_entry-powercalc-01JCC17G7XNVX4E8WMG9782D2C.json

@bramstroker
Copy link
Owner

bramstroker commented Jan 19, 2025

It was specifically the group type domain which did not have an option flow yet. It never had an option flow for this specific group type.
Implemented that with #2973

@blair287
Copy link
Author

It was specifically the group type domain which did not have an option flow yet. It never had an option flow for this specific group type. Implemented that with #2973

I created some entities manually for lights that weren't automatically found and I'm sure i had to add them to the group, but now I can't find that option.

@bramstroker
Copy link
Owner

Looking at the diagnostics again I see following information saved on the config entry:

"data": {
        "_energy_entity": "sensor.lights_energy",
        "create_energy_sensor": true,
        "create_utility_meters": false,
        "domain": "light",
        "group_member_sensors": [
          "01JCC27H0JMSF5DTRESBP0RSPN",
          "01JCC1RHB6472MTJGYT465MBYC",
          "01JCC5E9MB5PM24WNVD6EYX4XT",
          "01JCC1TGHHARM8498Z54832VKB",
          "01JCC1H2DPRTBGP71WE5RE4Z7E",
          "01JCC1KMZBWG7VW9HVKZWSCQV2",
          "01JCC5FWMK5VQYQEQJDJZ0XP5F"
        ],
        "group_type": "domain",
        "name": "Lights",
        "sensor_type": "group",
        "unique_id": "powercalc_domaingroup_light"
      },

However I'm unsure how you ended up with group_type domain and group_member_sensors.
group_member_sensors should only be set when group_type is custom which is the group type for standard groups, where you add sensors to manually.

Did you maybe add new sensors to the group by choosing group in the configuration wizard?
If yes, that would be the bug as only standard groups should be selectable there not domain groups.

@blair287
Copy link
Author

I'm not sure tbh which way I did it was too long ago lol all i know was at some point I added some devices manually as they didn't have power profiles. However they are also lights.

@bramstroker
Copy link
Owner

I think that would be the reason.
When you setup a new virtual power sensor you have the option to assign it to a group directly.

Image

Currently it's also possible to choose groups from other group types than standard there. So you could also choose domain group here, which you probably did previously. After setup powercalc will update the group to have that group member added in group_member_sensors.
However for domain groups this won't have any effect, as it does not look at this setting.
So that's also why you can't edit members for this group in the options.

I have fixed this now with #3009 so you can only select standard groups in the dialog, and not the other group types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working config-flow group
Projects
None yet
Development

No branches or pull requests

2 participants