MyHOME icon indicating copy to clipboard operation
MyHOME copied to clipboard

My home stopping Update

Open manueltn78 opened this issue 1 year ago • 28 comments

Hi, I have Ha that stop updating My home components. I see powered off lights that are On, anfd if I try to toggle, the button return to off even with the light on.... The only thingI can do to solve is to reload the gateway (In my case a MH201). Anyone have a solution? thank you.

manueltn78 avatar Jul 30 '24 20:07 manueltn78

I have an update: In network switch i noti c'è that every 6-8 minutes the link go off and on. After this the integration stop working an I have to reload it!

manueltn78 avatar Aug 09 '24 08:08 manueltn78

Ha that stop updating My home components.

Updating also disappears after a few minutes of work. Rebooting gateway MH200N has no effect. Reloading MyHome integration restores functionality for a short time. short.log

Anyone have a solution?

Тhe same question :(

zltigo avatar Aug 17 '24 20:08 zltigo

Same issue here. I have to reload the integration (at the moment I have an automation that does this every 10 minutes, but it is both dangerous (for automations that may not complete) and annoying).

riccardilorenzo avatar Sep 19 '24 21:09 riccardilorenzo

So far the way out of this state is as follows:

  1. shutdown HA
  2. reset HM200N
  3. wait start HM200N
  4. up HA After this it works for several weeks. I have an idea for a more convenient automatic option. I'm waiting for a failure to check it.

zltigo avatar Oct 22 '24 16:10 zltigo

Exact same issue. Plugin is working properly until it doesn't (very short amount of time maybe 10min max). Clicking on light may turn off/on (depending on current state) successfully for one attempt only. After that only a relaod of the integration make it work again for 10 minutes.

Gateway is Legrand F454

@riccardilorenzo can you share your automation for restarting the integration please ?

barto28 avatar Nov 18 '24 15:11 barto28

@barto28 here you are. This fires every 10 minutes in the 15th second (to not interfere with other automations that may launch at X o'clock). It simply reloads a HA entity of MyHome using the option available also from the GUI. Of course, this makes every HA entity connected to MyHome integration unavailable for a few seconds.

- id: '1724433704712'
  alias: Autofix MyHome
  description: 'Reloads config entry for a single HA entity belonging to MyHome.'
  trigger:
  - platform: time_pattern
    seconds: '15'
    minutes: /10
  condition: []
  action:
  - action: homeassistant.reload_config_entry
    data: {}
    target:
      entity_id: light.presa_comodino_lorenzo
  mode: single

riccardilorenzo avatar Nov 18 '24 19:11 riccardilorenzo

@barto28 here you are. This fires every 10 minutes in the 15th second (to not interfere with other automations that may launch at X o'clock). It simply reloads a HA entity of MyHome using the option available also from the GUI. Of course, this makes every HA entity connected to MyHome integration unavailable for a few seconds.

- id: '1724433704712'
  alias: Autofix MyHome
  description: 'Reloads config entry for a single HA entity belonging to MyHome.'
  trigger:
  - platform: time_pattern
    seconds: '15'
    minutes: /10
  condition: []
  action:
  - action: homeassistant.reload_config_entry
    data: {}
    target:
      entity_id: light.presa_comodino_lorenzo
  mode: single

Thanks a lot !

barto28 avatar Nov 19 '24 18:11 barto28

i dont manage to paste that into an automation, do i have to put it in the config file for HA or can i create an automation in the GUI HA YAML editor? tells me the data {} is not allowed, sorry im quite new to this.

imfreddie avatar Nov 19 '24 18:11 imfreddie

@zltigo do you have any update?

i dont manage to paste that into an automation, do i have to put it in the config file for HA or can i create an automation in the GUI HA YAML editor? tells me the data {} is not allowed, sorry im quite new to this.

Use only the GUI without copying the YAML if you have troubles: the trigger is provided by Recurrence under “Time and Place” or something similar, then in the actions search for “Home Assistant Core Integration: Reload config entry” or similar: now simply put in any entity belonging to MyHome integration. You’re now good to go.

riccardilorenzo avatar Nov 19 '24 18:11 riccardilorenzo

i think i sorted it. i looked up the HA community and used one of the example from there, its using the state instead so when it goes unavailable it should reload:

alias: automation_Autofix_Myhome
description: reload the integration myhome
trigger:
  - platform: state
    entity_id:
      - light.light_attic
    to: unavailable
condition: []
action:
  - action: homeassistant.reload_config_entry
    target:
      entity_id: light.light_attic
    data: {}
mode: single

imfreddie avatar Nov 19 '24 22:11 imfreddie

i think i sorted it. i looked up the HA community and used one of the example from there, its using the state instead so when it goes unavailable it should reload:

alias: automation_Autofix_Myhome
description: reload the integration myhome
trigger:
  - platform: state
    entity_id:
      - light.light_attic
    to: unavailable
condition: []
action:
  - action: homeassistant.reload_config_entry
    target:
      entity_id: light.light_attic
    data: {}
mode: single

Do your entities show as unavailable in the GUI or just "unresponsive" as described in the issue?

riccardilorenzo avatar Nov 19 '24 22:11 riccardilorenzo

When configuring a light e.g. having A8 PL9 with '0809' it is possible to switch it in/off but the status will mit update. When using adress '89' it perfectly works. The only issue is with dimmable Lights with F418. Switching on/Off works but dimming cauaes an issue, i.e. the status no longer Updates. Any Idea how to fix that?

fepl1978 avatar Nov 24 '24 20:11 fepl1978

i think i sorted it. i looked up the HA community and used one of the example from there, its using the state instead so when it goes unavailable it should reload:

alias: automation_Autofix_Myhome
description: reload the integration myhome
trigger:
  - platform: state
    entity_id:
      - light.light_attic
    to: unavailable
condition: []
action:
  - action: homeassistant.reload_config_entry
    target:
      entity_id: light.light_attic
    data: {}
mode: single

Do your entities show as unavailable in the GUI or just "unresponsive" as described in the issue?

Sorry. Further testing it did not work as the status for the entities stays on or off (even if they stop being updated) so it never trigger the automation. If I run it manually it works. So I guess the only way would be to run it every now and then…

imfreddie avatar Nov 30 '24 09:11 imfreddie

I'm so disapointed this integration is not working anymore. My whole system relies on it and my home assistant becomes totally useless no more control on light, cover and thermals. I guess I'll go back on Jeedom.

barto28 avatar Dec 01 '24 00:12 barto28

Been following these comments and not sure why, just wanted to say that my MH200N and this integration is still working fine even without the reload trick that is mentioned.

I know this brings no help, but weird that it does not affect everyone.

Depechie avatar Dec 01 '24 17:12 Depechie

MH200N working fine here too, except for the older motionsensors L4610 in aux mode. They dropout at random moments. Reload this integration brings them back, but annoying anyway. Would be great if there was a solution to this issue.

stijn001 avatar Dec 01 '24 21:12 stijn001

For those who needs a reboot on the integration itself and not a specific device this is working perfectly for me (you can find the entry_id in \homeassistant\config.storage\core.config_entries by searching "myhome").

Juste create a new automation and copy paste this code in YAML view and replace with your entry_id :

alias: MyHome Reload Integration Periodically
description: Automatically reload a specific integration periodically.
triggers:
  - hours: /1
    minutes: "30"
    trigger: time_pattern
actions:
  - data:
      entry_id: 93857014654a724934f0bee194a09fda
    action: homeassistant.reload_config_entry
mode: single

barto28 avatar Dec 02 '24 20:12 barto28

Hi barto28, this works as a quick fix, but isn't a real solution. As HA looses connection to the motion sensors randomly, it can also happen right after the reload. And then you have 1 hour without motion sensors. And you'll miss some triggers if you reload that often. Button presses, automations not executed, ... So we need a permanent fix for this issue.

stijn001 avatar Dec 02 '24 20:12 stijn001

thanks for the fix, the integration worked really well and just this issue that is annoying where you realised it does work when you need to toggle the lights (for me). I have the mh201 gateway so not sure if this is an issue with that only.

imfreddie avatar Dec 02 '24 22:12 imfreddie

Take a look, this might solve your issue https://github.com/anotherjulien/MyHOME/pull/145

nachogarcia avatar Dec 07 '24 19:12 nachogarcia

This is not working for me, but thanks for pointing it out and working on the integration, will for sure help others!

riccardilorenzo avatar Dec 08 '24 20:12 riccardilorenzo

@riccardilorenzo Take a look at https://github.com/anotherjulien/MyHOME/pull/155 With this finally I havent had any issue in days.

nachogarcia avatar Dec 12 '24 08:12 nachogarcia

@nachogarcia still not working, unfortunately!

riccardilorenzo avatar Dec 12 '24 13:12 riccardilorenzo

@zltigo do you have any update?

So far I haven’t been able to find an easier way :(. I only found how to create this problem :). For me it occurs when setting the time in the MH200N, if HA is active in work. When running the command at night in a script it usually works.

zltigo avatar Dec 12 '24 19:12 zltigo

I seen suggestion to use code/repo from others. I haven’t figure out how to use this. I tried to change repo but it did int work and it ended up that I had to recobfig all lights in HA. Can I just replace the py file for lights? To try the other repos eg suggestion in #143 fixes?

imfreddie avatar Dec 12 '24 22:12 imfreddie

Can I just replace the py file for lights?

Yes, you can.

  • Disable MyHome integration
  • Replace py file
  • Restart HA
  • Enable MyHome integration

But I recommend replacing all files.

zltigo avatar Dec 13 '24 21:12 zltigo

Normal lights work perfectly with my MH202. Still I cannot use the F418U2 dimmable lights. Whenever I switch one of them on or off or want to change the brightness, the integration stops updating the status in the GUI.

Will there be a new version of the integration? Is there an idea for a permanent fix? In case further log/debug information was needed, please let me know how I could get this out of my system. Thanks!

fepl1978 avatar Dec 26 '24 09:12 fepl1978

https://github.com/anotherjulien/MyHOME/issues/160#issuecomment-2773529484

zltigo avatar Apr 02 '25 19:04 zltigo