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

Alexa Hue with multiple devices #22383

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

s-hadinger
Copy link
Collaborator

Description:

BREAKING CHANGE if you have Alexa/Hue emulation with more than 1 device, or with Zigbee. In such case, you need to remove the devices in the Alexa app and discover them again. No change if you have only 1 Alexa device per Tasmota.

There is now a problem with Alexa / Hue emulation when multiple devices are on the same Tasmota. Before, mutiple devices would be distinguished by:

"uniqueid": "78:e3:6d:09:1d:a4:00:11-01"
"uniqueid": "78:e3:6d:09:1d:a4:00:11-02"
"uniqueid": "78:e3:6d:09:1d:a4:00:11-03"

It seems now that the Alexa app gets confused if they differ only by the characters after -. We are now changing the encoding as follows:

"uniqueid": "78:e3:6d:09:1d:a4:XX:YY-01"

where XX is the high 8 bits of id (unchanged) and YY is the low 8 bits xor 0x10 (so default 1 becomes 0x11)

If the endpoint is not zero, XOR the second byte (rare case)

Related issue (if applicable): fixes #22227

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.8
  • The code change is tested and works with Tasmota core ESP32 V.3.1.0.241023
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@arendst arendst merged commit 2669cd3 into arendst:development Oct 29, 2024
59 checks passed
josef109 pushed a commit to josef109/Tasmota that referenced this pull request Nov 7, 2024
josef109 pushed a commit to josef109/Tasmota that referenced this pull request Nov 10, 2024
@s-hadinger s-hadinger deleted the alexa_fix_mac branch January 6, 2025 14:19
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

Successfully merging this pull request may close these issues.

2 participants