Closed poudenes closed 6 years ago
Probably some duplicated discussion in #304.
What you're probably seeing is the network stack on the ESP getting overwhelmed.
The most I have to offer in terms of existing solutions is this: https://github.com/sidoh/esp8266_milight_hub/wiki/Performance-Tuning
What integration is Domoticz using under the hood? MQTT or UDP?
In domoticz i have MQTT installed and for the Gateway V6 because of my RGB-CCT bulbs. I dont know how to config MQTT on the ESP8266 so Domoticz will pick this up, or how this will work.
Is there a better NRF24L01+ module to use? Also have idea that the singal is not strong enough. Sometimes bulbs don't go on/off or react on color/bright/kelvin changes.
Hi, Adding more bulbs on the same group should not have any impact on the latency. However, I think that the range of these cheap NRF24L01 modules (even the "+" ones) is not quite as good as advertised. I suggest first try to send the payloads straight to the MQTT broker. If that works fine, without delays, then the problem is in another place. Adding a capacitor between VCC and GND pins surely helps. Using a more powerful ESP8266 board (such as Wemos D1 R2) powered with a higher voltage power supply (12V) helps even more as NRF24L01 needs a stabilized power supply. Then use additional gateways in a mesh network would improve both range and reliability.
Range is indeed rubbish. I have been using 3 of these boxes in a mesh. Doing this with MQTT is hassle-free. My only issue is with kids moving the boxes ever so slightly. The slightest change of angle or move seems to have big effects as to signal reach. I'm considering screwing them into walls so they stopped being moved around. I may have to get a fourth one set up as I get some shaded areas at the back of my garden.
I've now add a NRF24L01 where i can screw a antenna on. This improve the signal also.
@MimbaMonkeyHouse Do you know how to config the Milight Gateway Emu's MQTT so it can used with Domoticz?
@PetricaM Do you know how to wire the NRF24L01 to a Wemos D1 R2?
I will order a Wemos D1 R2 and test how this will work then. I love this project so much and totally open to test whatever it needs. Im not a technical high class user :)
Wiring for D1 R2 is the same as for the other boards. Just remember to use the pins SCK/D5, MISO/D6 and MOSI/D7 not the ones with single values.
Thanks. Ans CE and CSN? I ordered now the Wemos d1r2... give it a try :)
D8 to CSN; D0 to CE
Here's the full wiring:
ESP NRF24L01
3V-> VCC
GND-> GND
D0-> CE
SCK/D5-> SCK
MISO/D6-> MISO
MOSI/D7-> MOSI
SS/D8-> CSN
Thank you so much!!! When i have the module ill let you all know how it work. For now i have add a "Dipole antenne 433 Mhz" antenna to the NRF24L01 and is already better
FWIW: What added a huge performance gain for me was replacing my 1A power supply for a 2,5A one. Second: my RGBW bulbs are able to pair to multiple channels (2 or 3) which makes a huge difference when controlling a larger group of bulbs (6 and up) at once.
able to pair to multiple channels (2 or 3) which makes a huge difference when controlling a larger group of bulbs (6 and up) at once.
What do you mean?
I don’t think you can choose channel used by bulb or remote.
Now my Wemos is running with NRF24L01 and a Dipole antenne 433 Mhz. Did have some issues with bulbs inside a group that not go on or of. Changed some values in WebUI:
Packet repeat -> 25 Packet repeat throttle sensitivity -> 0
For now it seems all good now. But i will post my experiences later :)
@PetricaM My milight 9W RGBW bulbs can be paired to multiple channels (i believe 3 in total), so I pair them to a channel to control them as a single entity, and to a channel that multiple bulbs are paired to, this way instead of sending to a channel for each of the 12 bulbs, i send to one that all the bulbs are responding to. It's worth a try to see whether your bulbs/strips/etc support this as it saves lots of overhead.
In Hass/Domotics/Homeautomation you can then add both the entities: The one to control a group at once and the one to control a single bulb/strip/etc
@fliphess you mean by channels = group ? I have add also bulbs into more then 1 group to combine them. You can add bulbs without limit into groups. Some of my bulbs are added into 5 different groups.
Sorry @fliphess , it was a misunderstanding. You were referring to infividual groups (1 for B0/FUT088, 4 for most remotes, 8 for B8/FUT089) and group 0. One remote can be paired to an unlimited number of bulbs however one bulb can be paired to up to 4 different remotes.
I was referring to channels on the 2.4 Ghz RF sprectrum used by MiLight (there have been some discussions in regard of channel hopping).
Feel free to continue discussing, but I'm going to close as I'm not sure I see a clear course of action. Please feel free to reopen if I'm mistaken.
Hi All,
Finally have add al my 35 bulbs into Domoticz. Have 11 Device ID's (virtual remotes). Everything work great using the WebUI. But now when i add everything into Domoticz that when i use Scripts to automate everything there is lot of lag.
Here a example of a script that control my bulbs when using Kodi:
The lines domoticz.helpers.RGB Have 2 actions:
The first line setRGB work. The second dimTo take some time before it start. Its always the second action that take some time.
When i reset the ESP8266 module, eveything work great for couple of minutes and then it get into trouble again.
My question now: Do i ask to many of the ESP8266 module to handle all the actions i send by Domoticz to ESP or is this a problem of the software of the Gateway emulator that give this lag problem?