My home stopping Update
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.
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!
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 :(
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).
So far the way out of this state is as follows:
- shutdown HA
- reset HM200N
- wait start HM200N
- 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.
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 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
@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 !
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.
@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.
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
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?
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?
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: singleDo 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…
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.
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.
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.
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
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.
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.
Take a look, this might solve your issue https://github.com/anotherjulien/MyHOME/pull/145
This is not working for me, but thanks for pointing it out and working on the integration, will for sure help others!
@riccardilorenzo Take a look at https://github.com/anotherjulien/MyHOME/pull/155 With this finally I havent had any issue in days.
@nachogarcia still not working, unfortunately!
@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.
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?
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.
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!
https://github.com/anotherjulien/MyHOME/issues/160#issuecomment-2773529484