[ESP8266] Commercial H801 WiFi RGB-dimmer topic
Moderator: leecollings
-
- Posts: 26
- Joined: Monday 15 July 2013 8:17
- Target OS: Linux
- Domoticz version: Beta
- Location: Drenthe
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Can the H801 be used to control a series of 2W MR11 leds ? (instead of ledstrip)
-
- Posts: 8
- Joined: Wednesday 16 November 2016 19:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Hello and thank you for this guide kondrez!!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.
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!
-
- Posts: 2
- Joined: Friday 05 May 2017 9:43
- Target OS: Windows
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dihttp://interesting-facts.info/mmer topic
This H801 performs very well, a nice dimming resolution and works well.
-
- Posts: 5
- Joined: Friday 24 February 2017 9:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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
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
-
- Posts: 5
- Joined: Friday 24 February 2017 9:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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 !
-
- Posts: 2
- Joined: Wednesday 02 April 2014 21:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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!
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!
-
- Posts: 112
- Joined: Monday 26 June 2017 21:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Spain
- Contact:
-
- Posts: 9
- Joined: Saturday 14 January 2017 14:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Im trying your script as you mentioned, but when i switch to whatever color. i always heve the same PWM output on each GPIOactualy with above script you don't need to use the milight plugin
it will just dim using the build in pwm dimmer function.
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
-
- Posts: 1
- Joined: Sunday 10 December 2017 6:52
- Target OS: Windows
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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
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
-
- Posts: 59
- Joined: Saturday 14 January 2017 21:37
- Target OS: Linux
- Domoticz version: Beta
- Location: Ukraine
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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
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
-
- Posts: 3
- Joined: Wednesday 26 September 2018 13:41
- Target OS: Windows
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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
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
-
- Posts: 3
- Joined: Wednesday 26 September 2018 13:41
- Target OS: Windows
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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
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
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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
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
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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!
-
- Posts: 65
- Joined: Tuesday 24 February 2015 15:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
If you mean plugin 105 then it only fades when turning on or off ....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!
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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.
-
- Posts: 5
- Joined: Saturday 29 December 2018 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Hi Stas, I'm using your plugin as 5x dimmer, but I'm noticing some strange behaviour.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
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!
-
- Posts: 59
- Joined: Saturday 14 January 2017 21:37
- Target OS: Linux
- Domoticz version: Beta
- Location: Ukraine
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Will try to figure that out. I also have noticed some strange behavior with that device in 5 independent switches mode.Gert wrote: ↑Saturday 29 December 2018 18:06Hi Stas, I'm using your plugin as 5x dimmer, but I'm noticing some strange behaviour.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
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!
-
- Posts: 5
- Joined: Saturday 29 December 2018 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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?
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?
-
- Posts: 5
- Joined: Saturday 29 December 2018 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
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....
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....
Who is online
Users browsing this forum: No registered users and 0 guests