H801 : RGB controller based on ESP8266 avalaible from China

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
luisfcosta
New 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: 49
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 and Shelly's, Home Assistant on Intel NUC i3, Aeotec Z-Stick (Gen 5), deCONZ Zigbee Stick, 3 x Echo Dot's and 5 x Google Home

vojtishek
Normal user
Posts: 70
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: 49
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 and Shelly's, Home Assistant on Intel NUC i3, Aeotec Z-Stick (Gen 5), deCONZ Zigbee Stick, 3 x Echo Dot's and 5 x Google Home

xbmcnut
Normal user
Posts: 49
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 and Shelly's, Home Assistant on Intel NUC i3, Aeotec Z-Stick (Gen 5), deCONZ Zigbee Stick, 3 x Echo Dot's and 5 x Google Home

xbmcnut
Normal user
Posts: 49
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 and Shelly's, Home Assistant on Intel NUC i3, Aeotec Z-Stick (Gen 5), deCONZ Zigbee Stick, 3 x Echo Dot's and 5 x Google Home

vojtishek
Normal user
Posts: 70
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: 70
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: 49
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 and Shelly's, Home Assistant on Intel NUC i3, Aeotec Z-Stick (Gen 5), deCONZ Zigbee Stick, 3 x Echo Dot's and 5 x Google Home

xbmcnut
Normal user
Posts: 49
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 and Shelly's, Home Assistant on Intel NUC i3, Aeotec Z-Stick (Gen 5), deCONZ Zigbee Stick, 3 x Echo Dot's and 5 x Google Home

vojtishek
Normal user
Posts: 70
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
New 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
New 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
New 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
New 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
New 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
New 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!

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#122 Post by tparvais » 19 Apr 2020, 00:25

Hello

I up this post for some fresh feedback

I use Milight with its remote control to pilot some ledstrip RGB.

Is there still plugin for Espeasy to control it ? (by using UDP gateway) or directly via another element such as the one just on the post above ? can we load espeasy FW on it ?

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#123 Post by tparvais » 30 Nov 2020, 18:55

Hello

is this plugin usable with Milight Wifi gateway in UDP ?

if yes, +I cannot get compilation properly.

I tried to compile this Plugin 105: RGBW / Milight with last master build from github and platformio without any success: many compilation errors

Platformio/projects/ESPEasy-mega-20201102/src/_P105_RGBW.ino:267:31: error: 'SENSOR_TYPE_DIMMER' was not declared in this scope
Device[deviceCount].VType = SENSOR_TYPE_DIMMER;
^
Platformio/projects/ESPEasy-mega-20201102/src/_P105_RGBW.ino:298:20: error: 'WebServer' was not declared in this scope
String plugin1 = WebServer.arg("plugin_105_port");

...

it seems this plugin is not aligned with last builds and new structure as types are not defined, etc...

Any idea to solve it simply ?

Thomas

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#124 Post by TD-er » 30 Nov 2020, 19:17

WebServer
Change into: web_server


Device[deviceCount].VType = SENSOR_TYPE_DIMMER;
Change into: Device[deviceCount].VType = Sensor_VType::SENSOR_TYPE_DIMMER;

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#125 Post by tparvais » 02 Dec 2020, 17:44

Thanks, I progress. Now next error:

/src/_P105_RGBW.ino:432:34: error: invalid initialization of non-const reference of type 'String&' from an rvalue of type 'char*'
if (GetArgv(command, TmpStr1, 2)) Par[1] = str2int(TmpStr1);

same for these lines

if (GetArgv(command, TmpStr1, 2)) Par[1] = str2int(TmpStr1);
if (GetArgv(command, TmpStr1, 3)) Par[2] = str2int(TmpStr1);
if (GetArgv(command, TmpStr1, 4)) Par[3] = str2int(TmpStr1);
if (GetArgv(command, TmpStr1, 5)) Par[4] = str2int(TmpStr1);
if (GetArgv(command, TmpStr1, 6)) Par[5] = str2int(TmpStr1);
if (GetArgv(command, TmpStr1, 7)) Par[6] = str2int(TmpStr1);
if (GetArgv(command, TmpStr1, 8)) Par[7] = str2int(TmpStr1);

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#126 Post by TD-er » 02 Dec 2020, 19:14

if (GetArgv(command, TmpStr1, 2)) Par[1] = str2int(TmpStr1);

Can be done in 2 ways:

if (GetArgv(command, TmpStr1, 2)) Par[1] = str2int(TmpStr1.c_str());

or

if (GetArgv(command, TmpStr1, 2)) Par[1] = TmpStr1.toInt());

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#127 Post by tparvais » 03 Dec 2020, 10:09

hello

thankl you

I tried both , but still the same issue

/src/_P105_RGBW.ino:432:34: error: invalid initialization of non-const reference of type 'String&' from an rvalue of type 'char*'
if (GetArgv(command, TmpStr1, 2)) Par[1] = TmpStr1.toInt();
^


it seems that the problem is in the GetArgv

thank you

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#128 Post by TD-er » 03 Dec 2020, 10:59

Maybe command is of type String here?

Code: Select all

if (GetArgv(command.c_str(), TmpStr1, 2)) Par[1] = TmpStr1.toInt();

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#129 Post by tparvais » 03 Dec 2020, 11:24

more context:

i tried with first if then , but no results. I think indeed some mismatch in types

case PLUGIN_WRITE:
{
int Par[8];
char command[80];
command[0] = 0;
char TmpStr1[80];
TmpStr1[0] = 0;

string.toCharArray(command, 80);
Par[1] = 0;
Par[2] = 0;
Par[3] = 0;
Par[4] = 0;
Par[5] = 0;
Par[6] = 0;
Par[7] = 0;

String tmpString = string;
int argIndex = tmpString.indexOf(',');
if (argIndex) tmpString = tmpString.substring(0, argIndex);

if (GetArgv(command.c_str(), TmpStr1, 2)) Par[1] = TmpStr1.toInt();
if (GetArgv(command, TmpStr1, 3)) Par[2] = str2int(TmpStr1.c_str());
if (GetArgv(command, TmpStr1, 4)) Par[3] = str2int(TmpStr1.c_str());
if (GetArgv(command, TmpStr1, 5)) Par[4] = str2int(TmpStr1.c_str());

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

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

#130 Post by Ath » 03 Dec 2020, 11:39

tparvais wrote: 03 Dec 2020, 11:24

Code: Select all

		if (GetArgv(command.c_str(), TmpStr1, 2)) Par[1] = TmpStr1.toInt();
		if (GetArgv(command, TmpStr1, 3)) Par[2] = str2int(TmpStr1.c_str());
		if (GetArgv(command, TmpStr1, 4)) Par[3] = str2int(TmpStr1.c_str());
		if (GetArgv(command, TmpStr1, 5)) Par[4] = str2int(TmpStr1.c_str());
Have you updated all those GetArgv calls? If not then I'd expect more compiler errors...

And for code reduction and readability you might want to consider to replace the 8 calls into a for loop using only 1 GetArgv() call:

Code: Select all

		for (uint8_t arg = 0; arg < 8; arg++) {
			if (GetArgv(command.c_str(), TmpStr1, arg + 1)) Par[arg] = TmpStr1.toInt();
		}
(Air code, not at my dev computer atm.)
/Ton (PayPal.me)

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#131 Post by tparvais » 03 Dec 2020, 14:56

Hello

I tried with code optim

Code: Select all

	case PLUGIN_WRITE:
	{
		int Par[8];
		char command[80];
		command[0] = 0;
		char TmpStr1[80];
		TmpStr1[0] = 0;

		string.toCharArray(command, 80);
		Par[1] = 0;
		Par[2] = 0;
		Par[3] = 0;
		Par[4] = 0;
		Par[5] = 0;
		Par[6] = 0;
		Par[7] = 0;

		String tmpString = string;
		int argIndex = tmpString.indexOf(',');
		if (argIndex) tmpString = tmpString.substring(0, argIndex);
/*
		if (GetArgv(command.c_str(), TmpStr1, 2)) Par[1] = TmpStr1.toInt();
		if (GetArgv(command.c_str(), TmpStr1, 3)) Par[2] = TmpStr1.toInt();
		if (GetArgv(command.c_str(), TmpStr1, 4)) Par[3] = TmpStr1.toInt();
		if (GetArgv(command.c_str(), TmpStr1, 5)) Par[4] = TmpStr1.toInt();
		if (GetArgv(command.c_str(), TmpStr1, 6)) Par[5] = TmpStr1.toInt();
		if (GetArgv(command.c_str(), TmpStr1, 7)) Par[6] = TmpStr1.toInt();
		if (GetArgv(command.c_str(), TmpStr1, 8)) Par[7] = TmpStr1.toInt();
*/
// Code optim
		for (uint8_t arg = 1; arg < 8; arg++) {
			if (GetArgv(command.c_str(), TmpStr1, arg + 1)) Par[arg] = TmpStr1.toInt();
		}
till two issues in bold:

C:/Users/tparvais/Documents/Platformio/projects/ESPEasy-mega-20201102/src/_P105_RGBW.ino: In function 'boolean Plugin_105(byte, EventStruct*, String&)':
C:/Users/tparvais/Documents/Platformio/projects/ESPEasy-mega-20201102/src/_P105_RGBW.ino:442:24: error: request for member 'c_str' in 'command', which is of non-class type 'char [80]'
if (GetArgv(command.c_str(), TmpStr1, arg + 1)) Par[arg] = TmpStr1.toInt();

C:/Users/tparvais/Documents/Platformio/projects/ESPEasy-mega-20201102/src/_P105_RGBW.ino:442:71: error: request for member 'toInt' in 'TmpStr1', which is of non-class type 'char [80]'
if (GetArgv(command.c_str(), TmpStr1, arg + 1)) Par[arg] = TmpStr1.toInt();

probably because TempString1 & Command are char and not string

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#132 Post by tparvais » 07 Dec 2020, 09:07

hello

any news ? not familiar wit this code...

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#133 Post by TD-er » 07 Dec 2020, 09:13

I will have a look at the Playground code for this plugin later today.

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#134 Post by TD-er » 08 Dec 2020, 09:46

I fixed the compile issues and updated the playground code.
https://github.com/letscontrolit/ESPEas ... 5_RGBW.ino
Have not tested it at all.

Since it now uses this check:

Code: Select all

#ifdef USES_P105
Make sure to define that in your build configuration.
Either in src/src/CustomBuild/define_plugin_sets.h or in your Custom.h

tparvais
Normal user
Posts: 99
Joined: 28 Oct 2015, 23:13

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

#135 Post by tparvais » 17 Dec 2020, 20:34

Thank you TD-ER, it's compiling.

This plugin does not what I was expecting (control Milight via UDP protocol). he's working with an external radio emitter 2.4G, maybe I'll give a try

Thomas

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 39 guests