Page 6 of 6

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Wednesday 03 May 2017 11:23
by piotr
Can the H801 be used to control a series of 2W MR11 leds ? (instead of ledstrip)

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Wednesday 03 May 2017 15:36
by beounet
kondrez wrote:So today I was trying to flash and connect the h801 to domoticz. Eventually i made it all work and now I can use it as a milight in domoticz. but I noticed that there is no place here where it gets explained. there are several threads on this forum and other forums with tips and some instructions but for someone like me who doesnt does this kind of stuff all the time it was quiet difficult and I bet there are more people interested. So here is how I did it step by step.

First what you need :
An arduino uno (you could use other programmer but i did it with this one)
the h801
6 header pins
some cables

after you have intalled the arduino software you need to install the esp option. in this link everything gets explained.
http://www.esp8266.nu/index.php/Tutoria ... are_Upload

After that you need to download the latest firmware image wich can be downloaded here:
http://www.esp8266.nu/index.php/Main_Page#Stable

in the first link there is a section called Download ESP Easy Firmware. Wich explains where to put the esp easy libraries.
For the h801 to work like a milight bridge there is a plugin wich you need to download and add to the esp easy folder.
This folder can be found in the source folder wich is in the main folder of the firmware that you download.
The plugin can be found at github espeasy playground
https://github.com/ESP8266nu/ESPEasyPluginPlayground
It's the one named p105_rgbw.ino. After you added this then you can start to solder the header pins to the h801.
When you have soldered the six pins you can connect them to your arduino. the TX pin of the h801 should go to the RX pin of your arduino, and the RX pin of the h801 should go to the TX pin of the arduino. Ground pin to ground and 3.3v to the 3.3v or you can connect the power supply to the h801.
There is a connector that says j3 these two pins need to be shorted before you plug the power supply it's to enter the programming mode.
After that you can compile and upload the firmware.
Once you do that the H801 acts as a acces point you can connect with the password configesp. After that put 192.168.4.1 in a browser to configure the ssid and passwoord. After that it should get an ip adress within your network. When you enter this ip adress you enter the browse gui. Here you go to devices and choose edit. Here you can choose the plugin rgbw milight udp port 8899 red pin 15 green pin 13 blue pin 12 white pin 14 and submit. after this if you just add a applamp/milight bridge in domoticz with the ip of the h801 and port 8899. you can control the h801 as group 1.

Hope this helps some people and save them some time.
Hello and thank you for this guide kondrez!!
I have followed all the steps that you suggested but i am a little frutsrated because of the fact that i am getting compile errors
Please have a look below:

Arduino: 1.6.12 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (128K SPIFFS), ck, Disabled, None"

In file included from C:\Users\vasilis\Desktop\esptest\ardportable\arduino-1.6.12p230\portable\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\abi.cpp:23:0:

c:\users\vasilis\desktop\esptest\ardportable\arduino-1.6.12p230\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\cxxabi.h:50:32: fatal error: bits/cxxabi_tweaks.h: No such file or directory

#include <bits/cxxabi_tweaks.h>

^

compilation terminated.

Multiple libraries were found for "Servo.h"
Used: C:\Users\vasilis\Desktop\esptest\ardportable\arduino-1.6.12p230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
Not used: C:\Users\vasilis\Desktop\esptest\ardportable\arduino-1.6.12p230\libraries\Servo
Multiple libraries were found for "SD.h"
Used: C:\Users\vasilis\Desktop\esptest\ardportable\arduino-1.6.12p230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
Not used: C:\Users\vasilis\Desktop\esptest\ardportable\arduino-1.6.12p230\libraries\SD
exit status 1
Error compiling for board Generic ESP8266 Module.




It seems that some or a file are missing?? LIke the bits/cxxabi_tweaks.h

Thanks in advance!

Re: [ESP8266] Commercial H801 WiFi RGB-dihttp://interesting-facts.info/mmer topic

Posted: Friday 05 May 2017 11:37
by allmehandidesigns
This H801 performs very well, a nice dimming resolution and works well.

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Sunday 25 June 2017 10:15
by bernardstef
Hi everyone, check those links, there is a firmware made for those devices:

http://www.cnx-software.com/2017/03/03/ ... -firmware/

https://bitbucket.org/xoseperez/espurna

I can't wait to receive my H801 and test this out :)

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Saturday 08 July 2017 10:51
by bernardstef
bernardstef wrote:Hi everyone, check those links, there is a firmware made for those devices:

http://www.cnx-software.com/2017/03/03/ ... -firmware/

https://bitbucket.org/xoseperez/espurna

I can't wait to receive my H801 and test this out :)

Hi ,

In fact I used the Espeasy plugin 105, and the lua script for white dimmer. Much better than espurna. Also, espurna didn't gave me all the lighting brighness which is strange...

Thanks everyone for the forum content that helped me to get it working ! :)

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Saturday 15 July 2017 11:20
by sanman
Hello,
I work arounf this controller since few days testing some firmware without finding somethings working as expected.
Is it existing somewhere a firmware allready compiled for H801 with the plugin p105_rgbw.ino basen on EspEasy ?
Thanks in advance!

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Wednesday 04 October 2017 17:29
by salvacalatayud
piotr wrote: Wednesday 03 May 2017 11:23 Can the H801 be used to control a series of 2W MR11 leds ? (instead of ledstrip)
I'm interested too

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Monday 30 October 2017 11:54
by Meeki
actualy with above script you don't need to use the milight plugin
it will just dim using the build in pwm dimmer function.
Im trying your script as you mentioned, but when i switch to whatever color. i always heve the same PWM output on each GPIO


D : Uptime 28 ConnectFailures 0 FreeMem 26496
1717248 : WD : Uptime 28 ConnectFailures 0 FreeMem 26496
1747249 : WD : Uptime 29 ConnectFailures 0 FreeMem 26496
1777250 : WD : Uptime 29 ConnectFailures 0 FreeMem 26496
1807251 : WD : Uptime 30 ConnectFailures 0 FreeMem 26104
1811694 : SW : GPIO 15 Set PWM to 1024
1811905 : SW : GPIO 13 Set PWM to 1024
1812123 : SW : GPIO 12 Set PWM to 1024

this happens with every color i pick. if i lower the light intensity is puts out this:

812123 : SW : GPIO 12 Set PWM to 1024
1837252 : WD : Uptime 30 ConnectFailures 0 FreeMem 26104
1867253 : WD : Uptime 31 ConnectFailures 0 FreeMem 26104
1888537 : SW : GPIO 15 Set PWM to 4556
1888777 : SW : GPIO 13 Set PWM to 4556
1888986 : SW : GPIO 12 Set PWM to 4556
1889459 : SW : GPIO 15 Set PWM to 164
1889669 : SW : GPIO 13 Set PWM to 164
1889874 : SW : GPIO 12 Set PWM to 164

what am i doing wrong? cant figure it out

gr Dennis

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Sunday 10 December 2017 6:56
by mehndi2018
Hi ,

In fact I used the Espeasy plugin 105, and the lua script for white dimmer. Much better than espurna. Also, espurna didn't gave me all the lighting brighness which is strange...

Thanks everyone for the forum content that helped me to get it working !
.
http://mehndidesignideas.net >> Mehndi Designs 2018

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Friday 25 May 2018 16:25
by StasDemydiuk
Hi

I've created python plugin for domoticz which allows to control H801 with Tasmota firmware via MQTT
https://github.com/stas-demydiuk/domoti ... ota-plugin

Feedback is appreciated

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Friday 28 September 2018 22:03
by serfer
Please help.
What am I doing wrong? I can not compile. Adruino ide 1.8.5 or 1.6.12
EspEasy Mega or 2.0
pugin p105
Can I ask you to insert a bin file with the p105 or H801WifiRGBController.ino
Image
Image

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Sunday 30 September 2018 21:51
by serfer
I was able to upload but I do not show up ap wifi after the serial port also does not detect anything. Pure EspEasy works but without a plugin I will not do anything. Any ideas ?
I was able to upload this too: https://gist.github.com/erykio/957f90a4 ... roller-ino
however, it does not connect to my wifi network after entering ssid and passowrd. Some squares in the serial port :)

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Sunday 14 October 2018 12:06
by Derik
Dear All.

Is there perhas a simple how to?
I do have a H801... And i will try to use this into Domoticz.. With a rgbw or neopixel

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Wednesday 07 November 2018 2:38
by cookerrr
so I've been messing the hte h801 for a couple of days. With espurna installed on the device, it works well. I like that it provides smooth transitions for the lighting when you make changes. Only bad thing is no domoticz plugin. So I tried tasmota with the plugin someone wrote in this thread. This also works, not quite as snappy with changes as it uses mqtt, but it does work pretty well. also a plus that it works directly with domoticz, though i lose smooth transitions. Does espeasy provide smooth transitions with that milight plugin? I can't get it to compile cause i keep getting errors. If it doesn't do smooth transitions I'll just stick with one of the other options. let me know, thanks!

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Wednesday 07 November 2018 15:27
by cherowley
cookerrr wrote: Wednesday 07 November 2018 2:38 so I've been messing the hte h801 for a couple of days. With espurna installed on the device, it works well. I like that it provides smooth transitions for the lighting when you make changes. Only bad thing is no domoticz plugin. So I tried tasmota with the plugin someone wrote in this thread. This also works, not quite as snappy with changes as it uses mqtt, but it does work pretty well. also a plus that it works directly with domoticz, though i lose smooth transitions. Does espeasy provide smooth transitions with that milight plugin? I can't get it to compile cause i keep getting errors. If it doesn't do smooth transitions I'll just stick with one of the other options. let me know, thanks!
If you mean plugin 105 then it only fades when turning on or off ....

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Thursday 08 November 2018 9:55
by cookerrr
Yes i was referring to p105. I ended up sticking with espurna on the h801. I ended up making it work with a virtual rgb color picker in domoticz and a little lua. I grab the rgb values through json and make an http call to change the color and brightness values. It actually works pretty well.

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Saturday 29 December 2018 18:06
by Gert
StasDemydiuk wrote: Friday 25 May 2018 16:25 Hi

I've created python plugin for domoticz which allows to control H801 with Tasmota firmware via MQTT
https://github.com/stas-demydiuk/domoti ... ota-plugin

Feedback is appreciated
Hi Stas, I'm using your plugin as 5x dimmer, but I'm noticing some strange behaviour.
Domoticz V4.10303 on RPi, set channel 1& 2 to (eg) 50%.
Switch off channel 1 (or 2) - the channel switches off and the other channel slightly reduces %.
Switch back on - both channels slightly reduce %.
Sfter a few times switching on and off, all channels are reduced to 0....
Any suggestions?
Thanks for your efforts!

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Monday 31 December 2018 13:27
by StasDemydiuk
Gert wrote: Saturday 29 December 2018 18:06
StasDemydiuk wrote: Friday 25 May 2018 16:25 Hi

I've created python plugin for domoticz which allows to control H801 with Tasmota firmware via MQTT
https://github.com/stas-demydiuk/domoti ... ota-plugin

Feedback is appreciated
Hi Stas, I'm using your plugin as 5x dimmer, but I'm noticing some strange behaviour.
Domoticz V4.10303 on RPi, set channel 1& 2 to (eg) 50%.
Switch off channel 1 (or 2) - the channel switches off and the other channel slightly reduces %.
Switch back on - both channels slightly reduce %.
Sfter a few times switching on and off, all channels are reduced to 0....
Any suggestions?
Thanks for your efforts!
Will try to figure that out. I also have noticed some strange behavior with that device in 5 independent switches mode.

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Monday 31 December 2018 21:03
by Gert
Thanks. It may well have to do with conversion from % (0-100) to hex (00-FF) and back.
Changing your lines:
color["r"] = int(colors[0] * 255 / 100)
to
color["r"] = int((colors[0] + 1) * 255 / 100)

(for all 5 color channels) reduces the problem but doesn't entirely eliminate it.

Is it possible to stay either in "% mode" or in "hex mode" to avoid these conversions?

Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic

Posted: Tuesday 08 January 2019 12:39
by Gert
I've done a bit of digging...

The base problem lies with Tasmota. Due to the way it handles things, little changes in colors/channels may occur. This is reflected in the return MQTT-message issued by the H801. Tasmota says of this behaviour "it's a feature, not a bug"... :?

A possible way around it would be to introduce a hysteresis per channel: if the change is minor (say<3) then keep the old value, otherwise set a new value. I've looked into the code of your plugin, but haven't been able to get this suggestion implemented....