-
Notifications
You must be signed in to change notification settings - Fork 273
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
Comments
Normally for power profiles having Could you please have a look into |
Hello bramstroker,
my system is “somewhat” larger, my enthusiasm is even greater, my knowledge is unfortunately less, but I have a background as a computer scientist - thank you for your efforts in advance.
the device "Buero Papierwolf Steckdose" is integrated via "osramlightify",
{"aliases":[],"area_id":"buero","categories":{},"capabilities":{"supported_color_modes":["onoff"]},"config_entry_id":null,"created_at":"1970-01-01T00:00:00+00:00","device_class":null,"device_id":null,"disabled_by":null,"entity_category":null,"entity_id":"light.buero_papierwolf_steckdose","hidden_by":null,"icon":"mdi:power-plug","id":"b40593ee223bd78df531a6396717d815","has_entity_name":false,"labels":[],"modified_at":"2024-11-04T10:45:43.435889+00:00","name":"Buero Papierwolf Steckdose","options":{"conversation":{"should_expose":false},"cloud.google_assistant":{"should_expose":true}},"original_device_class":null,"original_icon":null,"original_name":"Papierwolf","platform":"osramlightify","supported_features":0,"translation_key":null,"unique_id":9518399593890361433,"previous_unique_id":null,"unit_of_measurement":null},
the device "Studio Schreibtisch Lampe Steckdose" is integrated via (Philips) "hue".
{"aliases":[],"area_id":null,"categories":{},"capabilities":{"supported_color_modes":["onoff"]},"config_entry_id":"e88a27fbfd5e39c56c82f04618bb0195","created_at":"2024-08-30T16:08:27.762842+00:00","device_class":null,"device_id":"94bb6f245a41504d9a8fc95e161a0e48","disabled_by":null,"entity_category":null,"entity_id":"light.studio_schreibtisch_lampe_steckdose","hidden_by":null,"icon":null,"id":"36d6e9650138efbaff735cc493032f47","has_entity_name":true,"labels":[],"modified_at":"2024-11-04T08:08:50.856655+00:00","name":null,"options":{"conversation":{"should_expose":false},"cloud.google_assistant":{"should_expose":true}},"original_device_class":null,"original_icon":null,"original_name":null,"platform":"hue","supported_features":0,"translation_key":null,"unique_id":"142d544a-4468-42f3-ba08-ceab926b6dd6","previous_unique_id":null,"unit_of_measurement":null}, {"aliases":[],"area_id":null,"categories":{},"capabilities":{"state_class":"measurement"},"config_entry_id":"0326d55d018b5c582603e580adbd41fa","created_at":"1970-01-01T00:00:00+00:00","device_class":null,"device_id":"94bb6f245a41504d9a8fc95e161a0e48","disabled_by":null,"entity_category":null,"entity_id":"sensor.studio_schreibtisch_lampe_steckdose_calc_power","hidden_by":null,"icon":null,"id":"13aeebb50f78445465abaa96b7ff4a10","has_entity_name":false,"labels":[],"modified_at":"2024-12-26T15:50:31.173625+00:00","name":"Studio Schreibtisch Lampe Steckdose Calc Power","options":{"cloud.google_assistant":{"should_expose":false},"conversation":{"should_expose":false},"sensor":{"display_precision":2}},"original_device_class":"power","original_icon":null,"original_name":"Studio Globus Device Power","platform":"powercalc","supported_features":0,"translation_key":null,"unique_id":"pc_75a1df96-23b4-45b6-9644-73497d2a4502","previous_unique_id":null,"unit_of_measurement":"W"}, {"aliases":[],"area_id":null,"categories":{},"capabilities":{"state_class":"total_increasing"},"config_entry_id":"0326d55d018b5c582603e580adbd41fa","created_at":"1970-01-01T00:00:00+00:00","device_class":null,"device_id":"94bb6f245a41504d9a8fc95e161a0e48","disabled_by":null,"entity_category":null,"entity_id":"sensor.studio_schreibtisch_lampe_steckdose_calc_energiezaehler","hidden_by":null,"icon":null,"id":"631a6e5b0deef64a2b4279d4e586efa9","has_entity_name":false,"labels":[],"modified_at":"2024-10-10T06:50:53.295344+00:00","name":"Studio Schreibtisch Lampe Steckdose Calc Energiezaehler","options":{"cloud.google_assistant":{"should_expose":false},"conversation":{"should_expose":false},"sensor":{"display_precision":2,"unit_of_measurement":"kWh","suggested_display_precision":4}},"original_device_class":"energy","original_icon":"mdi:lightning-bolt","original_name":"Studio Globus Device Energy","platform":"powercalc","supported_features":0,"translation_key":null,"unique_id":"pc_75a1df96-23b4-45b6-9644-73497d2a4502_energy","previous_unique_id":null,"unit_of_measurement":null}, {"aliases":[],"area_id":null,"categories":{},"capabilities":{"state_class":"total_increasing"},"config_entry_id":"01J9BKJYC3DB6K0K2M7V9M932V","created_at":"2024-10-04T11:10:37.446450+00:00","device_class":null,"device_id":"94bb6f245a41504d9a8fc95e161a0e48","disabled_by":null,"entity_category":null,"entity_id":"sensor.studio_schreibtisch_lampe_steckdose_energiezaehlercalc_monat","hidden_by":null,"icon":null,"id":"721277010bc52fc8adf94b07f36b61e8","has_entity_name":false,"labels":[],"modified_at":"2024-12-26T15:50:10.722051+00:00","name":"Studio Schreibtisch Lampe Steckdose EnergiezaehlerCalc Monat","options":{"cloud.google_assistant":{"should_expose":false},"conversation":{"should_expose":false},"sensor":{"display_precision":2,"unit_of_measurement":"kWh"}},"original_device_class":"energy","original_icon":null,"original_name":"Studio Schreibtisch Lampe EnergiezaehlerCalc Monat","platform":"utility_meter","supported_features":0,"translation_key":"utility_meter","unique_id":"01J9BKJYC3DB6K0K2M7V9M932V","previous_unique_id":null,"unit_of_measurement":null},
spielerischer Gruß Uwe.
Gesendet: Freitag, 27. Dezember 2024 um 16:09
Von: "Bram Gerritsen" ***@***.***>
An: bramstroker/homeassistant-powercalc ***@***.***>
CC: "Uwe Schrader" ***@***.***>,Author ***@***.***>
Betreff: Re: [bramstroker/homeassistant-powercalc] plugs in integration Osramlightify mit powercalc nutzen (Issue #2858)
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#L311I 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?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Fixed with #2861 |
Hi Bram,I wait for the next release,thanks Uwe.Am 27.12.24, 18:08 schrieb Bram Gerritsen ***@***.***>:
Fixed with #2861
You'll need to wait for next release.
Or install master in the meantime: https://docs.powercalc.nl/troubleshooting/install-master/
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@Uwe1960 Could you install latest beta v1.17.0-beta.2, and see if that resolved your issue? |
Hi Bram,
v1.17.0-beta.3 unfortunately does not solve my problem. If I want to integrate the Lightify socket via “Bibilothek”, my lightify directory created under powercalc/profiles with the json file is not displayed. The rexlight directory is displayed. In the standard profiles, the “LIGHTIFY Plug 01” directory is also not offered to me under osram.
regards, Uwe.
Gesendet: Freitag, 3. Januar 2025 um 09:59
Von: "Bram Gerritsen" ***@***.***>
An: bramstroker/homeassistant-powercalc ***@***.***>
CC: "Uwe Schrader" ***@***.***>,Mention ***@***.***>
Betreff: Re: [bramstroker/homeassistant-powercalc] plugs in integration Osramlightify mit powercalc nutzen (Issue #2858)
@Uwe1960 Could you install latest beta v1.17.0-beta.2, and see if that resolved your issue?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I see. I had fixed the scenario for discovery, but not selection in GUI model listing. Should be fixed now with #2878 |
Hi Bram,
v1.17.0-beta.4 solve my problem. In the standard profiles, the “LIGHTIFY Plug 01” directory is now offered to me under osram.
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.
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.
The terms I have used may not be (completely) correct, as I have translated my German HA terms.
Many thanks,
regards, Uwe.
Gesendet: Freitag, 3. Januar 2025 um 13:08
Von: "Bram Gerritsen" ***@***.***>
An: bramstroker/homeassistant-powercalc ***@***.***>
CC: "Uwe Schrader" ***@***.***>,Mention ***@***.***>
Betreff: Re: [bramstroker/homeassistant-powercalc] plugs in integration Osramlightify mit powercalc nutzen (Issue #2858)
https://github.com/bramstroker/homeassistant-powercalc/releases/tag/v1.17.0-beta.4
Please try again
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
That should just work. Could you share / screenshot how your directory looks like now, and share the model.json contents?
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. |
Hi Bram,
sure
/ screenshot how your directory looks like now: powercalc-DIR
The model is identical to the Osram model.
regards Uwe.
Gesendet: Samstag, 4. Januar 2025 um 13:52
Von: "Bram Gerritsen" ***@***.***>
An: bramstroker/homeassistant-powercalc ***@***.***>
CC: "Uwe Schrader" ***@***.***>,Mention ***@***.***>
Betreff: Re: [bramstroker/homeassistant-powercalc] plugs in integration Osramlightify mit powercalc nutzen (Issue #2858)
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.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Uwe1960 Could you please try replying at github site itself? Don't think you can attach images when replying by email. |
What does the |
yes, I restart HA after added the directory / file. |
I see, should be fixed now with v1.17.0-beta.6. Just curious. Why are you making a profile for |
Now my manufacturer Lightify is also working. |
Ah glad to hear it's working. |
Checklist
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
...
The text was updated successfully, but these errors were encountered: