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

Empty response for unplugged DECT device #2

Open
wetswan opened this issue Oct 12, 2022 · 0 comments
Open

Empty response for unplugged DECT device #2

wetswan opened this issue Oct 12, 2022 · 0 comments

Comments

@wetswan
Copy link

wetswan commented Oct 12, 2022

When calling the method "GetDevices" I get empty xml elements for my DECT 200. My guess is that the device is currently unplugged (but still in the list of devices).

The device part of the response looks as follows:
<device identifier="08761 0348868" id="17" functionbitmask="35712" fwversion="04.25" manufacturer="AVM" productname="FRITZ!DECT 200"> <present>0</present> <txbusy>0</txbusy> <name>Lavalampe</name> <switch> <state></state> <mode></mode> <lock></lock> <devicelock></devicelock> </switch> <simpleonoff> <state></state> </simpleonoff> <powermeter> <voltage></voltage> <power></power> <energy></energy> </powermeter> <temperature> <celsius></celsius> <offset></offset> </temperature> </device>

If I manually remove this part from the response before the deserialization, everything works fine. The issue seems to be the that it can't parse the empty value to one of the enum values (like State, Mode...). Possible solution could also be a default value?

Besides that: Thanks for this library, really great work :)

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

1 participant