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

[icloud] Fix ONLINE state when device response status is 203 #12587

Merged
merged 1 commit into from
Apr 25, 2022
Merged

[icloud] Fix ONLINE state when device response status is 203 #12587

merged 1 commit into from
Apr 25, 2022

Conversation

radokristof
Copy link
Contributor

This minor patch fixes an issue when the device response status code is 203.

This seems to work, but I don't know if this is enough/acceptable. Devices reports 203 status sometimes when they are online, sometimes when they are offline. However there seems to be another status code (201) for offline devices.

I couldn't find any info online what these status codes mean, nor any other reported value which can indicate the real status of an iCloud device.

Closes #12501

Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
@jlaur jlaur added the bug An unexpected problem or unintended behavior of an add-on label Apr 8, 2022
@lolodomo
Copy link
Contributor

lolodomo commented Apr 9, 2022

@pgfeller : is it ok for you?

@lolodomo
Copy link
Contributor

lolodomo commented Apr 9, 2022

HTTP code 203 means the server response was updated by a proxy. This is not an error.
That being said, I have no idea if this is applicable in iCloud context.

@radokristof
Copy link
Contributor Author

@lolodomo yes if you treat it as an http response code then yes.

@lolodomo
Copy link
Contributor

@radokristof : as there is no feedback from the binding maintainer, let's go with the merge of your change.

@lolodomo lolodomo merged commit cda3843 into openhab:main Apr 25, 2022
@lolodomo lolodomo added this to the 3.3 milestone Apr 25, 2022
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Apr 27, 2022
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[icloud] Devices report OFFLINE state while ONLINE
3 participants