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

DUOFERN receives unknown message during setup #25

Closed
Spartacus68 opened this issue Jan 31, 2023 · 7 comments
Closed

DUOFERN receives unknown message during setup #25

Spartacus68 opened this issue Jan 31, 2023 · 7 comments

Comments

@Spartacus68
Copy link

Hi,
I have installed the DIUFERN Stick in my current HA . The Rollo-Tube is connected in fhem with the stick. When I switch to HA and try to start from scatch, an error message occurs and the UI does not have anything to start configuration. If i open the services manually (Duofern control: start_pairing) nothing happens.

Log Message:
Logger: /usr/local/lib/python3.10/site-packages/pyduofern/duofern.py
Source: /usr/local/lib/python3.10/site-packages/pyduofern/duofern.py:551
First occurred: 13:39:53 (1 occurrences)
Last logged: 13:39:53

DUOFERN unknown msg: 0fff0f2c63005a1a110000000000ff49d5f2ffffff01
@gluap
Copy link
Owner

gluap commented Jan 31, 2023

Hi @Spartacus68, I know that Homeassistant makes these look like errors, but actually it's just a "Warning" message and not something that crashes pyduofern. These happen from time to time - more often if Devices not supported by pyduofern are around (like the weather station for instance).

It is normal that "nothing [obvious] happens" (in Homeassistant) after running start_pairing. There is simply no UI for configuration of individual duofern blinds, the only interface is calling services. For homeassistant to pick up the new devices a duofern.sync_devices is required - and a homeassistant restart may be in order. The motivation for the services is simply that some users don't have access to their command line.

If you used FHEM before it may make sense to use the same system code as in FHEM (strip the first two characters which were fixed to always the same value there anyhow).

[feel free to reopen for further discussion]

@gluap gluap closed this as completed Jan 31, 2023
@Spartacus68
Copy link
Author

Spartacus68 commented Jan 31, 2023 via email

@Spartacus68
Copy link
Author

Spartacus68 commented Jan 31, 2023 via email

@gluap
Copy link
Owner

gluap commented Jan 31, 2023

I'll add a reminder that there's no pairing gui to the service docstring.

Somebody reported success with a 10-digit device over in the backend. As for implementation the maximum I was planning for was to wait if it will be implemented in FHEM and see if I can port it from there. pyduofern is a very incomplete python port of fhem-duofern anyhow.

According to the homeassistant documentation Screenshot_20230131-211624~2.png, 0% means closed - so its likely consistent within homeassistant, maybe with a few outliers. Unfortunately I can't easily make it configurable, the whole reason there is no GUI for pairing is that it took me forever to even get the setup GUI working - I had a hard time wrapping my head around the way to create individual ui in homeassistant. I just seem to break it whenever I touch it. Which is likely my fault for being more of a backend person.

@Spartacus68
Copy link
Author

Spartacus68 commented Jan 31, 2023 via email

@gluap
Copy link
Owner

gluap commented Feb 3, 2023

The "moving" state of shutters is only in the beta - it's behaving a bit strangely so i'm planning to take it out again. For me, the shutters often get stuck in a "moving" state. I guess that duofern does not guarantee transmission of messages and therefore if a "stopped" message is lost it might just be lost.

@Spartacus68
Copy link
Author

ah, ok! maybe it makes sense to includi this function as an option. Itßs a little bit funny, if you´re moving the shutter from 0-%100% and suddenly the shutter is closed :-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants