Search found 21 matches

by bryan
08 Oct 2017, 22:56
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Ok now we have the state but only when the commands go through the ESP. If you use the physical buttons it does not update... Any ideas for that Hi Hemelic, You will have to explain your setup. If you press the physical button, does it change the state in domoticz? If it does, it will send the stat...
by bryan
08 Oct 2017, 14:01
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Here is the untested version with states as shown in previous post:
SonoffDual.zip
(297.32 KiB) Downloaded 477 times
by bryan
06 Oct 2017, 22:54
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

The switch state is saved in a local variable, but not yet publicly available.

state = 0, both switches are off
state = 1, switch 1 = on, switch 2 = off
state = 2, switch 1 = off, switch 2 = on
state = 3, switch 1 = on, switch 2 = on

Is it usable when this is publicly available?
by bryan
26 Sep 2017, 23:16
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Please read this topic before asking.
by bryan
19 Aug 2017, 22:37
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

hello Bryan, since i disabled the serial port it seems to work when i call the event drectly. But i could not get an event when i just switch Sonoff1 on. Maybe i ther is a fault in my rules: what would be the syntax for an event when Sonoff1 goes on and what do i have to do in the devices. it seams...
by bryan
15 Aug 2017, 14:46
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

The switchstate is what is send out on the serial to the pic. Switchstate 0 = switch 1 is off, switch 2 is off Switchstate 1 = switch 1 is on , switch 2 is off Switchstate 2 = switch 1 is off, switch 2 is on Switchstate 3 = switch 1 is on, switch 2 is on Did you disable serial in the advanced settin...
by bryan
15 Aug 2017, 11:52
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

hello Bryan, it seems to me that something with the scribt goes wrong. i have made this rules: On Sonoff1On do Sonoff1,1 timerSet,1,5 endon On Sonoff1Off do Sonoff1,0 timerSet,1,0 endon On Rules#Timer=1 do //When Timer1 expires, do Sonoff1,0 endon i can switch the relay on with caling sonoff1On and...
by bryan
12 Aug 2017, 17:21
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Hey Bryan, just tried it but sitting remote, so cannot see the result. From the log file this does seem to work. Just another stupid Q: which GPIO's are the additional button 1 and button 2? Kind regards Steve Hi Steve, The buttons are not connected to the GPIO's from the esp. Regards, Bryan
by bryan
12 Aug 2017, 01:12
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

hi Brian, thanks for your work! The On/Off commands work fine, but what do i have to do when i want to use the 'LongPulse' command? I have no experience in EasyEsp and Arduino so is it possible to add a timer in your plugin? regards jomixl Hi Jomixl, You can use rules to start a timer. Check the ru...
by bryan
07 Aug 2017, 18:48
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Hi LisaM, I am already using global sync, but all my sensors and controllers are not DHCP and sit in a different IP range. I can set a static IP on the other Espeasy's so was wondering if this is due to this? Anyone who can tell me how to use the sonoff1 / sonoff2 in rules? Kind regards Steve Hi St...
by bryan
20 Jul 2017, 21:45
Forum: ESP Easy: General Discussion
Topic: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle
Replies: 10
Views: 9360

Re: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle

You can see the difference in behaviour best when you send the commands directly from a webbrowser to domoticz: http://192.168.1.208:8080/json.htm?type=command&param=switchlight&idx=93&switchcmd=On updates domoticz and turns on switch http://192.168.1.208:8080/json.htm?type=command&p...
by bryan
18 Jul 2017, 22:18
Forum: ESP Easy: General Discussion
Topic: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle
Replies: 10
Views: 9360

Re: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle

Good to hear that it is working. Maybe it will also be solved for you when you turn on send boot state for the relay? The rules I've posted came from a sonoff touch, but I thought it should be the same, also (touch) button and relay. Other thoughts: when you send to controller on both devices, you w...
by bryan
18 Jul 2017, 15:22
Forum: ESP Easy: General Discussion
Topic: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle
Replies: 10
Views: 9360

Re: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle

In order to prevend a feedback loop, it would be better to send the update to domoticz using rules. You never know what value to use to set the delay. But if you still want to use the send to controller option with a delay, you might want to turn off the send to controller for the button. You only n...
by bryan
18 Jul 2017, 10:55
Forum: ESP Easy: General Discussion
Topic: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle
Replies: 10
Views: 9360

Re: Power on Sonoff ESPeasy and 1st button push, go into endless relay on/off cycle

For me it worked by turning off the send to controller option on both devices and use rules instead. The rules I've used: On System#Boot do timerSet,1,5 endon On Rules#Timer=1 do SendToHTTP 192.168.0.xx,8080,/json.htm?type=command&parm=udevice&idx=xxx&nvalue=0 endon on switch1#Switch do ...
by bryan
08 Jul 2017, 13:09
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Hi cosmic gate, I've made some changes to the code, so it will send the state to the controller. I haven't been able to test it, as my sonoff duals are all in use. There are also a few side effects which I can't eliminate at the moment. The attached binary doesn't have these side effects (see below)...
by bryan
29 Jun 2017, 19:03
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Hi enebcs, All my sonoff duals are in use, but I see on the output off your serial plugin on an esp that it will not work with the sonoff dual. When sending the on command to relay 1, I don't see anything on the serial. I've also use 2 dummy switches on the domoticz side and only use the URL actions...
by bryan
26 Jun 2017, 10:27
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

Hi, Here is the plugin code I used for the Sonoff dual. Had no time to learn/use github. Plugin number is also probably already used. Save the code as .ino file and compile esp easy using the guide. The command Sonoff1 is for the first switch, Sonoff2 for the second. EG. http://192.168.0.50/control?...
by bryan
19 Jun 2017, 21:45
Forum: ESP Easy: General Discussion
Topic: sonoff dual flashing the ESP
Replies: 68
Views: 84912

Re: sonoff dual flashing the ESP

I've created a plugin to switch the Sonoff Dual and that part is working fine,
but I also want the esp easy to reset the switches in domoticz when the Sonoff dual has been powered off.

I can't get this to work currently.

Where can I find information how to update domoticz on boot?

Regards,

Bryan
by bryan
06 Feb 2017, 22:28
Forum: RFLink: Nederlands support forum
Topic: Milight device niet zichtbaar in Setup/Devices
Replies: 4
Views: 10181

Re: Milight device niet zichtbaar in Setup/Devices

Aj, opgelost. Vergat op de settings pagina accept new hardware devices aan te zetten :oops:
by bryan
06 Feb 2017, 19:29
Forum: RFLink: Nederlands support forum
Topic: Milight device niet zichtbaar in Setup/Devices
Replies: 4
Views: 10181

Re: Milight device niet zichtbaar in Setup/Devices

Helaas werkt het nog steeds niet. Ik gebruik nu de laatste beta, maar na het uitvoeren van het commando
20;17;MiLightv1;ID=F746;SWITCH=01;RGBW=8690;CMD=ON;
op de Setup/Hardware pagina van domoticz komt er geen device bij onder Setup/Devices.

Is er een type die ik handmatig kan aanmaken?
by bryan
05 Feb 2017, 18:25
Forum: RFLink: Nederlands support forum
Topic: Milight device niet zichtbaar in Setup/Devices
Replies: 4
Views: 10181

Milight device niet zichtbaar in Setup/Devices

Hallo allemaal, Ik probeer een Milight bulb toe te voegen aan domoticz, maar het lukt me niet om een device zichtbaar te krijgen in de lijst met devices. Ik heb de faq gevolgd: http://www.nemcon.nl/blog2/faq Het stopt voor mij na Press OK (btw ik denk dat settings setup moet zijn?): - Power on the M...