Search found 356 matches

by enesbcs
18 May 2019, 21:34
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

Is there any reason that this doesn't work with an LCTECH relay on the latest firmware ESP82xx Core 2_4_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support It works fine on an older version "Core Version: 2_4_0_RC2" As far as I can see all the settings are the same, compiled on PlatformIO Thanks....
by enesbcs
15 May 2019, 22:44
Forum: uPyEasy: Software
Topic: python script to issue GPIO command
Replies: 2
Views: 52

Re: python script to issue GPIO command

I want to implement this command in Python from my RPI. If you want to control your Raspberry with ESPEasy-like commands why don't you simply use RPIEasy? (with ESPEasy P2P networking it is able to use udp SendTo commands for remote espeasy control for example..) https://www.letscontrolit.com/forum...
by enesbcs
08 May 2019, 17:33
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

third check if (bytes_read == 25) { // packet start --> check if byte 0 is "0x55" if (bytes_read == 26) { // check if packet is valid --> check if byte 1 is "0xAA" You are on a bad track, "bytes_read" will never above 20. As i mentioned before only one package held at a time in the plugin buffer wh...
by enesbcs
04 May 2019, 16:38
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

And the Nuvoton N76E003 I got is programmed to interpret just that. When reprogram the ESP with ESP Easy it just sends the "correct" command with the 4 bytes, which is not seen as a "correct" command by theN76E003. Is there a simpler way to test this theory with the "Command" tool in the web interf...
by enesbcs
04 May 2019, 00:53
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

1. looking into the following code: line 681: I'm interested in the byte "btnnum". What's confusing is this line "Serial.write( (btnnum + 1) ); // relay number 1,2,3" Are we adding "+ 1" because btnnum = 01 for the first relay? Yes the Tuya addresses buttons from 1, the plugin addresses EVERYTHING ...
by enesbcs
04 May 2019, 00:28
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

This is my first post in this forum, so bare with me. I went to Aliexpress and got some LCTech 2ch relays. I have a really hard time to get it to work with ESP Easy. I realized that the 2-channel version I got had a Nuvoton N76E003 MCU instedad of the STM. Url? At the description page the seller us...
by enesbcs
02 May 2019, 18:30
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

If I select 0, it doesn't parse anything from the MCU. I may get 1 set of four log entries, every 1-2 minutes It is very sad. My old Tuya unit reports its state on its own when any status is changed on it without any periodic check. If it is true, than i will never buy Tuya switches again. Sonoff a...
by enesbcs
01 May 2019, 17:33
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

I've loaded this version up and after introducing a 5 sec interval I got a somewhat cleaner output: And what if you set 0 sec intervals? I'm wondering..., when reading the States of the input, is there a way to discard everything before the 100ms delay? As the MCU sends the whole lot, at ~5 second ...
by enesbcs
01 May 2019, 17:22
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

So let me get this straight: Does the code constantly look for 55AA in the stream and every time it gets it, it parses the info? so when it receives a load like this: 55AA 0107000501010001000F 55AA 01070005020100010010 55AA 01070005030100010011 55AA 01070005040100010012 55AA 01070008070200040000000...
by enesbcs
01 May 2019, 14:49
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

Another problem I have now is I'm unable to do an OTA upload on a 1M chip as the code exceeded 600ish kb. I have to cut the RX track, solder the wires, upload the firmware via USB, un-solder the wires, place the RX track back and so on. :( I am sorry. My Tuya switch has 4MB flash. :) ESPEasy core i...
by enesbcs
01 May 2019, 14:47
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

1. Start of message - Wait for a gap longer than say 100ms and then start grabbing the data. 2. End of message - Payload is complete when there is no more data for 100ms. I see no reason for waiting anything, neither checking the message end. To know where is the package end, you have to check and ...
by enesbcs
01 May 2019, 10:37
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

3. When I switch them all off, the first two switches report off but switch 3 and 4 report staying on (Not so good) Screen Shot 2019-05-01 at 1.32.32 pm.png My thoughts: I'm wondering if it has anything to do with the way the device sends an update (~ every 10 seconds)? and the way that plugin deal...
by enesbcs
30 Apr 2019, 18:13
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

One step further and here is what I have: 55AA 01 07 05 01 01 00 01 00 0F /Switch OFF 55AA 01 07 05 02 01 00 01 00 10 /Switch OFF 55AA 01 07 05 03 01 00 01 00 11 /Switch OFF 55AA 01 07 05 04 01 00 01 00 12 /Switch OFF 55AA 01 07 05 01 01 00 01 01 10 /Switch ON* 55AA 01 07 05 02 01 00 01 00 10 /Swit...
by enesbcs
29 Apr 2019, 18:12
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

Have you developed this in PlatformIO or Arduino IDE? If PlatformIO, provide the source in a zip, if you like. I''ll give it a go myself and post the results. Mravko... Arduino. https://github.com/letscontrolit/ESPEasy/releases/tag/mega-20181231 https://github.com/enesbcs/ESPEasyPluginPlayground/bl...
by enesbcs
29 Apr 2019, 18:10
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

However: The log shows the same thing. With all four switches are "on" the output is: SerSW : Dimmer 364670: EVENT: MCU#Relay0=1.00 364674: EVENT: MCU#Relay1=1.00 364676: EVENT: MCU#Relay2=1.00 364679: EVENT: MCU#Relay3=0.00 error: So he fourth relay is not reporting that it is on and with all swit...
by enesbcs
28 Apr 2019, 21:03
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

Added 4th button for TUYA.

I've compiled for core240 (this core proved itself working earlier), core241 (may work), core242 (may not work) with the last ESPEasy sources with untouched serial code. (20181231)
4M and 1M builds and 1M/PUYA builds also included.
by enesbcs
28 Apr 2019, 16:01
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

So here is the 4 gang wall switch 4ch - back.jpg the switches have a controller board and a relay board, as well as the current sensors. I guess the current sensors are not that important (it's more of a nice-to-have), especially for the GPOs. But if it isnt too much trouble, may I ask for a versio...
by enesbcs
28 Apr 2019, 08:47
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

Oh and one more thing... The Tuya only has 1 relay and 3 (or 1 + 2 dimmer) My tuya switches hav 1, 2, 3 and 4 relays. I am unable to select 4 relays in the Yewelink/TUYA type How hard is it to add the 4 relays to the TUYA switch type drop-down? I've never seen a Tuya device with more than 3 buttons...
by enesbcs
28 Apr 2019, 08:41
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

I have noticed, however, that both the switches (1, 2, 3 and 4 Gang) as well as the Power outlets have current sensors. ... I'm wondering how we could add these readings to the plug-in and take full advantage of the protocol rather than just switch on, off and dim? I only have a 1 gang simple Tuya ...
by enesbcs
28 Apr 2019, 08:34
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

... then Arduino says done! Low and behold, the board does not boot up. When i reflash using the ESPEasy_1M_128kSPIFFS_PUYA.zip and the flash tool, it works just fine. So, reflash with Arduino and nothing... I guess you did not applied the PUYA patch to the ESP core before compiling: https://github...
by enesbcs
13 Apr 2019, 19:18
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

henkdejonge wrote:
13 Apr 2019, 14:01
After a reboot the red crosses are gone... ;-)
Thank you for your feedback I've added extra dependencies in todays commit to RPIEasy.
by enesbcs
12 Apr 2019, 20:23
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Hi, Tried the command... same result... :-( I think I'll try to reinstall the whole stuff from the beginning. Nice job for the weekend.. ;-) Thanks anyway for your support.. or perhaps somethings else pops up in your head.. Henk. Hi! It is very odd, looks like you have more dependencies missing, th...
by enesbcs
11 Apr 2019, 17:32
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

henkdejonge wrote:
11 Apr 2019, 09:18
I've run the commands as requested. Everything went well. Only the last command for installing pygame exited with a error code 1.
Attached the output.
I see. Please try:

Code: Select all

sudo apt-get install libsdl1.2-dev
Then:

Code: Select all

sudo pip3 install pygame
by enesbcs
10 Apr 2019, 20:18
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Hi, I still got a small issue. I can't get pygame installed. Tried all kind of things but NOGO. Henk Hi, Please send me the output of the following linux commands: cat /etc/os-release dpkg -s python3-pip cat /etc/apt/sources.list Then try to run installation manually: sudo apt-get update sudo apt-g...
by enesbcs
01 Apr 2019, 20:56
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

ok. I have a few of these relays and esp8266 laying around. After following the instructions here : https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=3245&start=100#p28044 i was able to get them working by using the bin file here: https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=3245&s...
by enesbcs
30 Mar 2019, 18:33
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Hello enesbcs, Is it possible to add Display button: as esp firmware has? It really fits my project, please see isn't it? After add 10 piece 18b20, my central heating automation will be OK. Nice project! I've never used the "Display button" setting before... is it simply switching on and off the di...
by enesbcs
29 Mar 2019, 22:44
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Hello enesbcs, Is it possible to add Display button: as esp firmware has? It really fits my project, please see isn't it? After add 10 piece 18b20, my central heating automation will be OK. Nice project! I've never used the "Display button" setting before... is it simply switching on and off the di...
by enesbcs
27 Mar 2019, 18:15
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

riker1 wrote:
27 Mar 2019, 12:53
I checked with ESP01 and had a problem writing config data.

so setting a device destroyed the config.
Did you use PUYA-safe builds from the previous stable release on that chip?
by enesbcs
25 Mar 2019, 22:31
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Sorry i do not use Windows. I am using Ubuntu Linux with real ssh client, and it's screen remains readable after disconnect. You can try to install a syslog server to your windows and enable syslog logging in rpieasy, this way the logs can be saved. Hello enesbcs, I install fresh raspian and also R...
by enesbcs
25 Mar 2019, 10:17
Forum: ESP Easy: Software
Topic: Ping Plugin
Replies: 25
Views: 3236

Re: Ping Plugin

Wiki wrote:
24 Mar 2019, 21:06
You're my hero, works. Thank you.

If you stay one time in DE just come along, I'll buy you a beer (or two).
Thanks! :)
Finally i've succesfully compiled the same on the newest Core 2.6.0-dev which seems a lot more stable than previous "stable" 2.5.0.
by enesbcs
24 Mar 2019, 19:10
Forum: ESP Easy: Software
Topic: Ping Plugin
Replies: 25
Views: 3236

Re: Ping Plugin

@enesbcs: "Temperature Thermocouple " doesn't work, there is no chip available to be chosen. Thermo1.JPG The plugin I was using before is named "Environment Thermocouple", there you get a dropdown to choose the chip. Thermo2.JPG But don't put too much efforts in it, I personally am fine with the fo...
by enesbcs
24 Mar 2019, 16:03
Forum: ESP Easy: Software
Topic: Ping Plugin
Replies: 25
Views: 3236

Re: Ping Plugin

Wiki wrote:
24 Mar 2019, 12:11
Only thing thats missing now is the max6675.
Temperature Thermocouple is already in these binaries. I do not know any other plugin that supports max6675...
by enesbcs
23 Mar 2019, 22:05
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

is it possible to have an updated firmware? - required: controller: FHEM, MQTT, device: of courcse MCU relais - is it possible to add generic MQTT import? - generic system info with 4 variables? New binary attached with 20190311 sources compiled against Arduino ESP core 2.5.0. UNTESTED and totally ...
by enesbcs
23 Mar 2019, 22:01
Forum: ESP Easy: Software
Topic: Ping Plugin
Replies: 25
Views: 3236

Re: Ping Plugin

I want to try to get more stability on four critical nodes concerning the WD timeout reboots following the recommendation of TD-er on github. On the device I want to use for continuous pings I need the max6675 plugin, too. Is there any possibility to get a binary version which allows one more ping ...
by enesbcs
22 Mar 2019, 19:25
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

I connect to raspian with putty then apply your script that you mention above but ater restart RPIEasy putty warn me "server unexpectedly closed network connection". So connection is closed and cannot able to see the logs. I set 10 second seconds between keep alives then tick enable TCP keepalives ...
by enesbcs
21 Mar 2019, 18:15
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

How can you paste the logs here, my logs are disappear after reboot. Issue still continue from my side. Sorry about that, I know you do too much efford to me and my topic :( I do not see anything like "State preserving is enabled" at logs If you do not see "State preserving is enabled" at logs, tha...
by enesbcs
20 Mar 2019, 20:36
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

If it is possible I will thankful to you. Sometimes the system (raspian)would be crash and need to be reboot by schedule or manually when that happen all scenery would be wrong if the GPIO doesnot remember last state If the OS crashed OR the SD card is not in a writable state, there are no way that...
by enesbcs
20 Mar 2019, 17:47
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

asuz wrote:
20 Mar 2019, 14:01
so shoulnot GPIO 17 remember last state when its at only Output function?
I have'nt got any project that can benefit from remembering last state, but if you need it, i can add a filter to remember pin state only if type is pure Output.
by enesbcs
19 Mar 2019, 18:57
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Thanks for that suggestion, it works with non-zero values. Actually I donot touch that area beause it says "Optional for this Device". Maybe that helps somebody after me. Yes it is optional as you can write to the OLED with the OLED command from Rules, if you do not want to use automatic refresh fe...
by enesbcs
19 Mar 2019, 06:56
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

asuz wrote:
18 Mar 2019, 23:02
Sorry about it but here is the pages for your reference, there is nothing at my OLED. Am I missing something? Please can you check?
Try to set interval to 5 sec or any non-zero value... this way it's content written in the setted interval.
by enesbcs
18 Mar 2019, 22:19
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

asuz wrote:
18 Mar 2019, 21:38
Thank for responce, my Pinout&Ports page is similar to yours but how can I sure about my root permissions?
It's pretty simple. on hardware page, there are a red warning if you are not root, and at Pinout&Ports there are no submit button if you have no root rights.
How about I2C scanning?
by enesbcs
18 Mar 2019, 19:55
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

state 1 ok but command to http://x.x.x.x/control?cmd=GPIO,17,0 then reboot it become 1 again. So it doesnot remember last state. I want RPIEasy remember last state. I hope you understand me. Thanks for clarification, i have succesfully reproduced this issue, which caused by a flow in the reboot seq...
by enesbcs
18 Mar 2019, 18:36
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Dear enesbcs, here is the situations; when i set specific (17) GPIO to high then command to http://x.x.x.x/control?cmd=GPIO,17,1 then reboot, it become GPIO state 1 ok but command to http://x.x.x.x/control?cmd=GPIO,17,0 then reboot it become 1 again. So it doesnot remember last state. I want RPIEas...
by enesbcs
16 Mar 2019, 23:43
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

You mean that RPIEasy already include P029 Output helper plugin for remember last state of GPIO? If yes mine always forget last state :(. (RPIEasy 0.19.075). Please try latest commit. After i set specific GPIO to high, i've done a reboot, and i get this: 22:51:48: Pi Zero W 40 pins 22:51:49: Event:...
by enesbcs
16 Mar 2019, 18:10
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

You mean that RPIEasy already include P029 Output helper plugin for remember last state of GPIO? If yes mine always forget last state :(. (RPIEasy 0.19.075). By the way how can I connect LCD screen like 20X4? I see there is options for OLEDs but not LCD's Strange, because it is working for me. I ha...
by enesbcs
16 Mar 2019, 11:08
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Is there any option that RPIEasy remember last state of GPIO after reboot? Raspberry has 3 option for output pin state at boot-time: 1/Output (in real world this is also changes to Low at boot) 2/Output-Lo 3/Output-Hi I've added "Preserve state at startup" option to P029 Output helper plugin. It re...
by enesbcs
11 Mar 2019, 09:51
Forum: ESP Easy: Hardware
Topic: Shelly 2
Replies: 2
Views: 268

Re: Shelly 2

I think the Shelly 2 is using some serial relay chip which we haven't supported yet. @others, please fill me in on that one. Yes, the Shelly2 has an integrated MCP39F511 power monitoring IC next to the ESP8266. According the datasheet it has an UART communication interface. https://www.smartnydom.p...
by enesbcs
07 Mar 2019, 19:44
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 264
Views: 60984

Re: Serial MCU controlled relay/switch

is it possible to have an updated firmware? Sorry, the latest ESPEasy version i tested with this plugin is dated 2018.08.17 with core 2.4.0 and currently i have no time for testing. Core 2.4.1 and 2.4.2 is not working well with serial 2 way communication, and with 2.5.0 i have absolutely zero exper...
by enesbcs
05 Mar 2019, 22:22
Forum: ESP Easy: Projects / Applications
Topic: ESP8266 multisensor
Replies: 1
Views: 354

ESP8266 multisensor

How to make an ESP8266 based multisensor in six steps? 1. Buy this: https://m.blog.hu/bi/bitekmindenhol/image/donwei.jpg 2. Make your plan: https://m.blog.hu/bi/bitekmindenhol/image/phoenix_bekot.jpg 3. Scrap unnecesarry things: https://m.blog.hu/bi/bitekmindenhol/image/donwei_inside.jpg 4. Install ...
by enesbcs
28 Feb 2019, 17:18
Forum: ESP Easy: General Discussion
Topic: RPIEasy
Replies: 129
Views: 7457

Re: RPIEasy

Hi, I want to know more about the implementation of the rules in rpi-easy if is similar with espeasy which is very basic due to the memory limitation of the esp8266. Do you think that rules can be implemented like writing a python script inside the rules page to import and run external python modul...