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

plugs in integration Osramlightify mit powercalc nutzen #2858

Open
3 tasks done
Uwe1960 opened this issue Dec 27, 2024 · 18 comments
Open
3 tasks done

plugs in integration Osramlightify mit powercalc nutzen #2858

Uwe1960 opened this issue Dec 27, 2024 · 18 comments
Labels
autodiscovery enhancement New feature or request

Comments

@Uwe1960
Copy link

Uwe1960 commented Dec 27, 2024

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

I use the Osramlightify integration to integrate my Osram plugs into HA for stability reasons. I have created a model.json file identical to the Osram plug for these plugs under powercalc/profiles/... . Neither this nor the original Osram file is offered to me when adding the device using the “library”. The plugs are inserted by the integration with “light.xxx”.
Adding other bulbs or integrating the plug via Philips Hue works.

Describe the solution you'd like

My own model.json file under powercalc/profiles/... can be used.

Describe alternatives you've considered

The model.json file from Osram can be used.

Additional context

...

@Uwe1960 Uwe1960 added the enhancement New feature or request label Dec 27, 2024
@bramstroker
Copy link
Owner

Normally for power profiles having device_type: smart_switch powercalc will only consider switch.* entities to be relevant.
For hue (because it exposes the plugs as light) I added a condition for that long time ago to alsoallow smart_switch profiles to be used.
https://github.com/bramstroker/homeassistant-powercalc/blob/master/custom_components/powercalc/power_profile/power_profile.py#L311
I can extend that check with the integration you mention now, because it seems to behave the same.

Could you please have a look into config/.storage/core.entity_registry and lookup the JSON for the light entity you experience this issue with?

@Uwe1960
Copy link
Author

Uwe1960 commented Dec 27, 2024 via email

@bramstroker
Copy link
Owner

Fixed with #2861
You'll need to wait for next release.
Or install master in the meantime: https://docs.powercalc.nl/troubleshooting/install-master/

@Uwe1960
Copy link
Author

Uwe1960 commented Dec 27, 2024 via email

@bramstroker
Copy link
Owner

@Uwe1960 Could you install latest beta v1.17.0-beta.2, and see if that resolved your issue?

@Uwe1960
Copy link
Author

Uwe1960 commented Jan 3, 2025 via email

@bramstroker
Copy link
Owner

I see. I had fixed the scenario for discovery, but not selection in GUI model listing.

Should be fixed now with #2878
Will create new beta soon.

@bramstroker
Copy link
Owner

@Uwe1960
Copy link
Author

Uwe1960 commented Jan 4, 2025 via email

@bramstroker
Copy link
Owner

If I want to integrate my own Lightify socket via “Bibilothek”, my lightify directory created under powercalc/profiles with the json file is not displayed. The rexlight directory is displayed.

That should just work. Could you share / screenshot how your directory looks like now, and share the model.json contents?

As the Osramlightify integration only imports entities but no devices to HA, the integration in powercalc is not displayed under Device but only under Entities. Under integration entries, the entities are displayed without a device; under integrations surface, the new plug-ins are also not counted for Powercalc.The calculations seem to work.

Not 100% sure what you mean exactly. Powercalc only adds the power sensors to the device when there is an actual device in HA. Powercalc itself does not create devices.

@Uwe1960
Copy link
Author

Uwe1960 commented Jan 4, 2025 via email

@bramstroker
Copy link
Owner

@Uwe1960 Could you please try replying at github site itself? Don't think you can attach images when replying by email.

@Uwe1960
Copy link
Author

Uwe1960 commented Jan 4, 2025

powercalc-DIR
Osramlightify
Entitities

@bramstroker
Copy link
Owner

What does the model.json look like?
Did you restart HA after you have added the directory / file?

@Uwe1960
Copy link
Author

Uwe1960 commented Jan 4, 2025

yes, I restart HA after added the directory / file.

model.json

@bramstroker
Copy link
Owner

I see, should be fixed now with v1.17.0-beta.6.
Same "fix" I did to handle osram lights as switch was not applied to manufacturer dropdown, only the model dropdown.
Should hopefully work now.

Just curious. Why are you making a profile for LIGHTIFY Plug 01 as that one is in the built-in library?
What are you missing?

@Uwe1960
Copy link
Author

Uwe1960 commented Jan 5, 2025

Now my manufacturer Lightify is also working.
After the integration of the plugs via Osram did not work, I tried another way. Afterwards that, I “naturally” wanted to test this way with my programmer's heart, completeness, curiosity and all that - sorry. I will now delete the manufacturer Lightify and leave the integration via Osram.

@bramstroker
Copy link
Owner

Ah glad to hear it's working.
No need to say sorry, you have helped to iron out a bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autodiscovery enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants