if it was not a problem, I would ask for such function because Domoticz need any response otherwise shows error.
It would be nice if the response would be in JSON format.
Üdvözlet Lengyelországból.
Moderators: grovkillen, Stuntteam, TD-er
if it was not a problem, I would ask for such function because Domoticz need any response otherwise shows error.
I used a CP2102 (not FTDI) in such connections to program it:
http://m.blog.hu/bi/bitekmindenhol/imag ... rele_2.jpg
with DOUT mode and of course with the proper PUYA-safe binary.
If it stays in wifi config mode after programming, than power off&power on the module and retry.
esptool and nodemcu-pyflasher
The first was compiled with the newer lwIP 2.0 stack, the other compiled with the old lwIP 1.4. The older supposed to be more stable, but you can try and see.
Fair enough, Domoticz really shows an error, if reply did not arrive to the GET command. Now i am replying with an "OK" message, Domoticz error message disappeared.
Exactly what JSON message did you mean, and for what purpose? Domoticz did not care about replies from "Switch" devices as i see.
Build 20102 - Mega
Libraries ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3
GIT version (custom)
Plugins 12 [Normal] [Testing] [Development]
Build Md5 4d44355f4d44355f4d44355f4d44355f
Md5 check fail !
Build time May 10 2018 21:39:17"
Maybe i have to inject somehow md5 hash into "runTimeMD5" after compiling, but honestly i I do not see its practical significance.
Hi,
This plugin will not work with any Sonoff T1. According to Tasmota wiki:countcobolt wrote: ↑17 Jun 2018, 16:13 sorry is this is a stupid question, but will your firmware work with the Sonoff T1 2Gang (similar to the dual?). I both 2 and want to be able to control them using ESPEasy and Domoticz.
Ok the commands seems consistent, i expanded the plugin to support 4 relay, now it can be selected in plugin options.desprueht wrote: ↑17 Jun 2018, 15:53 Hello,
Relay control instructions (hex hexadecimal):
Open the first relay: A0 01 01 A2
Turn off the first relay: A0 01 00 A1
Open the second relay: A0 02 01 A3
Close the second relay: A0 02 00 A2
Open the third relay: A0 03 01 A4
Turn off the third relay: A0 03 00 A3
Open the fourth relay: A0 04 01 A5
Turn off the fourth relay: A0 04 00 A4"
and the link:
http://www.chinalctech.com/index.php?_m ... &p_id=1288
enesbcs wrote: ↑17 Jun 2018, 20:24This plugin will not work with any Sonoff T1. According to Tasmota wiki:countcobolt wrote: ↑17 Jun 2018, 16:13 sorry is this is a stupid question, but will your firmware work with the Sonoff T1 2Gang (similar to the dual?). I both 2 and want to be able to control them using ESPEasy and Domoticz.
"When pushing a button, the touch chip lift the power high to the EFM8BB1, and the EFM8BB1 chip ties the signal line for each button low, for the full duration of the keypress. There is no serial data, that i have seen at all."
The device's operation is somewhat obscure to me, i am using my own T1 2Gang with Tasmota without problmes.
Hi, thank you very much for your work.enesbcs wrote: ↑17 Jun 2018, 22:44Ok the commands seems consistent, i expanded the plugin to support 4 relay, now it can be selected in plugin options.desprueht wrote: ↑17 Jun 2018, 15:53 Hello,
Relay control instructions (hex hexadecimal):
Open the first relay: A0 01 01 A2
Turn off the first relay: A0 01 00 A1
Open the second relay: A0 02 01 A3
Close the second relay: A0 02 00 A2
Open the third relay: A0 03 01 A4
Turn off the third relay: A0 03 00 A3
Open the fourth relay: A0 04 01 A5
Turn off the fourth relay: A0 04 00 A4"
and the link:
http://www.chinalctech.com/index.php?_m ... &p_id=1288
Download and try: v23
You're right... i left out one index, and ESP did not honor buffer overflow.
It's so wunderfull. Thank you for all...enesbcs wrote: ↑18 Jun 2018, 19:05You're right... i left out one index, and ESP did not honor buffer overflow.
Try the updated binary.
What device? This plugin supports some kind from Lctech, Tuya, S.Dual.. be a little more specific. I think it can be done with EspEasy rules.
I see. You have to enable rules in Espeasy advanced settings, then if the serial device name is "lc" and the first relay named as "Relay0" (default) then the code below switches off the relay one seconds after switched on. It has to work, if somehow not, then i will ty to implement it inside the plugin.
Code: Select all
on lc#Relay0>0 do
timerset,1,1
endon
on Rules#Timer=1 do
relay,0,0
endon
Will give it a go when I get home in an hour or so.enesbcs wrote: ↑05 Aug 2018, 09:52I see. You have to enable rules in Espeasy advanced settings, then if the serial device name is "lc" and the first relay named as "Relay0" (default) then the code below switches off the relay one seconds after switched on. It has to work, if somehow not, then i will ty to implement it inside the plugin.Code: Select all
on lc#Relay0>0 do timerset,1,1 endon on Rules#Timer=1 do relay,0,0 endon
Check v2:
Code: Select all
on lc#Relay0 do
if [lc#Relay0]>0
timerset,1,1
endif
endon
on Rules#Timer=1 do
relay,0,0
endon
Code: Select all
on lc#Relay0 do
timerset,1,1
endon
on Rules#Timer=1 do
if [lc#Relay0]>0
relay,0,0
endif
endon
Great news, you are welcome.
Thanks for the offer but no need to worry if it isn't currently supported. This is just a test device I had laying around while I learnt the ropes. Have ordered some sonoff low voltage boards to use as the garage control runs off 24V DC and this test board is a 12v board so I will be using a power pack while I test.
I do not own this model, but according to this description:oleost wrote: ↑22 Aug 2018, 21:12 Anyone sucessfully used this on the "ESP8266 4CH 12V WiFi" found on aliexpress ?
https://www.aliexpress.com/wholesale?ca ... H+12V+WiFi+
How can you execute any ESPEasy command via fhem? You can use exactly the same way the relay command, mentioned at the first post of this thread. I am using relay command via HTTP and within RULES.
Code: Select all
<MQTT subscribe template>/cmd with payload: <command>
Hello. I was looking for firmware to control LCTech 4ch board and I've found this forum. Unfortunetly above link is not working anymore . Could you attach file once again.enesbcs wrote: ↑18 Jun 2018, 19:05You're right... i left out one index, and ESP did not honor buffer overflow.
Try the updated binary.
As always, you can find the compiled binaries attached to the first post in this thread. Try the PUYA safe binary if you are not sure which one is for your ESP-01.
Sorry, i left out the Puya binary, i forgot that previous version is not capable to handle 4ch.fahrt wrote: ↑14 Nov 2018, 21:08I've flashed with "ESPEasy_Mega_P165_1M_128kS_lwip20_PUYA.bin" but This one works only with 2 relays
Thank You for the file I'll test it on weekend
You are welcome. Maybe you can try faster serial speed, some device can be used at 115200 baud. Some can not.
Users browsing this forum: No registered users and 23 guests