-
Notifications
You must be signed in to change notification settings - Fork 5
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
Switches are no longer working #63
Comments
For completeness: component is 3.1.3 |
Same here with Osram Powerswitch (with Lupus2MQTT AND native Integration). |
Hi all, The first thing we have to identify why this change in behavior happened. Br, |
@CyberDNS A snippet from the HA Log:
|
@mucki12 What Lupusec version you have? Now I hope that, if really the problem is with the new firmware, that I will get that one on my system, because it will get very hard to debug this. 🤔 |
@CyberDNS Maybe a HA related problem? Found this with completely different switches: Edit: |
Reverted back to HA Core 2023.12.4 and switches are working again! |
Nice to hear that it is working again. Thanks @mucki12 for your research. Will close the issue. Br, |
Further testing: After restarting Lupus2MQTT (3.1.4) the switches are working for a period of time and a little bit later I got the same problem... |
I currently have these version: Core 2024.1.3 Lupusec2Mqtt Edge 3.1.4 Switches are not working at all. No reaction. C |
@christophgasser
Does the switch work right after a restart of Lupus2MQTT? |
Yes. [12:46:17 INF] Command homeassistant/switch/lupusec/ZS_xxxxx/set registered for device ZS:xxxx - Vorgarten [12:46:17 INF] Value for topic homeassistant/switch/lupusec/ZS_xxxxxx/state on device ZS:xxxxx - Vorgarten changed from null to OFF [12:46:17 INF] Value for topic homeassistant/sensor/lupusec/ZS_xxxxx_power/state on device ZS:xxxxxx_power - Vorgarten - Power changed from null to 0.0 This is what I have in my logs. |
For completeness: Currently the switch is OFF. |
Unfortunately I cannot reproduce the problem on my side, I am on the last HA OS and HA version, the difference is that the last version available on the my Lupusec is 0.0.3.6B. So I will need your support to find out the problem. So first question is, do you have both the same exceptions in the log when the problem occurs? Br, |
Hi David, In the meantime, I no longer believe in a problem that only occurs with Lupus2MQTT. But:
Other components (contacts etc.) have no problem (neither with Lupus2MQTT nor with the native integration). Sorry if this sounds pessimistic, but I might delete everything on the Lupus that is not security relevant. The Lupus is simply a (relatively weak) alarm system and not a HEMS system. |
Thanks @mucki12 for the info. You can set the detailed log in the addon configuration, you should have this setting as the second last setting in the list or you can set it via YAML like this: Serilog:MinimumLevel:Default: Debug |
@CyberDNS After that I was able to turn the switch in HA on and off again, which is normal as the problem only occurs after a certain time (don't know why? Token expired (but contacts work without problem) or does some component goes to sleep?). So I waited again for a while and then tried the switch again and as usual it could no longer be switched. Log right after the restart of Lupus2MQTT (successful switching):
. Log after a certain time (round about 30 minutes) (unsuccessful switching):
|
Ok, it seems to be some mechanism to enforce https. The HTML contains some script to do a redirect enforcing https. Can you give it a try with setting your Lupusec URL in the settings directly to https, please? Probably it will be happy when it directly communicates with https. Br, |
@CyberDNS |
I have configured it with https since the beginning. Like: https://10.X.X.X If that is what you mean. BR |
@christophgasser , and you get the same log errors than @mucki12 ? |
Sorry. I don't think so. I have set the Debug level to "information" for the integration. I don't get any warnings or error messages. At all. Just info like [11:35:36 INF] Device configured: ZS:XXXXXXX_power - TV Verstärker - Power or [11:35:37 INF] Value for topic homeassistant/binary_sensor/lupusec/RF_XXXX/state on device RF:XXXXX - Schlafzimmer Any other log I can check? |
Not sure if that is relevant, but I am using "Lupusec2Mqtt Edge". |
@CyberDNS Thank you for your time looking into this, but unfortunately the switch no longer works after a certain waiting time, even with https... Log round about 60 minutes after restart of Lupus2MQTT (trying to toggle - so several entries):
. Edit: But I don't know if disabling this would help since now the Lupus2MQTT is already using https? |
Next try:
Will be back in 45 minutes :-) |
@CyberDNS Log with unsuccessful switching :-( :
|
Another test: |
My Mosquitto broker log is full of: 2024-02-25 19:22:51: New connection from X.X.X.X:57978 on port 1883. BR |
Hi all, After reviewing the discussions, it seems the issue might be tied to a specific firmware version on the Lupusec system. Unfortunately, I'm unable to replicate this as my setup is on an older firmware, and I don't have access to the newer hardware for testing. Given my current time constraints and hardware limitations, I'm hoping someone with the new hardware can dive deeper into this issue. If you're able to investigate and perhaps propose a solution via a pull request, it would greatly benefit the project. Otherwise, we may need to await insights or solutions shared in similar open-source projects that we can adapt. Appreciate your understanding and any contributions you can make. Best regards, |
Hi David, I have an IT background and also do some developement (mostly databases and C#). Although I have never done anythig with Pyton, etc. But my biggest issue is to setup and configure a dev environment to do the debugging and testing. If you could help me setting up the dev environment, I would be more than happy to support. BR |
Hi Christoph, I appreciate that you are happy to help. I can assist you in getting your dev environment up and running.
If you have further questions or problems, I am glad to help out where I can. Br, |
Thank you David! I will try my best but wont have time before next week. Keep you updated! |
Started testing. I picked one particular switch to check. For completeness: The switch is OFF. On the Lupus. Where / how can I test how the value is passed to HA? BR |
When executing this line of code: _lupusecService.SetSwitch("ZS:XXX", true); I can successfully switch on/off the switch. But as mentioned in my last post, I do not know how to check the communication with HA. BR |
Hi @christophgasser , Br, |
For you information, I have installed a firmware update on my XT2 just now, probably this will show the same problem so that I can debug what is happening. Will see what happens. |
Hi @christophgasser, Did you already find something for this issue. Probably you have already seen the other issue #74 that was related to TLS/SSL that is now resolved in Edge v3.3.1. You can give it a try to see if your problem was probably related to that one. Br, |
Dear David,
Thank you for fixing the problem! Working on my side as well now.
But I had to reinstall and reconfigure the MQQT Broker as well as the Lupus add on. Not sure if that as due to playing around and trying to fix the issue myself.
BR
Christoph
…_______________________________
Christoph Gasser, MSc
Stranto Business Solutions GmbH
Büro: Leopold-Gattringerstraße 121, 2345 Brunn am Gebirge, Austria
Post & Rechnung: Schirgenwaldallee 7, 2380 Perchtoldsdorf, Austria
Tel.: +43 / 1 / 236 82 96 - 16
Mob.: +43 / 664 / 5130386
Email & Teams: ***@***.******@***.***>
Internet: http://www.stranto.com/<blocked::http://www.stranto.com/>
Von: David Ney ***@***.***>
Gesendet: Samstag, 23. März 2024 14:49
An: CyberDNS/Lupusec2Mqtt ***@***.***>
Cc: Gasser Christoph ***@***.***>; Mention ***@***.***>
Betreff: Re: [CyberDNS/Lupusec2Mqtt] Switches are no longer working (Issue #63)
Hi @christophgasser<https://github.com/christophgasser>,
Did you already find something for this issue. Probably you have already seen the other issue #74<#74> that was related to TLS/SSL that is now resolved in Edge v3.3.1. You can give it a try to see if your problem was probably related to that one.
Br,
David
—
Reply to this email directly, view it on GitHub<#63 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABVNGICYYCECVFW6PUGQF7LYZWB3FAVCNFSM6AAAAABBRUYIPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGUYDANBTGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@CyberDNS : If you need some Lupus devices, just let me know. Can't write more details here ... ;-) |
@christophgasser : You can contact me (in german 😉) on the following mail cyberdns.e3ccb2fc@outlook.com, then you can explain me what you have in mind 🙂. Br, |
Hi,
since one of the latest HA updates (don't know exactly which one) the switches are no longer working. There is not significant information in the Lupusec2Mqtt Log. Even if I turn log level higher.
Is this known? How can I contribute in fixing this issue?
BR
C
The text was updated successfully, but these errors were encountered: