Search found 743 matches

by BertB
04 Sep 2018, 18:14
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@BertB: Try this: Find the code shown below in Nextion.ino's PLUGIN_WRITE: section: String log = F("NEXTION075 : WRITE, "); log += F("Command is "); log += (tmpString.c_str()); addLog(LOG_LEVEL_INFO, log); success = true; // Set true only if plugin found a command to execute. Change it to: String l...
by BertB
19 Aug 2018, 22:29
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

You asked about a more natural way to find information page about the Nextion plugin. How do other plugins do this? If you go to https://www.letscontrolit.com/ , then click ESP Easy and Wiki, then in the left column click ESP Easy and on the next page on 4 Supported Sensors/Actuators. and Again on ...
by BertB
19 Aug 2018, 20:18
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

This is my page https://www.letscontrolit.com/wiki/inde ... IONDisplay

If you search for the Nextion here https://www.letscontrolit.com/wiki/index.php/Devices and click the Nextion display, you get your pages.
by BertB
19 Aug 2018, 16:37
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@ThomasB

Is there a more natural way to find your information page about Nextion?

Would it not be nicer to get to it through the supported sensors part?
I am more than willing to move my How to (under construction) to another part of the wiki.

BertB
by BertB
15 Aug 2018, 16:04
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

ThomasB wrote:
15 Aug 2018, 01:16
Typo? The BC517 is listed as a NPN Darlington, whereas it needs to be a PNP small signal type. - Thomas
ooooooooops
I use a BC327
by BertB
14 Aug 2018, 23:15
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I have taken your advice and switched up my TX/RX pins to 13 and 15 (D7/D8 on my NodeMCU) so I can use hardware serial. I disabled Serial Log File in Tools and now I can communicate just fine!! I didn't get the PNP Transistor yet, so I assume if I attempt to restart the NodeMCU ESPEasy will fail on...
by BertB
13 Aug 2018, 23:04
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I managed to develop an easy way to update elements in the NEXTION, with HTTP messages send by domoticz.
It uses a small dzVents (LUA) script and the attributes of the devices in domoticz.

This can be handy if you want to sync with domoticz after a reset of Nextion.
by BertB
13 Aug 2018, 22:49
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@BertB: Try this: Find the code shown below in Nextion.ino's PLUGIN_WRITE: section: String log = F("NEXTION075 : WRITE, "); log += F("Command is "); log += (tmpString.c_str()); addLog(LOG_LEVEL_INFO, log); success = true; // Set true only if plugin found a command to execute. Change it to: String l...
by BertB
13 Aug 2018, 21:08
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@BertB: Unlike GPIO, Nextion does not reply to HTTP writes. So you won't see a status response to your Nextion commands sent by the browser. I suggest you retest with the browser and send commands that update some text fields (so you can verify HTTP writes to the display). If browser access is able...
by BertB
13 Aug 2018, 18:25
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I use http://xxx.xxx.xxx.xxx/control?cmd=NEXTION,page0.vLight.val=1 kind of commands to control my ESP. For some reason it works out ok in the ESP, but I get an error in Domoticz. I vaguely remember it used to work fine in the past. EDIT When I do this: http://xxx.xxx.xxx.xxx/control?cmd=GPIO,13,0 i...
by BertB
09 Aug 2018, 21:09
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

+1
by BertB
31 Jul 2018, 21:00
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Beautiful
by BertB
30 Jul 2018, 20:41
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

No problem. Maybe you can help me with that some time later. For now, I am sorting out with blockly.
by BertB
30 Jul 2018, 18:22
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Thank you Thomas, but I already know that. Per haps you do not know, but back in 2016, I started to continue on the work of majklovec and took Nextion plugin to what it was before TD-er brought it to the development area. Until that moment I posted some editions here. Never mind. I am very happy wit...
by BertB
30 Jul 2018, 09:25
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Any idea how to create your item number 3?
by BertB
29 Jul 2018, 23:38
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Good news.
I have an idea though.
It would be nice if Nextion was able to obtain the current states of devices at boot up.

I know it is possible to use json to interrogate Domoticz, put it requires a lot of parsing to get the requested data.
Or is there a simpler way?
by BertB
29 Jul 2018, 16:27
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Seems to be okay now :)
by BertB
27 Jul 2018, 18:25
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I removed the part with: if ((int(Settings.TaskDevicePluginConfig[event->TaskIndex][2]) != int(UserVar[event->BaseVarIndex])) || (int(Settings.TaskDevicePluginConfig[event->TaskIndex][3]) != int(UserVar[event->BaseVarIndex+1]))) { Settings.TaskDevicePluginConfig[event->TaskIndex][2] = UserVar[event-...
by BertB
27 Jul 2018, 18:17
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

My little change did not help either.
Imagine Switch 1 has code 2039 and Switch 2 has 2040
After the first action 2039 is being remebered,, so when 2040 arrives, a difference is found and the action is repeated.
Every time you use another switch, the problem sohws up.
by BertB
27 Jul 2018, 18:07
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Had the same problem. I do not know why I did not notice this before. I put some Serial.prints in the code (I can bwecause I use soft serial) an found that: Settings.TaskDevicePluginConfig[event->TaskIndex][2]=0 whereas UserVar[event->BaseVarIndex]= 0.00000000 or 2039 vs 2039.000000 And they don't c...
by BertB
27 Jul 2018, 17:33
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@ThomasB
Sorry to say, but the disco is back again.
I am now using 20180723.

I will try an older version.
by BertB
26 Jul 2018, 18:34
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

What I have read Serial.swap should be part of the package now and I find it back in HardwareSerial.h/cpp but cannot find how to use it anywhere on the web interface. Regards, Rob Where did you see this? If you want to know how to use Serial.swap(), you could look here http://esp8266.github.io/Ardu...
by BertB
25 Jul 2018, 20:29
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Correct, although I do not use the resistors.
by BertB
22 Jul 2018, 21:37
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

very nice indeed.
I have two work in progress projects.
One is a thermostat to be placed in the various rooms in my house.
The other one is a general purpose control panel.
I am now testing the pont control.
Pont control.PNG
Pont control.PNG (184.85 KiB) Viewed 9051 times
by BertB
22 Jul 2018, 18:31
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Which do think would have the widest appeal? I think more lines, but per haps it is not necessary to use that much ccharacters. 32 was just too few. Maybe 40 is ok. But despite that you got the latest Nextion plugin to work, I just realized my interval "fix" might not work correctly for everyone. S...
by BertB
22 Jul 2018, 17:20
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Do you use rules for intercepting the command? What if the exact command you use? We have a little parsing error that is going to be fixed here in some days. This is the rule: on Nextion#idx=2039 do SendToHTTP xxx.xxx.xxx.xxx,8080,/json.htm?type=command¶m=switchlight&idx=293&switchcmd=Toggle en...
by BertB
22 Jul 2018, 16:30
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Something seems to be not ok with the latest release Release mega-20180722, as it does not do the switching in Domoticz.
Release Release mega-20180719 seems to work.
by BertB
22 Jul 2018, 15:51
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@Thomas, You have limited the number of lines and the max number of characters. I guess it is to limit the memory usage, but iyt gave me a lot of trouble as I had to delete the plugin and activated it all over again. No big deal, but it was a bit confusing. Then, because of the lack of info on the W...
by BertB
19 Jul 2018, 23:11
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@ThomasB
I will test it this weekend.
by BertB
18 Jul 2018, 08:51
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I designed this communication to put more of the thinking in the Nextion, but it also more or less causes more often changes in the Nextion. This is not very user friendly while there is no easy way to update Nextion. Therefore I mostly use the id's and let Rules and Domoticz do the thinking. The dr...
by BertB
17 Jul 2018, 11:57
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I only have tested and developed with the Basic model.
by BertB
16 Jul 2018, 23:48
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

So far, the plugin is running just fine.
by BertB
16 Jul 2018, 14:10
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

ThomasB wrote:
16 Jul 2018, 07:51
I'm just the messenger, so don't shoot me.

- Thomas
Most certainly not. :-)
by BertB
16 Jul 2018, 07:03
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I installed a syslog server on my NAS and can now send ESP log files to it. This allowed me to see what your code is doing. It has the same interval behavior as the original Nextion release and the latest V3 code. So weird as on my wemos my latest code does not show the 60 sec on off behaviour. Ton...
by BertB
16 Jul 2018, 06:59
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

In your example the originating idx was a 1274 touch event. After the initial send, it is resent at the interval time. It is then processed by the rule file, which activates your light again. That is exactly my point. Why would a timer interval invoke a rule that should be event driven by the switc...
by BertB
15 Jul 2018, 23:24
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

What I do not understand is this: When I push a button, this causes serial data to flow to the serial port. This causes an event, where idx and value are being filled. When this event occurs it triggers a rule. Once every 60 seconds, idx and value are read and (in my case) send to a dummy device in ...
by BertB
15 Jul 2018, 22:25
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Thanks I will try it tomorrow.
by BertB
15 Jul 2018, 21:27
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I just used platformio to compile and upload the lot.
No change, 60sec interval still there
by BertB
15 Jul 2018, 21:14
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I am running V3 again, changed E16Nextion to Nextion and no difference.
My garage light looks like a disco.
by BertB
15 Jul 2018, 20:48
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

To test your version what method are you using to review the ESP log? The web interface's log has never worked correctly for me, so I need to come up with an alternate method that avoids edits to my home automation system. [/qoute] I agree, the web log is not working correctly. Once the Serial.swap...
by BertB
15 Jul 2018, 20:41
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@BertB: Is the assigned name of your plugin NEXTION or is it E16NEXTION? The reason I ask is that there's a ESP bug that requires the user assigned name for this plugin to always be set to NEXTION or some things will not work correctly. So please change the Plugin name to "NEXTION" plus update the ...
by BertB
15 Jul 2018, 13:12
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I use a slightly modified version of your suggested work around, but it seems that idx and value won't modify. on E16NEXTION#idx do if [E16NEXTION#idx]>=1274 // Touch Events SendToHTTP xxx.xxx.xxx.xxx,8080,/json.htm?type=command¶m=switchlight&idx=387&switchcmd=Toggle E16NEXTION#value = -1 endif ...
by BertB
15 Jul 2018, 12:50
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

No code changes were made that would affect this behavior, so you'll find that the original does it too. But if this is wrong then we can fix it. I dare to disagree :-). I carried out some investigation and found out that your latest (7-13-2018) code has the flaw, whereas my latest modification (07...
by BertB
15 Jul 2018, 00:45
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Two comments on that.
1 I cannot remember thuis happening with the original version.

2 In this case the event only triggers a rule. Idx will be id of the switch. Value is always 0.

I will test this in more detail tomorrow.
by BertB
15 Jul 2018, 00:06
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@ThomasB
It is 60 seconds, give or take a few.
The delay also is 60 sec.
by BertB
14 Jul 2018, 23:06
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@ThomasB After I installed your latest version V3, I started with using D7 and D8 as Rx and Tx, with the Use Hardware Serial left unchecked. Initially this works fine, but for some reason, I get unintended events. It is as if press a switch (1274) on the Nextion, but I don't. It happens once every m...
by BertB
14 Jul 2018, 22:09
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

@ThomasB, I will do the testing.
by BertB
14 Jul 2018, 09:17
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

Sounds like a good idea to me.
by BertB
12 Jul 2018, 23:02
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

It is hard to believe that the order of the states could make that kind of problems. Unless there is some kind of a memory or a stack problem..
by BertB
11 Jul 2018, 13:17
Forum: ESP Easy: Software
Topic: Nextion display plugin
Replies: 482
Views: 142898

Re: Nextion display plugin

I have problems too. Seems like the ESP is extremely busy doing something, but I can't see what, because ... No serial port. From the outside, the esp seems to be extremely slow, not to say dead. I think it would be nice to put a undo serial.swap statement in the factory reset routine (the one activ...