Search found 24 matches

by r16
04 Oct 2017, 21:18
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

Ah,ok. I know that problem (had the same with Domoticz). I had to press the button twice to be in sync again with the relay on other device. Change the rule on sonoff1 in: on relay#state do if [relay#state]=1 GPIO,12,1 Publish /sonoff1/RelayStatus,1 SendTo 2,inputswitchstate 0,1 else GPIO,12,0 Publ...
by r16
04 Oct 2017, 18:16
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

Try this: Make sonoff1 = Unit Number 1 (see Config page) Make sonoff2 = Unit Number 2 On sonoff2 rule: on button#state do if [button#state]=0 SendTo 1,gpio,12,0 else SendTo 1,gpio,12,1 endif endon I already tried. But the problem is; If i press button relay of sonoff1 turn on. But if i turn off rel...
by r16
04 Oct 2017, 15:23
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

Oooh, sorry about that! We need to use a counter (check value) since the TaskValueSet will trigger the button#state over and over again. on System#Boot do Delay,5000 //Just to be sure... TaskValueSet 3,1,0 //Just to be sure... endon on button#state do if [button#state]=0 TaskValueSet 3,1,1 //Given ...
by r16
04 Oct 2017, 03:55
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

vader wrote: 03 Oct 2017, 11:05 And why don't you use the button with Global Sync enabled? So the state should be on all devices the same and you don't have the stress with complicate sync rules!?
Please, Put here the steps I have to take.
by r16
04 Oct 2017, 03:54
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

Oooh, sorry about that! We need to use a counter (check value) since the TaskValueSet will trigger the button#state over and over again. on System#Boot do Delay,5000 //Just to be sure... TaskValueSet 3,1,0 //Just to be sure... endon on button#state do if [button#state]=0 TaskValueSet 3,1,1 //Given ...
by r16
02 Oct 2017, 13:14
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

Sorry for not getting back to you until now. What you need is this rule on the relay device : on relay#state do if [relay#state]=1 GPIO,12,0 Publish /sonoff1/RelayStatus,0 else GPIO,12,1 Publish /sonoff1/RelayStatus,1 endif endon And on the button device (and set up the MQTT Import to listen to &qu...
by r16
01 Oct 2017, 05:06
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

This happens because the "button" didn't know that Home Assistant has switched the relay. To fix this you might use many different techniques MQTT Import being my favorite. On the relay device you can I publish a topic with a 1 or 0 when the relay is switched. Let MQTT Import sniff that t...
by r16
29 Sep 2017, 22:17
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

@grovkillen now i have other problem. The button Works fine, when i press it, the relay of device 2 changes from on to off and vice versa. but when i click on button throught HOME ASSISTANT, the status of relay changes, but if i press the button of the device 1... it doesn´t Work. did you have a hom...
by r16
29 Sep 2017, 20:35
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

Because the button of the Sonoffs is connected to GPIO-0. The relay does not need an entry in the device/task list. Only a switch with GPIO-0 for turning on/off the relay over a rule and GPIO-12. LED on GPIO-13... you dont read what i wrote. i dont have sonoff´s my device are: 1. esp8266-01 2. node...
by r16
29 Sep 2017, 19:47
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

On device one you should switch the 0 with 1 (but you don't need a device for setting the relay, if you don't want to, since relays are operated using the GPIO command): on relay#state do if [relay#state]=1 GPIO,12,0 else GPIO,12,1 endif endon On device two you should publish a "cmd" comm...
by r16
29 Sep 2017, 01:07
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

@vader hello again, ok..... i installed ESPEASY on my two devices. ----------------------------DEVICE 1---------------------------------------- **device is nodemcu with relay.With name sonoff1** _the config is:_ //community-home-assistant-assets.s3-us-west-2.amazonaws.com/original/2X/0/0c23a1d44ed67...
by r16
28 Sep 2017, 02:28
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Re: Button mqtt (espeasy) for turn ON sonoff on other place

i tried to make this but no sucess, i cant turn on my sonoff throught my esp //community-home-assistant-assets.s3-us-west-2.amazonaws.com/original/2X/2/2818f3fb1fe5414794e1e91663fc43a2a2cee2d4.jpg //community-home-assistant-assets.s3-us-west-2.amazonaws.com/original/2X/2/2739a21f5f0331edfa96177cf379...
by r16
27 Sep 2017, 22:39
Forum: ESP Easy: Projects / Applications
Topic: Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)
Replies: 28
Views: 25731

Button mqtt (espeasy) for turn ON sonoff on other place (SOLVED)

Hello friends, i started a new Project in my home. I use that scheme; //community-home-assistant-assets.s3-us-west-2.amazonaws.com/original/2X/6/6e03642ecd08809bd2fed7401f236c6a972e65bd.jpg and my configuration sonoff is: //community-home-assistant-assets.s3-us-west-2.amazonaws.com/original/2X/c/ca8...
by r16
27 Sep 2017, 17:29
Forum: ESP Easy: General Discussion
Topic: my esp8266-01 version 1024 not connect
Replies: 10
Views: 8647

Re: my esp8266-01 version 1024 not connect

ok guys i found the problema.its was need to connect CH PD too.
now i can show the wifi but it asked a password.
what is password?
by r16
27 Sep 2017, 16:51
Forum: ESP Easy: General Discussion
Topic: my esp8266-01 version 1024 not connect
Replies: 10
Views: 8647

Re: my esp8266-01 version 1024 not connect

My module is black: i have two. I flashed this ESPEasy_v2.0.0-dev12_dev_1024.bin https://photos.app.goo.gl/vsNwhN4izxLb9d5b2 when i flashed when finish says: FLASH COMPLET after that i disconect all the wires except + and - after i connect the esp on this board:https://photos.app.goo.gl/1SrTIJsJk16x...
by r16
27 Sep 2017, 16:07
Forum: ESP Easy: General Discussion
Topic: my esp8266-01 version 1024 not connect
Replies: 10
Views: 8647

Re: my esp8266-01 version 1024 not connect

i flashed other and the error are: x400ef424, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000 Fatal exception (0): epc1=0x400ef424, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000 Fatal exception (0): epc1=0x400ef424, epc2=0x00000000, epc3=0x00000000, ex...
by r16
27 Sep 2017, 16:02
Forum: ESP Easy: General Discussion
Topic: my esp8266-01 version 1024 not connect
Replies: 10
Views: 8647

Re: my esp8266-01 version 1024 not connect

Shardan Fatal exception (0): epc1=0x400ef424, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000 Fatal exception (0): epc1=0x400ef424, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000 Fatal exception (0): epc1=0x400ef424, epc2=0x00000000, epc3=0x00000000, ex...
by r16
27 Sep 2017, 14:40
Forum: ESP Easy: General Discussion
Topic: my esp8266-01 version 1024 not connect
Replies: 10
Views: 8647

my esp8266-01 version 1024 not connect

hello friends. i flashed my esp8266-01 and flashed OK. After that i disconnect all the wires of esp, and connect it on external font 3.3v. but when i turn it on... the red led is on, and wait a little and show blink other blue. But i dont see on my computer. the wifi of esp. what i can i do? what is...
by r16
24 Sep 2017, 00:56
Forum: ESP Easy: Projects / Applications
Topic: Measure current with nodemcu and acs712
Replies: 1
Views: 3272

Measure current with nodemcu and acs712

Hello guys.
Anyone use acs712? I have one but i dont find any code for read the measures , and to send via mqtt.
Anyone use ?
by r16
23 Sep 2017, 18:52
Forum: ESP Easy: General Discussion
Topic: acs712 measuring current via MQTT with nodemcu
Replies: 3
Views: 4303

Re: acs712 measuring current via MQTT with nodemcu

@papperone sorry but i dont understant what you said.
did you mean if i use a acs712 connected on PIN adc of nodemcu, i can read value once time?

I dont know if you know what is home assistant, or openhab.

But my ideia, is to send the value via mqtt to homeassistant.
by r16
23 Sep 2017, 01:04
Forum: ESP Easy: General Discussion
Topic: acs712 measuring current via MQTT with nodemcu
Replies: 3
Views: 4303

acs712 measuring current via MQTT with nodemcu

Hello guys.
Anyone use acs712? I have one but i dont find any code for read the measures , and to send via mqtt.
Anyone use ?
by r16
24 Jul 2017, 15:56
Forum: ESP Easy: Projects / Applications
Topic: Soil Moisture deepsleep
Replies: 2
Views: 3695

Soil Moisture deepsleep

Hello guys i woud like to knows if i buying this: ESP-12 and this https://pt.aliexpress.com/item/Free-Shipping-Soil-Hygrometer-Humidity-Detection-Module-Moisture-Water-Sensor-Soil-moisture-for-Arduino/32704803481.html?spm=a2g03.search0104.3.17.9wED5V&ws_ab_test=searchweb0_0,searchweb201602_3_101...