Skip to content

Fix emulated_hue compatibility with older devices#36090

Merged
bdraco merged 3 commits intohome-assistant:devfrom
Tho85:Tho85/harmony-hub-emulated-hue-fix
May 25, 2020
Merged

Fix emulated_hue compatibility with older devices#36090
bdraco merged 3 commits intohome-assistant:devfrom
Tho85:Tho85/harmony-hub-emulated-hue-fix

Conversation

@Tho85
Copy link
Copy Markdown
Contributor

@Tho85 Tho85 commented May 24, 2020

Proposed change

Restore emulated_hue compatibility with older devices, especially Logitech Harmony Hubs.

#35148 changed the emulated_hue discovery process to work with newer devices. It responds to UPnP queries with a ST: upnp:rootdevice, which was assumed to be supported by all devices. However, older devices only work with ST: urn:schemas-upnp-org:device:basic:1.

This also adds a desperately needed test for the discovery response packet.

Tested with the following devices:

  • Amazon Alexa
  • Philips Hue Bridge v1 App (Android, discovery only)
  • Busch-Jaeger free@home SysAP

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

@dshokouhi dshokouhi added this to the 0.110.3 milestone May 24, 2020
@dshokouhi
Copy link
Copy Markdown
Member

dshokouhi commented May 24, 2020

Edit: looks like the breaking change occurred in a separate PR, will submit a PR to update release post: #35998 (comment)

@bdraco bdraco self-requested a review May 24, 2020 21:01
@bdraco
Copy link
Copy Markdown
Member

bdraco commented May 24, 2020

I'll test this as soon as I can (should be later tonight)

@bdraco
Copy link
Copy Markdown
Member

bdraco commented May 25, 2020

Seeing both with netdisco

 <UPNPEntry http://192.168.208.5:8300/description.xml - urn:schemas-upnp-org:device:basic:1>,
 <UPNPEntry http://192.168.208.5:8300/description.xml - upnp:rootdevice>,

@bdraco
Copy link
Copy Markdown
Member

bdraco commented May 25, 2020

Discovered ok on harmony 2400

@bdraco
Copy link
Copy Markdown
Member

bdraco commented May 25, 2020

Discovered ok on wifi hub

@bdraco bdraco merged commit ed62fe0 into home-assistant:dev May 25, 2020
@Tho85 Tho85 deleted the Tho85/harmony-hub-emulated-hue-fix branch May 25, 2020 21:08
frenck pushed a commit that referenced this pull request May 26, 2020
* Fix emulated_hue compatibility with older devices

* Fix test ugliness

* Fix pylint errors
@frenck frenck mentioned this pull request May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't connect to Emulated hue from Harmony hub

5 participants