New plugin : ESP8266 Milight Hub

Python and python framework

Moderator: leecollings

FlyingDomotic
Posts: 349
Joined: Saturday 27 February 2016 0:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by FlyingDomotic »

Hello,

+1 having the RGB+CCT problem. In addition, it seems that all my RGB+CCT bulbs are known by Domoticz as RGBWW. I don't find where I can change type to the right one.
RobbieT
Posts: 17
Joined: Thursday 13 December 2018 14:34
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by RobbieT »

Hi,

Also reporting the same problem :-)
adval40
Posts: 14
Joined: Sunday 28 May 2017 18:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11528
Location: Eindhoven (The netherlands)
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by adval40 »

I have installed the plugin by github
I restart domoticz but I cannot see the plugin in domoticz

what do I Wrong ?
User avatar
Doowie
Posts: 2
Joined: Saturday 11 August 2018 22:08
Target OS: Linux
Domoticz version: 4.10717
Location: The Netherlands
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by Doowie »

Realy nice plugin and all devices appear in Dmoticz. Interaction with the NodeMCU Milight hub is realy great.
Via the Domoticz dashboard I can change the state to on or off and other colors.
Via Nodered the light can be turned on and off.

I have two challenges though:
1. When I use this command in DZVents then nothing hapens: "domoticz.devices('NameofTheLight).switchOn();"
In the same script I can call a json script that works to turn the light on: "domoticz.openURL('http://192.168.201.195:8080/json.htm?ty ... itchcmd=On');"
When I'm correct the first command should be translated by Domoticz to json.

2. Second and less important challenges is that the light is listed as RGB+CCT in the Milight hub, but appears as RGB in Domoticz. If this has something to deal with my first challenge? I don't know.

Any help is greatly appreciated.
I'm strugling for a couple of days now.
Rudi52
Posts: 4
Joined: Tuesday 13 November 2018 20:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by Rudi52 »

I installed the ESP8266 Milight plugin from https://github.com/sidoh/esp8266_milight_hub on my raspberry pi 3b+
My domoticz version is: 4.10717
directory: /home/pi/domoticz/plugins
command: git clone https://github.com/sidoh/esp8266_milight_hub

It installs the pogram, but when i look in domoticz hardware, it is not there.
Can someone help me with this?

Found the solution
I had to install the python plugin fom https://github.com/galinette2000/espmil ... moticz.git into the directory /home/pi/domoticz/plugins/esp8266_milight_hub
FunFair
Posts: 52
Joined: Wednesday 04 October 2017 11:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by FunFair »

rensbr wrote: Wednesday 09 October 2019 8:22 Hi @galinette,

Thank your for creating this awesome plugin, it works a lot better then the UDP method.

But I also have a problem with RGB=CCT bulbs, like @CV8R. When I'm setting a warm white color, the bulb flashed to warm white, and immediately after that it switches back to cold white.

Do you have any ideas on what the problem might be?
I've recently built myself a Milight ESP controller and I noticed the same problem with my RGBCCT LED strip.
When I switch it to cold white trough domoticz, it returns to warm white. When I use the ESP web interface it switches correctly.

I haven't tried it with a dzvents script yet.
Harryb17
Posts: 6
Joined: Tuesday 08 November 2016 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by Harryb17 »

Great plugin!

Is there a way to rediscover previously added devices? I accidentally deleted a few from the devices list.
salvacalatayud
Posts: 112
Joined: Monday 26 June 2017 21:16
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Spain
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by salvacalatayud »

My milight hub stops working after a few minutes and I must reset it. Does it happen to anyone else?

Enviado desde mi SM-N975F mediante Tapatalk

User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by sincze »

At the moment mi-light hub has been running without issues for several weeks now.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
jpvaneijk
Posts: 77
Joined: Thursday 07 June 2018 21:57
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Noordwijk, Netherlands
Contact:

Re: New plugin : ESP8266 Milight Hub

Post by jpvaneijk »

Hi all,

Mosquitto is up 'n running on a fresh install of Rasbian OS 64 (Bullseye) on Pi 4B. Python is 3.9.2 and Domotiicz is 2022.1.
I'm trying (for days now) to install the plugin for MilightESP8266 but there is an issue installing the plugin.

After installing the plugin Domoyicz crashes and the log say's:

Code: Select all

2022-02-13 10:22:24.673 Error: Tolhoren Mi-Lights: (MilightESP8266) failed to load 'plugin.py', Python Path used was ':/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2022-02-13 10:22:24.673 Error: Tolhoren Mi-Lights: Module Import failed, exception: 'ModuleNotFoundError'
2022-02-13 10:22:24.673 Error: Tolhoren Mi-Lights: Module Import failed: ' Name: plugin'
2022-02-13 10:22:24.673 Error: Tolhoren Mi-Lights: Error Line details not available.
2022-02-13 10:22:24.673 Error: Tolhoren Mi-Lights: No traceback available
I've tried many solutions chmodded the Directory and/or the Plugin.py file. Sudo on the git clone and much more. Nothing worked sofar.
Is this because I am on Python 3.9 or on 64 bit? What am I missing?

Found an issue here but no solution: https://github.com/etsach/espmilighthub ... z/issues/6

Please help, thanx!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest