-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
State not updated for Gate (io:DiscreteGateOpenerIOComponent) #40
Comments
not sure whether it's relevant for the gate, but sometimes tahoma can send a command to a component but doesn't know it's state. this is the case for somfy's smart lock where I can open and close the lock through tahoma (independently of HA I mean) but the state in tahoma only reflects the last action done in tahoma, not the actual state of the lock. Can you confirm that the state of your gate is correctly displayed in your Tahoma dashboard? |
Next to that, in Home Assistant we poll the I am not sure what the |
IN Tahoma the right value is only reflected after logging out and in again. So the interface remains stuck on the last position unless logout/login. This is different for the contact sensor (door open/closed sensor) which updates in real time in the Tahoma interface. |
@francodutch could you give the following branch a try? https://github.com/iMicknl/ha-tahoma/tree/fix_40. Before every update, it will call the |
@iMicknl happy to but How? Just copying the repository probably not enough...do I need to deleted the integration and do a new one? |
I think that if you replace the tahoma directory in the custom_components folder by the one in the said branch, you don't have to remove the integration, just restart HA to load the new version. |
'There hasn't been any activity on this issue recently. Is this issue still present? |
@francodutch could you give https://github.com/iMicknl/ha-tahoma/archive/feature/add_refresh_states_service.zip a try? You can unzip this file and place the This will add a new service call named |
will give it a try. How would it work though if I want an externally triggered event (ie use remote control to open gate) to be detected by HA? |
That should already work! You could first give it a try, to see if any change outside Home Assistant is reflected within a minute after the gate is fully open / closed. If that doesn't work yet, call the |
sure I can test that, but unless I am missing something, in a real life situation rather than in testing, I don't know when to trigger the service to update the status... what am I missing? |
@francodutch in the future, this could be automated, like the automated polling we do now. However, I would need to understand first if this works in your scenario. And even as a workaround, you could create an automation to automatically call this service every minute. |
got it. I will test it. |
@iMicknl It works. I had one instance where HA actually detected a gate opening externally triggered, without using the state update service, but i haven't been able to reproduce that. However the service works after20-30 secs or so. Is there anywhere that update frequency can be changed? |
@francodutch could you give the latest version a try? (https://github.com/iMicknl/ha-tahoma/archive/feature/refresh_states.zip). By default, the refresh state interval is every hour, but you could put it on a lower value if you want. And when you call the |
@iMicknl I will - just having issues now with the range of the radio reception by the Tahoma box of my izymo and gate radios...need to fix that first to have reliable test results...I did notice that despite the gate having been open for a while, it was marked closed in HA. Only after calling the state update service did it reflect 'open'. In the Tahoma native interface there's a '?' on the gate icon... |
HI there has the tahoma.refresh_states service been removed? I'm having issues again with my gate showing "open" when it has been automatically closed by the 2 minute timer on the gate-control box. |
@francodutch sorry, I totally missed your reply. Are you still using the integration and facing these issues? |
Hi Mick yes I love it I use it daily and it works reliably with one exception, which is that when the gate closes automatically (gate controller setting) 2 min after it opens,the status in HA remains 'open' for hours. It somehow doesn't detect that the state has changed to closed. You've been doing so much work on this integration...THANKS!! |
Does the state update if you run the service |
Good one. Or if you login to tahomalink.com. I guess they call the refreshAllStates to retrieve it. |
One way to understand what happens is to open the dev tools of your browser and monitor network activities while you log into tahomalink and the gate updates itself. You should see a bunch of fetch events (1 per second) and in the middle, the event that causes the refresh. I have this kind of behaviour with the smart thermostat. I'll try to make a capture of my browser if you need it to understand what I mean. |
tx. by the way here is what I captured from the logs, after running the refresh. DOn't think it's of much use but just in case: https://paste.ubuntu.com/p/jxBZ9yvdTr/ |
@francodutch could you try the following version; https://github.com/iMicknl/ha-tahoma/archive/feature/add_refresh_states_service.zip. The |
@iMicknl just by copying the contents of /ha-tahoma-feature-add_refresh_states_service 2/custom_components from the zip file into /Volumes/config/custom_components on the rpi? none of the files in the higher dirs are needed, correct? |
@francodutch indeed. Unzip the downloaded file and place |
done and tested, but result is still the same. @vlebourl if you have a screenshot or indication of where to look in the dev tools that would be super |
Could you share your log as well please? I would like to understand if the call did work. |
Sorry, don't have time tonight... |
@iMicknl @vlebourl I have captured the log after running the command and then after logging in to Tahomalink: https://paste.ubuntu.com/p/Fv2wsFzJdy/ |
@francodutch I don't see the call to |
Yes, via developer tools. I added a screenshot in one of the earlier messages. |
That screenshot mentions By the way, I did share an older version of the integration by accident. The best version for this feature to use is https://github.com/iMicknl/ha-tahoma/archive/feature/refresh_states.zip. |
Hey, I've prepared a capture, but there are some private info I'd rather not see public on github. Can you join our discord https://discord.gg/nwH4sVKQ so that I can pm it to you? |
ok. @iMicknl Tahoma.refresh_states does the trick and updates the state to "closed" after the gate has auto-closed. Question is, what is a reasonable frequency (or even: logic?) to call this service to not overload the system? @vlebourl thanks for the video but I couldn't find any 'internal" request nor the request detail (only the header). Also, the state resets properly when I log in to Tahoma Link, I don't even have to select the gate device. |
Great to hear! To be honest, I don't know yet. This is also the reason that this feature hasn't been released officially in this integration (yet). By default, it will call this service automatically every hour. (see Integrations -> Devices -> Somfy Tahoma -> Options), however in your case it could be wise to create an automation that calls this |
cool, thanks for the help. Does that mean though that next time I upgrade to a new version I will lose the refresh_states service? |
Yes. I will see if we can merge this version soon, so that it is included in new released versions. |
it's a very workable solution now. I just test on the gate being open for 2 min (plus a few seconds margin) then run the refresh_states service. |
@francodutch in case you have created an automation (or something similar), feel free to share the config here. Would be good to document it as well. |
ultra simple...no magic! https://paste.ubuntu.com/p/DZ256Jz3z9/. |
Describe the bug
Not sure if bug in HA or in Tahoma, but when I open the gate from HA the status of cover correctly reflects the change. WHen the gate closes automatically after two minutes or when the gate is activated through the remote control however, the status change is not passed on to HA.
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
Status in HA should reflect physical status regardless of origin of command to open or close or stop the gate.
Environment (please complete the following information):
Device: io:DiscreteGateOpenerIOComponent
The text was updated successfully, but these errors were encountered: