H801 : RGB controller based on ESP8266 avalaible from China

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Message
Author
luisfcosta
Normal user
Posts: 8
Joined: 20 May 2017, 07:23

Re: H801 : RGB controller based on ESP8266 avalaible from China

#101 Post by luisfcosta » 03 Jun 2017, 09:00

Sorry guys, trying to include plugin 105_rgbw into the lates R2.0 dev10, but my arduino IDE keeps throwing error after error (cannot find file, library, etc)
Is there a more straightforward way than rearranging my .ino's and .h's + .cpp's?

Trying to get my h801 flashed with ESPEasy and the correct plugin (105_rgbw?)
Can connect it with TTL and even upload ESPeasy v2.0 (bin file), but board irresponsive to port commands (WifiSSID, ...).

Any .bin already out there with the plugin?

Thanks for your hints!

xbmcnut
Normal user
Posts: 48
Joined: 17 Mar 2016, 08:49
Location: Auckland, NZ
Contact:

Re: H801 : RGB controller based on ESP8266 avalaible from China

#102 Post by xbmcnut » 12 Jun 2017, 03:47

Hey there,

Could someone give me a hint on how to add _P105_RGBW.ino for H801 to Platformio so I can compile? New to Platformio so any assistance would be appreciated.
Numerous Sonoff's, Home Assistant on Pi3, Vera 2 for Z-wave, ha-bridge for voice control with 3 x Echo Dot's and 2 x Google Home

vojtishek
Normal user
Posts: 69
Joined: 12 Jan 2017, 08:00

Re: H801 : RGB controller based on ESP8266 avalaible from China

#103 Post by vojtishek » 12 Jun 2017, 08:21

xbmcnut wrote:
12 Jun 2017, 03:47
Hey there,

Could someone give me a hint on how to add _P105_RGBW.ino for H801 to Platformio so I can compile? New to Platformio so any assistance would be appreciated.
Hi,
I'm using Espeasy r147 http://www.letscontrolit.com/downloads/ ... 47_RC8.zip.
Then you need to copy P105_RGBW.ino into following folder "ESPEasy_R147_RC8\Source\ESPEasy", then compile and flash.

You will select RGBw Milight as a device in ESPeasy and set following parameters, rgbw milight udp port 8899 red pin 15 green pin 13 blue pin 12 white pin 14.
Then add following in Domoticz, If you are using domoticz
Image


Let me know if succesfull, otherwise I can send you better detail as I'm not currently at home.

xbmcnut
Normal user
Posts: 48
Joined: 17 Mar 2016, 08:49
Location: Auckland, NZ
Contact:

Re: H801 : RGB controller based on ESP8266 avalaible from China

#104 Post by xbmcnut » 12 Jun 2017, 11:59

vojtishek wrote:
12 Jun 2017, 08:21

Then you need to copy P105_RGBW.ino into following folder "ESPEasy_R147_RC8\Source\ESPEasy", then compile and flash.
@vojtishek. Thank you so much!! Easier than I thought and quite obvious when I think about it. :idea: I'm using Home Assistant so will be controlling the device using MQTT. So this 105 plugin basically emulates a MiLight bridge?
Numerous Sonoff's, Home Assistant on Pi3, Vera 2 for Z-wave, ha-bridge for voice control with 3 x Echo Dot's and 2 x Google Home

xbmcnut
Normal user
Posts: 48
Joined: 17 Mar 2016, 08:49
Location: Auckland, NZ
Contact:

Re: H801 : RGB controller based on ESP8266 avalaible from China

#105 Post by xbmcnut » 12 Jun 2017, 12:09

vojtishek wrote:
12 Jun 2017, 08:21
Then you need to copy P105_RGBW.ino into following folder "ESPEasy_R147_RC8\Source\ESPEasy", then compile and flash.
Whoops. Get these errors when trying to compile now. Do I need to define the plugin somewhere?

Code: Select all

Compiling .pioenvs\normal_4096\FrameworkArduino\Updater.o
C:/Users/peters/OneDrive/Home Automation/ESPEasy/ESPEasy_v2.0.0-dev10/Source/src/_P105_RGBW.ino: In function 'boolean Plugin_105(byte, EventStruct*, String&)':
C:/Users/peters/OneDrive/Home Automation/ESPEasy/ESPEasy_v2.0.0-dev10/Source/src/_P105_RGBW.ino:273:36: error: 'Plugin_105_FadingTimer' was not declared in this scope

{
^
C:/Users/peters/OneDrive/Home Automation/ESPEasy/ESPEasy_v2.0.0-dev10/Source/src/_P105_RGBW.ino:331:29: error: 'Plugin_105_ProcessUDP' was not declared in this scope
if (Plugin_105_Pins[PinIndex].CurrentLevel <= Plugin_105_Pins[PinIndex].FadingTargetLevel && Plugin_105_Pins[PinIndex].FadingDirection < 0)
^
C:/Users/peters/OneDrive/Home Automation/ESPEasy/ESPEasy_v2.0.0-dev10/Source/src/_P105_RGBW.ino: In function 'void Plugin_105_ProcessUDP()':
C:/Users/peters/OneDrive/Home Automation/ESPEasy/ESPEasy_v2.0.0-dev10/Source/src/_P105_RGBW.ino:849:109: error: 'Plugin_105_HSL2Rgb' was not declared in this scope
Compiling .pioenvs\normal_4096\FrameworkArduino\WMath.o
Compiling .pioenvs\normal_4096\FrameworkArduino\WString.o
*** [.pioenvs\normal_4096\src\ESPEasy.ino.o] Error 1
 [ERROR] Took 5.11 seconds
Numerous Sonoff's, Home Assistant on Pi3, Vera 2 for Z-wave, ha-bridge for voice control with 3 x Echo Dot's and 2 x Google Home

xbmcnut
Normal user
Posts: 48
Joined: 17 Mar 2016, 08:49
Location: Auckland, NZ
Contact:

Re: H801 : RGB controller based on ESP8266 avalaible from China

#106 Post by xbmcnut » 12 Jun 2017, 12:13

Hmmm. Do I need to be using older builds?
Numerous Sonoff's, Home Assistant on Pi3, Vera 2 for Z-wave, ha-bridge for voice control with 3 x Echo Dot's and 2 x Google Home

vojtishek
Normal user
Posts: 69
Joined: 12 Jan 2017, 08:00

Re: H801 : RGB controller based on ESP8266 avalaible from China

#107 Post by vojtishek » 12 Jun 2017, 13:28

xbmcnut wrote:
12 Jun 2017, 12:13
Hmmm. Do I need to be using older builds?
Ah, I didn't try v2.0.0-dev10 so I can't sat if it's functionable or not. Try to compile it for RC147. This one worked for me.

vojtishek
Normal user
Posts: 69
Joined: 12 Jan 2017, 08:00

Re: H801 : RGB controller based on ESP8266 avalaible from China

#108 Post by vojtishek » 12 Jun 2017, 13:31

Did you download whole master zip from https://github.com/ESP8266nu/ESPEasyPluginPlayground and extract only _P105_RGBW.ino?

xbmcnut
Normal user
Posts: 48
Joined: 17 Mar 2016, 08:49
Location: Auckland, NZ
Contact:

Re: H801 : RGB controller based on ESP8266 avalaible from China

#109 Post by xbmcnut » 12 Jun 2017, 23:58

vojtishek wrote:
12 Jun 2017, 13:31
Did you download whole master zip from https://github.com/ESP8266nu/ESPEasyPluginPlayground and extract only _P105_RGBW.ino?
I downloaded the RAW data for the plugin and created a file in Notepad++. Will that not work?
Numerous Sonoff's, Home Assistant on Pi3, Vera 2 for Z-wave, ha-bridge for voice control with 3 x Echo Dot's and 2 x Google Home

xbmcnut
Normal user
Posts: 48
Joined: 17 Mar 2016, 08:49
Location: Auckland, NZ
Contact:

Re: H801 : RGB controller based on ESP8266 avalaible from China

#110 Post by xbmcnut » 13 Jun 2017, 00:08

Downloaded plugin zip from GitHub and extracted P105 to ESPEasy_v2.0.0-dev10\Source\src. Same error.
Numerous Sonoff's, Home Assistant on Pi3, Vera 2 for Z-wave, ha-bridge for voice control with 3 x Echo Dot's and 2 x Google Home

vojtishek
Normal user
Posts: 69
Joined: 12 Jan 2017, 08:00

Re: H801 : RGB controller based on ESP8266 avalaible from China

#111 Post by vojtishek » 13 Jun 2017, 03:56

Just mention that, because I've downloaded by save as just the plugin from github and that doesnt work. There is need to download whole master zip and extract just the plugin from it and copy into release folder ESPEasy
Try another release

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: H801 : RGB controller based on ESP8266 avalaible from China

#112 Post by Blacky's Boss » 17 Sep 2017, 23:20

Tonight I Flashed my H801, ESPEasy 2.0.0-dev-11, Arduino 1.8.4, Milight RGBW plugin (P105).

All seems to work, but the colors are wrong.... Because I have a cheap strip with seperate colored led's, it's simple to see...

If I set the color to &h 00ff00, Green is full on. Correct.
If I set the color to &h 0000ff, Blue is full on. Correct.
If I set the color to &h ff00ff, both Red and Blue are on. Correct
If I set the color to &h ff0000, Red is on, but also Green...
[edit]Forgot to mention this is all in Domoticz
Oh, and setting an orange color makes it go green
Something tells me the calculations are off, but am I the only one?[/edit]

Why? :shock:

pearson
Normal user
Posts: 2
Joined: 11 Apr 2017, 20:29

Re: H801 : RGB controller based on ESP8266 avalaible from China

#113 Post by pearson » 19 Sep 2017, 10:13

Blacky's Boss wrote:
17 Sep 2017, 23:20
Tonight I Flashed my H801, ESPEasy 2.0.0-dev-11, Arduino 1.8.4, Milight RGBW plugin (P105).
How did you manage to get ESPEasy 2.0.0-dev-11 to compile with P105? Several of us here are getting "was not declared in this scope" errors when building with it.

(I'd normally think that a header file was missing, but I'm new to Atom and .ino files and I'm a bit mystified at the lack of header files. :) )

Edit: I got it to build by moving those methods to the top of the _P105_RGBW.ino file, but that's obviously a hack. If someone could explain what simple thing I must be missing here, I'd really appreciate it.

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: H801 : RGB controller based on ESP8266 avalaible from China

#114 Post by Blacky's Boss » 19 Sep 2017, 12:36

These are the steps I took:
- Downloaded from github: https://github.com/letscontrolit/ESPEas ... -dev11.zip
- extracted to a folder ESPEasy_v2.0.0-dev11
- renamed the folder src to ESPEasy
- renamed the folder lib to libraries
- deleted all the other crap
- set the sketchfolder in the Arduino IDE to the ESPEasy_v2.0.0-dev11
- Restarted the IDE
- Ignore the message from the IDE that there are updates for some of your librairies!!!!!
- opened sketch ESPEasy and compiled!

Oh, and offcourse I downloaded the pLugins and dragged the P105 in the ESPEasy folder.

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: H801 : RGB controller based on ESP8266 avalaible from China

#115 Post by Blacky's Boss » 24 Sep 2017, 09:27

So, no one?

HAMFAM
Normal user
Posts: 1
Joined: 26 Sep 2017, 09:04

Re: H801 : RGB controller based on ESP8266 avalaible from China

#116 Post by HAMFAM » 26 Sep 2017, 11:45

hi Blackys Boss

i am just starting a home automation system (Espeasy + sonoff + yeelight + ledstrips + Domoticz) and i just about got a working ledstrip RGB and getting weird results

ESPEasy v 2.0.0-dev11
arduino v 1.8.4 windows
_P105_RGBW
H801

compiled the plugin and downloaded to the H801 (using 256k spiff) and setup the H801
Milight as a device in ESPeasy, rgbw milight udp port 8899 red pin 15 green pin 13 blue pin 12 white pin 14.

using jason - http://192.168.x.x/control?cmd=pwm,12,1024 (blue) http://192.168.x.x/control?cmd=pwm,13,1024 (green) http://192.168.x.x/control?cmd=pwm,15,1024 (red) so that is working right

but i still have a problem with Domoticz, the ledstrip flashes the colour but then always turns white (0 to 100%) regardless of the target colour on the RGB Dimmer

Can you help me?

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: H801 : RGB controller based on ESP8266 avalaible from China

#117 Post by Blacky's Boss » 26 Sep 2017, 19:05

I wish I could... I seem to have the same setup, but mine sort of works, except for the wrong colours, offcourse...

pearson
Normal user
Posts: 2
Joined: 11 Apr 2017, 20:29

Re: H801 : RGB controller based on ESP8266 avalaible from China

#118 Post by pearson » 28 Sep 2017, 06:26

Blacky's Boss wrote:
19 Sep 2017, 12:36
These are the steps I took:
- Downloaded from github: https://github.com/letscontrolit/ESPEas ... -dev11.zip
- extracted to a folder ESPEasy_v2.0.0-dev11
- renamed the folder src to ESPEasy
- renamed the folder lib to libraries
- deleted all the other crap
- set the sketchfolder in the Arduino IDE to the ESPEasy_v2.0.0-dev11
- Restarted the IDE
- Ignore the message from the IDE that there are updates for some of your librairies!!!!!
- opened sketch ESPEasy and compiled!

Oh, and offcourse I downloaded the pLugins and dragged the P105 in the ESPEasy folder.
Thank you very much! I was so focused on the PlatformIO / Atom business that I wasn't using the Arduino IDE.

Oddly, I had to change my flash mode for the one I'm trying with ESPEasy. The first one I flashed had an ESP-12S, but the next two (from the same order) have a mystery unshielded (ie. no metal box covering it) ESP unit. The chip is ESP8266, but it has a PN25F08B flash that others in these forums have noted requires the DOUT flash method.

elmicha
Normal user
Posts: 4
Joined: 30 Sep 2017, 20:12

Re: H801 : RGB controller based on ESP8266 avalaible from China

#119 Post by elmicha » 29 Oct 2017, 14:14

pearson wrote:
19 Sep 2017, 10:13
Edit: I got it to build by moving those methods to the top of the _P105_RGBW.ino file, but that's obviously a hack. If someone could explain what simple thing I must be missing here, I'd really appreciate it.
It also works if we just declare these functions before the Plugin_105() function:

Code: Select all

void Plugin_105_FadingTimer();
void Plugin_105_ProcessUDP();
void Plugin_105_HSL2Rgb(float h, float s, float l);
I guess the Arduino IDE automatically extracts the function declarations and prepends them, so the compiler is happy. But Platformio doesn't do this.

rpa
Normal user
Posts: 3
Joined: 09 Jun 2017, 19:23

Re: H801 : RGB controller based on ESP8266 avalaible from China

#120 Post by rpa » 24 Aug 2018, 21:51

Can anybody upload this compiled firmware to.... Google drive and share it.

coolduke
Normal user
Posts: 5
Joined: 03 Sep 2018, 15:11

Re: H801 : RGB controller based on ESP8266 avalaible from China

#121 Post by coolduke » 10 Sep 2018, 12:04

hi,

which is the best plugin for H801?

P141 or P142?

I want to use H801 with MQTT and openhab.

H801 connected to RGB Strip and 2 separate white led strips.

thx!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests