Giter VIP home page Giter VIP logo

Comments (9)

NorthernMan54 avatar NorthernMan54 commented on August 20, 2024

@cellcortex Is it feasible to have the second light service name ( background ) add some text to the name so that the homebridge-alexa plugin can differentiate between the two? At the present time as the names are duplicate, the second one is not passed too Alexa.

NorthernMan54/homebridge-alexa#336

from homebridge-yeelighter.

cellcortex avatar cellcortex commented on August 20, 2024

I should be able to add an option to have added to the config.

from homebridge-yeelighter.

NorthernMan54 avatar NorthernMan54 commented on August 20, 2024

Tks, much appreciated

from homebridge-yeelighter.

eliac7 avatar eliac7 commented on August 20, 2024

Hey @cellcortex , did you managed to fix that? Or can you point us on how to fix it manually?
Thanks in advance.

from homebridge-yeelighter.

cellcortex avatar cellcortex commented on August 20, 2024

Didn't get to it. If you want to take a shot, I'm happy to accept a PR. You would need to create 2 accessories for those lights instead of one.

from homebridge-yeelighter.

NexGen-3D-Printing avatar NexGen-3D-Printing commented on August 20, 2024

Hi, have similar issues with duplicates and the Alexa plugin.

Also, if you have 2 identical lights, in my case they are both detected as color4, they will both show in Homekit but when using the Alexa Hombridge Skill, only one light will detect, and it fails to operate due to the duplication of the detected name.

Below is what comes up in Homebridge and its passing the "Model" through to the Alexa Skill plugin, not the "Name", as I change the name, but it still detects as color4, I have also tried to change the ID but that only changes the "Serial Number"

Lightbulb
On false
Brightness 5%
Color Temperature 370
Hue 282
Saturation 100%
Manufacturer Yeelighter
Model color4
Name color4
Serial Number 0x000010101018dc9f
Firmware Revision 27
Homebridge Instance IP 127.0.0.1
Homebridge Instance Port 51100
Homebridge Instance Username 0E:69:8E:D8:4E:21
aid 12
iid 8

from homebridge-yeelighter.

NorthernMan54 avatar NorthernMan54 commented on August 20, 2024

@cellcortex Recently identified is that the Configured Name characteristic will receive set events when an accessory name is changed in the Home app. And if you could add the characteristic, I can read the values in the homebridge-alexa plugin.

Change is something like this

this.services[uniq_id].service.getCharacteristic(this.Characteristic.ConfiguredName)
              .on('set', setConfiguredName.bind(this.services[uniq_id]));
function setConfiguredName(this: tasmotaSwitchService | tasmotaLightService | tasmotaFanService | tasmotaSensorService | tasmotaBinarySensorService, value, callback: CharacteristicSetCallback) {
  // debug('this', this.service.displayName);
  // this.platform.log.debug('setConfiguredName', value, this.service.displayName);
  this.service.displayName = value;
  this.service.setCharacteristic(this.platform.Characteristic.Name, this.service.displayName);
  this.platform.api.updatePlatformAccessories([this.accessory]);
  callback();
}

from homebridge-yeelighter.

plantoschka avatar plantoschka commented on August 20, 2024

Would be really happy if this gets fixed because I do some dynamics brightness adjustments trough NodeRed and this currently does not work for a second device called „Ceiling Light“.
NorthernMan54/node-red-contrib-homebridge-automation#30 (comment)

from homebridge-yeelighter.

NorthernMan54 avatar NorthernMan54 commented on August 20, 2024

@cellcortex Tks

from homebridge-yeelighter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.