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

Homematic Entities keep getting disabled #1965

Closed
7 of 12 tasks
Schleek opened this issue Jan 7, 2025 · 43 comments
Closed
7 of 12 tasks

Homematic Entities keep getting disabled #1965

Schleek opened this issue Jan 7, 2025 · 43 comments

Comments

@Schleek
Copy link

Schleek commented Jan 7, 2025

I agree to the following

  • I have read the documentation right now
  • I have read the FAQs right now
  • I am aware of the latest release notes
  • I am aware that an integration that was installed via HACS also needs to be updated via HACS
  • The Backend (CCU/Homegear/...) is working as expected, devices are taught in and are controllable by its own UI.
  • I am running the latest version of the custom_component (and Home Assistant)

The problem

I have several programs on my CCU3, such as switching off all the lights or opening all the shutters (stores).

On my Home Assistant dashboard, I have configured a section for quick settings with entries like:

  • entity: button.ccu3_webui_p_all_stores_up
    name: All storen up
  • entity: button.ccu3_webui_p_all_stores_down
    name: All stores down
    Since the last two versions of the Homematic(IP) Local integration, these entities are repeatedly getting disabled. I have to manually re-enable them each time, which disrupts the functionality of my setup.

Could you please investigate why this is happening and provide guidance on how to resolve the issue? Thank you.

What version of HomematicIP (local) has the issue?

1.77

What was the last working version of HomematicIP (local)?

No response

What type of installation are you running?

Home Assistant Container

What type of installation are you running for your homematic backend?

CCU3

Which version of your homematic backend are you running?

3.79.6

What hardware are you running for your system?

Synology DS920+

Which config details do you use

  • TLS
  • callback data (see)

Which interfaces do you use?

  • Homematic IP
  • Homematic (Bidcos-RF)
  • Groups (Heating-Group)
  • BidCos-Wired (HM-Wired)

Diagnostics information (no logs here)

config_entry-homematicip_local-7dec6ba51c96b466c442cc2017fa9b46(1).json

Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!

No response

Additional information

No response

@SDvanDeElk
Copy link

Same for me. It looks like that for me it happens only to system variables which are deactivated by default. If I activate them, they deactivate automatically after a certain period of time. However, not clear to me when. The timespan seems to vary. Sometimes it works for 1-2 days. sometimes the activation only lasts for a couple of hours.

Setup: HA 2024.12.3, Homematic (IP) local 1.76.1 CCU 3.79.6

@SukramJ
Copy link
Owner

SukramJ commented Jan 7, 2025

@SDvanDeElk Please update to the latest version.
@Schleek please add screenshots of your programs overview in CCU WebUI

@SDvanDeElk
Copy link

Never update on the .0 version. I wait with updating until the .1 version is available. Will check afterwards.

@SukramJ
Copy link
Owner

SukramJ commented Jan 7, 2025

Never update on the .0 version. I wait with updating until the .1 version is available. Will check afterwards.

@SDvanDeElk If you are no willing to update to 1.77.0 then please stop posting to this thread!

@SDvanDeElk
Copy link

Why should I stop giving hints. OP had an issue with the current version and he mentioned he had the issue since the last 2 versions. I was giving a hint that within the previous version the problem with disabling entities persisted and it seems not to be related to just his installation. Such information might be useful for various reasons and various people during trouble shooting. And as already mentioned, I will update with the next update of HA core to 2025.1.1.

@SukramJ
Copy link
Owner

SukramJ commented Jan 7, 2025

I simply don't care about older versions.
That's why i request people to update to the latest version before creating an issue.

@Schleek
Copy link
Author

Schleek commented Jan 7, 2025

Thank you @SukramJ for your answer and your hard work in this integration. Here are the screenshots (Mix of english, german and luxembourgish)
Capture1
Capture2

When activating the entities again last time, I associated a label with every entity. That label is gone as well, when the entity is getting disabled.

Here a look at the entities with the "button" label:
Capture3

@Schleek
Copy link
Author

Schleek commented Jan 7, 2025

I enabled them again this morning, now they are disabled again.

Capture4

@SukramJ
Copy link
Owner

SukramJ commented Jan 7, 2025

The program on the CCU is still enabled?

1.77.0 introduced switches to enable/disable programs on the CCU. Are these switches still available?

@SukramJ
Copy link
Owner

SukramJ commented Jan 7, 2025

Unfortunately I can't reproduce this myself, so only debugging helps.

  • Activate all entities as expected.
  • Enable debug logging for the integration, and wait until the problem occurs again.
  • Stop debug logging.
  • Upload the log file as zip here

@Schleek
Copy link
Author

Schleek commented Jan 7, 2025

Good evening,
I enabled the switches as well. 2 Minutes later, everything was again unavailable.
I cropped the two minutes 21:28 and 21:29 in the debug log.
HA_debug_Schleek.txt.zip

@eikowagenknecht
Copy link
Contributor

eikowagenknecht commented Jan 7, 2025

Happens to me as well. One thing to add: When they are automatically disabled, they also reset their name to the original value if the entity had been renamed in home assistant before. (eg a system variable I use as eg_bad_luefter reset itself to kg_flur_homematic_ccu3_sv_lueftung_bad. And they use the custom name in Home Assistant that was set.

If the type was changed (e.g. from switch to fan), the new type is completely gone and the old is available with the autogenerated name in disabled state.

Seems like they are somehow thoroughly deleted and then recreated from scratch.

For me the last trigger of this behavior was a reboot of the Homematic Addon.

@SukramJ
Copy link
Owner

SukramJ commented Jan 7, 2025

@Schleek Thanks, but we have to repeat this. Unfortunately not all packages were covered.

Please add this to your configuration.yaml, or extend the existing logging configuration, and restart HA afterwards.

logger:
  default: warn
  logs:
    hahomematic: debug
    custom_components.homematicip_local: debug

@SukramJ
Copy link
Owner

SukramJ commented Jan 7, 2025

@eikowagenknecht Feel free tu upload debug logs too.

@Schleek
Copy link
Author

Schleek commented Jan 8, 2025

@SukramJ
Thanks, I extended the logging. Here we go again, 3 minutes of logs where it happened.
home-assistant.Schleek.log.zip

@SukramJ
Copy link
Owner

SukramJ commented Jan 8, 2025

Thanks @eikowagenknecht for the hint with the CCU restart as trigger. So I could recreate and fix this.

@Schleek What is the trigger in your case? Looks like you reloaded the integration.

@SukramJ
Copy link
Owner

SukramJ commented Jan 8, 2025

Please test version 1.78.0b3 and give feedback

@Schleek
Copy link
Author

Schleek commented Jan 8, 2025

Thanks. Until now, it seems to be ok. Give me a day or two to confirm ;)

@Schleek
Copy link
Author

Schleek commented Jan 9, 2025

The enteties have been disabled again this morning :(

@SukramJ
Copy link
Owner

SukramJ commented Jan 9, 2025 via email

@Schleek
Copy link
Author

Schleek commented Jan 9, 2025

I have a daily reboot at 4:30 in the morning on my CCU3 in order to reduce the duty cycle load.
string stdout; string stderr; system.Save(); system.Exec ("/sbin/reboot", &stdout, &stderr);

@SukramJ
Copy link
Owner

SukramJ commented Jan 9, 2025

... in order to reduce the duty cycle load.

I don't think that makes sense, but that is not the topic here.

So the the sysvars/programs get disabled after reboot?

@Schleek
Copy link
Author

Schleek commented Jan 9, 2025

Exactely

@SeizG
Copy link

SeizG commented Jan 9, 2025

Same here. After reboot of the CCU/Raspberry all sysvar deactivated. To activate them is not the biggest problem, but also the icon and display names have been reseted.
Does it make sense to simple import a backup from HA to save time for correction of icons and display text?

@SukramJ
Copy link
Owner

SukramJ commented Jan 10, 2025

@Schleek I cannot reproduce this. Please add a new debug log created with version 1.78.0b3.

@Juice47

This comment was marked as off-topic.

@SukramJ
Copy link
Owner

SukramJ commented Jan 10, 2025

@Juice47 Please don't spam with unrelated problem. Your problem: You don't read release notes!

@Juice47
Copy link

Juice47 commented Jan 10, 2025

Why is it Spam, I have the same problem and additionally variables marked with hahm are completely unavailable.

@SukramJ
Copy link
Owner

SukramJ commented Jan 10, 2025

Thank you very much for following my hint to start reading the release notes!!! 1.76.0.

AND There is also a pinned issue #1948 for persons not reading release notes

@Juice47
Copy link

Juice47 commented Jan 10, 2025

Sorry and thanks, works o.k.

@winnieXY
Copy link

I can also confirm the issue mentioned above. When I enable the Sysvars after a certain amount of time all sysvars are again disabled (no reboot of the CCU on my side).
This is just to second the previous poster to show that this bug affects more people - I have currently no further/better information compared to the information already available within this bug.

@SukramJ
Copy link
Owner

SukramJ commented Jan 10, 2025

There is no need to show that more people are affected!

@SukramJ
Copy link
Owner

SukramJ commented Jan 10, 2025

As long as no information can be provided that brings up the issue, I am not interested in knowing whether anyone is affected! There is a version 1.78.0b3 that contains at least a partial solution to the problem. So feedback is only for this version relevant.

@Schleek
Copy link
Author

Schleek commented Jan 11, 2025

@SukramJ Sorry, I was quite busy at work the last days. The entities are available as long as I don't reboot the CCU3. I rebooted now and they became unavailable. I attached you the logged process.
schleek-logging.log.zip

@SukramJ
Copy link
Owner

SukramJ commented Jan 11, 2025

Thanks, please attach the integration diagnostics.

@Schleek
Copy link
Author

Schleek commented Jan 11, 2025

Here are the diagnostics
config_entry-homematicip_local-7dec6ba51c96b466c442cc2017fa9b46.json
Although the version seems to be 1.77.0, I manually upgraded by replacing all the files with the 1.78.0b3 version and restarted HA

@SukramJ
Copy link
Owner

SukramJ commented Jan 11, 2025

Looks like there is something wrong with your installation.
Version 1.78.0b3 will be displayed as 1.78.0. So guess you are still running an old version.

Please check /config/custom_components/homematicip_local/manifest.json. Version should be there 1.78.0. too.

@Schleek
Copy link
Author

Schleek commented Jan 11, 2025

Hm, weird. As I'm using Container Manager on my Synology to run HA, I unzipped all the files from the 1.78.0b3 on my hard drive, then uploaded them to /volume2/docker/homeassistant/custom_components/homematicip_local/
I restarted HA, but the /config/custom_components/homematicip_local/manifest.json still says 1.77.0
What am I doing wrong ? Sorry, for the maybe noob question

@SukramJ
Copy link
Owner

SukramJ commented Jan 11, 2025

Why don't you use HACS?

Maybe your docker container uses another /config folder?

@Schleek
Copy link
Author

Schleek commented Jan 11, 2025

Why don't you use HACS?
I can't configure HACS the way that it should use beta version, there is no option. I tried it with ChatGPT, at the end, it recommands me to update manually.

@SukramJ
Copy link
Owner

SukramJ commented Jan 11, 2025

I tried it with ChatGPT

ChatGPT is a mess. Good old docs are much better.

I would recommend:
Go to the integration in HACS and select re download integration. At the button you could select another version.

@Schleek
Copy link
Author

Schleek commented Jan 11, 2025

@SukramJ Thank you for you help. I upgraded to 1.78.0b4 now through HACS. I restartet HA and restarted the CCU3. The entities don't get disabled anymore. Problem solved !

@SukramJ
Copy link
Owner

SukramJ commented Jan 11, 2025

Thank you for your active participation. This is how it works.

@SukramJ SukramJ closed this as completed Jan 11, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants