Comments (10)
Homekit is updating the value on the client side automatically which is why I didn't query the values right after they are set - especially since yeelight has some limitations of how many messages it wants to handle per minute.
I can try to add code to update the home bridge accessory with value that was just set.
from homebridge-yeelighter.
Today tested commands via telnet IP 55443
from my main LAN and everything works perfectly to IoT VLAN, where are located lights.
Can you please add Location IP as new "override" (next value in "Optional per light configuration")? I think, that problem is here.
from homebridge-yeelighter.
Next day of testing - cleaning cached devices, move one light from IoT VLAN to LAN.
Homebridge log:
[5/6/2020, 16:10:11] ---
[5/6/2020, 16:10:11] Loaded plugin: homebridge-yeelighter
[5/6/2020, 16:10:11] Registering platform 'homebridge-yeelighter.Yeelighter'
[5/6/2020, 16:10:11] ---
[5/6/2020, 16:10:11] Loading 6 platforms...
[5/6/2020, 16:10:11] [Yeelighter] Initializing Yeelighter platform...
...
[5/6/2020, 16:10:12] [Yeelighter] Configure Accessory XXXXXX-XXXX-XXXX-XXXX-XXXXX
...
[5/6/2020, 16:10:12] [Yeelighter] ** Discovery Started **
...
[5/6/2020, 16:10:12] [Yeelighter] Cached ceiling1 [0x000000000XXXXXX] found at yeelight://10.0.0.X:55443
[5/6/2020, 16:10:12] [Yeelighter] [0x000000000XXXXXX] Re-using service of subtype 'main'. []
[5/6/2020, 16:10:12] [Yeelighter] [0x000000000XXXXXX] installed as Color temperature light []
[5/6/2020, 16:10:12] [Yeelighter] [0x000000000XXXXXX] Connected []
And this light works perfectly in same LAN as RPi/HomeBridge server.
Can be option in plugin, for disabling discovery/broadcast and using fixed IP?
from homebridge-yeelighter.
The multicast is used to discover the device and it's properties. In principle you could put all the information that the response contains into the config and it would work. However I am afraid it doesn't make sense to put a fix for your network configuration into this plugin for everybody.
You can either:
- fork this plugin and add the things you need (but I don't think they should be accepted as a PR)
- change your network config to allow for the SSDP query on port 1982 and the response to pass through.
Sorry
from homebridge-yeelighter.
@cellcortex: hi, thank you for reply.
Fix for my IP configuration to plugin is nonsens, but I think support for define IP. Please see for example plugin Broadlink (section Device Discovery and hosts
):
https://lprhodes.github.io/slate/
I think the same, that will be IP
in override
section, for example:
"platforms": [
{
"platform": "Yeelighter",
"name": "Yeelighter",
"override": [
{
"id": "0x00000000deadbeef",
"IP": 10.0.0.1
},
{
"id": "0x0000000012345678",
"background": false,
"nightLight": true,
"IP": 10.0.0.2
}
]
}
]
The same problem as me have everybody with IoT VLAN.
Or can you write me, how can I define the config response manualy? Thank you again.
from homebridge-yeelighter.
This would require quite some changes to the lifecycle of lights in the plugin. The configuration of the light is sent via this registration message that apparently your vlan filters. So all of this would have to be configured manually.
Isn't there a way for you to config your gateway to forward the SSDP / multicast?
from homebridge-yeelighter.
will accept pull requests for this.
from homebridge-yeelighter.
@cellcortex: I have USG-PRO, enabled "IGMP snooping" on both (LAN and IoT VLAN), also enabled Multicast DNS (mDNS) and nothing.
Here are threads on Unifi forum about SSDP:
https://community.ui.com/questions/SSDP-Multicast-Across-VLANs/3c814e7f-8c5a-4b52-9747-7216a0e80c9c
https://community.ui.com/questions/SSDP-Multicast-Across-VLANs/e39e7123-8a12-4382-ad27-ea05e1b64a20
https://community.ui.com/questions/IPTV-IGMP-Proxy-managed-by-Unifi-controller/c617c208-ad2a-41bb-8cee-488f19c3c625
But there's no real solution.
Is way to add lights manually? If you tell me how, will test it.
from homebridge-yeelighter.
SOLVED! :)
I was set IGMP-Proxy, configured both interfaces LAN and IoT VLAN, added firewall rules (UDP, 239.255.255.250, port 1982) and it WORKS!
But have this problems:
-
don't know why, there is delay about 18s between turning on light and showing it as ON in Homebridge UI-X. If i turned light off in this delay, there is no response from light. In HomeKit is everything OK.
-
have two lights directly in HK, both disabled in LAN control and also override in config.json (
"ignored": true
). But 1 light is still visible in UI-X and also in HomeKit.
from homebridge-yeelighter.
Delay is really big and annoying problem. Click on OFF, light goes offline, in log nothing and delay about 20s, then icon changed to off.
Here is my log:
[5/30/2020, 17:14:40] [Yeelighter] [Pracovna] debug: sendCommand(15, get_prop, ["power","color_mode","bright","hue","sat","ct","bg_power","bg_bright","bg_hue","bg_sat","bg_ct","bg_lmode","nl_br","active_mode","name"]) []
[5/30/2020, 17:14:40] [Yeelighter] [Pracovna] debug: received update 15 after 0.103s: ["off","2","1","","","4000","","","","","","","0","0",""] []
[5/30/2020, 17:14:40] [Yeelighter] [Pracovna] debug: temperature light updated {"power":false,"color_mode":2,"bright":1,"hue":0,"sat":0,"ct":4000,"bg_power":false,"bg_bright":0,"bg_hue":0,"bg_sat":0,"bg_ct":0,"bg_lmode":0,"nl_br":0,"active_mode":0,"name":""} []
Next try, click to ON. Light is ON instantly, but in UI-X and Homekit nothing. Delay about 20s, then icon changed to ON.
[5/30/2020, 17:18:40] [Yeelighter] [Pracovna] debug: sendCommand(20, get_prop, ["power","color_mode","bright","hue","sat","ct","bg_power","bg_bright","bg_hue","bg_sat","bg_ct","bg_lmode","nl_br","active_mode","name"]) []
[5/30/2020, 17:18:40] [Yeelighter] [Pracovna] debug: received update 20 after 0.305s: ["on","2","1","","","4000","","","","","","","0","0",""] []
from homebridge-yeelighter.
Related Issues (20)
- node v14 support
- How to reduce logs for Yeelighter? HOT 2
- The background light on Yeelight Screen Bar Pro does not turn on HOT 2
- Yeelight Staria Bedside Lamp Pro (Night Mode) Issues HOT 1
- Yeelighter settings lags HOT 2
- Yeelighter error for ceiling14 HOT 4
- Smooth Transition Between Colors HOT 2
- Yeelighter - Error and loops HOT 3
- Unable to change colour of ceiling light HOT 1
- TypeError: Cannot read properties of undefined (reading 'split') HOT 2
- Yeelight Bulb W3 keeps "No Respond" randomly and generates lots of "Color tempurature" characteristic error HOT 1
- Can't find device id. HOT 2
- Cache Notification Loop HOT 1
- ceiling17 HOT 1
- "No Response" after a while on the new update (ylxd50yl) HOT 2
- Constant log of "retry in 5s" after upgrading to 2.5.16 HOT 2
- Yeelight Smart LED Bulb 1S and LED Bedside Lamp D2 Adaptive Lighting
- Feature Improvement: Moonlight Mode minimum brightness
- W1 GU10 Problems HOT 1
- Help me to understand the re-connect logic for manual configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-yeelighter.