Page 1 of 1

Domoticz support in ESPurna firmware

Posted: Saturday 31 December 2016 15:28
by xose
Hi

Just a quick note to let you know that ESPurna (https://bitbucket.org/xoseperez/espurna) firmware supports MQTT integration with Domoticz from version 1.4.0 just released.

ESPurna ("spark" in Catalan) is a custom firmware for ESP8266 based smart switches. It was originally developed with the IteadStudio Sonoff in mind but now it supports a growing number of ESP8266-based boards. It uses the Arduino Core for ESP8266 framework and a number of 3rd party libraries.

As they say: the more the merrier!

Re: Domoticz support in ESPurna firmware

Posted: Wednesday 12 April 2017 20:51
by jossie67
Xose,

I really like you ESPurna, I flashed a Sonoff with version 1.7.1
The connection with MQTT is no problem, but how can I control the Sonoff? Turn in On and Off

Jos

Re: Domoticz support in ESPurna firmware

Posted: Saturday 15 April 2017 22:16
by thecosmicgate
Could somebody show the difference between this and espeasy ?

Sent from my SM-G935F using Tapatalk

Re: Domoticz support in ESPurna firmware

Posted: Sunday 30 April 2017 23:37
by BounceMeister
Ik have a Sonoff Dual (pcb version 2.0 with Sil F330 chip that drives the relays) and i am trying to get ESPurna working. (FYI: ESPEasy does not support that F330 chip.)

I have followed the steps:
1. https://bitbucket.org/xoseperez/espurna ... uinoIDE.md
Flashing succesful.
2. https://bitbucket.org/xoseperez/espurna ... terface.md
Webinterface files were created.
Then compiled again in the Arduino IDE and flashed again, i forgot to build the web interface the first time. (step 1 and 2 should be swapped in the wiki).
and then
3. https://bitbucket.org/xos...rna/wiki/Configuration.md
Connecting to the Sonoff AccessPoint works, but i cannot reach the webpage "http://espurna.local", page not found.

Any ideas?
Do i have to change anything to include the generated files (index.html.gz and index.html) for the webinterface?

Re: Domoticz support in ESPurna firmware

Posted: Monday 01 May 2017 0:55
by costo
BounceMeister wrote:Ik have a Sonoff Dual (pcb version 2.0 with Sil F330 chip that drives the relays) and i am trying to get ESPurna working. (FYI: ESPEasy does not support that F330 chip. )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Any ideas?

I flashed Espurna on a SonoffPOW. I installed Atom IDE with PlatformIO extension. Flasing a Sonoff is very easy now.
I tried to compile Espurna in the Arduino IDE but I had to install tons of libraries and gave up the idea of using Arduino IDE for Espurna.
PlatformIO loads all the libraries by itself so it is simple to use.
Maybe installing PlatformIO is a bit complicated. I use Linux and followed the guide from this link: http://www.cnx-software.com/2016/12/03/ ... ss-switch/
For Windows there must be some guide too for installing PlatformIO

At the moment ESPEasy cannot be used for a SonoffPOW, the HLW8012 chip is not supported. Espurna with Domoticz works excellent.

Re: Domoticz support in ESPurna firmware

Posted: Monday 01 May 2017 12:18
by Herman-H
At the moment ESPEasy cannot be used for a SonoffPOW, the HLW8012 chip is not supported. Espurna with Domoticz works excellent.
Did ESPurna support the HLW8012 chip?

Re: Domoticz support in ESPurna firmware

Posted: Monday 01 May 2017 12:55
by Bororo

Re: Domoticz support in ESPurna firmware

Posted: Monday 01 May 2017 22:39
by BounceMeister
costo wrote:
BounceMeister wrote:Ik have a Sonoff Dual (pcb version 2.0 with Sil F330 chip that drives the relays) and i am trying to get ESPurna working. (FYI: ESPEasy does not support that F330 chip. )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Any ideas?

I flashed Espurna on a SonoffPOW. I installed Atom IDE with PlatformIO extension. Flasing a Sonoff is very easy now.
I tried to compile Espurna in the Arduino IDE but I had to install tons of libraries and gave up the idea of using Arduino IDE for Espurna.
PlatformIO loads all the libraries by itself so it is simple to use.
Maybe installing PlatformIO is a bit complicated. I use Linux and followed the guide from this link: http://www.cnx-software.com/2016/12/03/ ... ss-switch/
For Windows there must be some guide too for installing PlatformIO

At the moment ESPEasy cannot be used for a SonoffPOW, the HLW8012 chip is not supported. Espurna with Domoticz works excellent.
In the guide you linked to, the adress http://192.168.4.1 is used instead of http://espurna.local. It got me one step closer. Loading this page doesn't end up in a "page not found" error. After trying a couple of times using different browsers, i got a login screen. I entered admin and fibonacci, but i either get a "wrong credentials" page, or a blank page loads.

Edit:
i verified the username and password in the file "general.h":

Code: Select all

...
#define WIFI_RECONNECT_INTERVAL 120000
#define WIFI_MAX_NETWORKS       5
#define ADMIN_PASS              "fibonacci"
#define FORCE_CHANGE_PASS       1
#define HTTP_USERNAME           "admin"
#define WS_BUFFER_SIZE          5
#define WS_TIMEOUT              1800000
#define WEBSERVER_PORT          80
#define DNS_PORT                53
#define ENABLE_MDNS             1

#define WEB_MODE_NORMAL         0
#define WEB_MODE_PASSWORD       1

#define AP_MODE                 AP_MODE_ALONE
...

Re: Domoticz support in ESPurna firmware

Posted: Tuesday 02 May 2017 23:03
by BounceMeister
Now nothing wants to connect to the Wifi AP of the Sonoff Dual with ESPurna anymore. I flashed it again using Arduino IDE, but that doesn't help.
I tried following the Platformio IDE installation steps, but it is missing some essential info for Windows systems, so no luck there either.
I have installed a ton of software on my pc, just to flash this Sonoff device with ESPurna, sadly with no success.

I think i just take my loss and forget all about this Sonoff Dual device, it just doesn't work.

I have a NodeMCU lying around, maybe i'll connect some relays to that using ESPEasy, which is indeed "easy" to install.

Anyway, thanks for trying to help me. :)

Re: Domoticz support in ESPurna firmware

Posted: Wednesday 03 May 2017 10:55
by DiGierre
@Bouncemeister.

I just installed espurna on a pow yesterday and it works well. Actually getting the libraries and code for Arduino IDE and installing it, yes, is far more work than ESPeasy. I ended up installing git for windows and then was able to get the complete install. After making the recommended changes for hardware and libraries it works like a charm. In any case, this way i got it to work.
Now nothing wants to connect to the Wifi AP of the Sonoff Dual with ESPurna anymore
-> You may need to detail what you mean by that...In any case to connect to it and test it I would recommend to run it on 230V as powering it by a USBtoSerial will not provide enough power (think it can only do like 50mA on 3.3V) - you can then still connect the serial (TX, RX, GND only!) - be careful as we are talking high voltage! I noticed that the serial actually outpouts the username/password of the web access so you can check if it is the same as you are using.

Re: Domoticz support in ESPurna firmware

Posted: Monday 07 August 2017 20:12
by Dlanor
DiGierre wrote:@Bouncemeister.
Now nothing wants to connect to the Wifi AP of the Sonoff Dual with ESPurna anymore
-> You may need to detail what you mean by that...In any case to connect to it and test it I would recommend to run it on 230V as powering it by a USBtoSerial will not provide enough power (think it can only do like 50mA on 3.3V) - you can then still connect the serial (TX, RX, GND only!) - be careful as we are talking high voltage! I noticed that the serial actually outpouts the username/password of the web access so you can check if it is the same as you are using.
I have installed the Sonoff Pow with ESPurna 1.8.3. It works like a charm! I have flashed the Sonoff with 5v. I have tried to do it with 3.3v but couldn't get it to work.

Re: Domoticz support in ESPurna firmware

Posted: Monday 07 August 2017 20:17
by SweetPants
Dlanor wrote:I have flashed the Sonoff with 5v. I have tried to do it with 3.3v but couldn't get it to work.
Then you are very lucky. The ESP chip is NOT 5v friendly

Re: Domoticz support in ESPurna firmware

Posted: Thursday 10 August 2017 16:59
by gohan
I just lost a few days ago one of my POW because the claimed "universal" ftdi adapter was putting out 5v on the serial.

Anyway, how did you integrate the POW in Domoticz to read power values and control on and off of relay? I looked at this guide but it is not working http://www.cnx-software.com/2017/01/21/ ... on-system/

Re: Domoticz support in ESPurna firmware

Posted: Saturday 12 August 2017 17:08
by Dlanor
I have installed MQTT on my RPI (following all these steps https://www.domoticz.com/wiki/MQTT). Add all account settings to ESPunra and it works.


Verzonden vanaf mijn iPhone met Tapatalk

Re: Domoticz support in ESPurna firmware

Posted: Sunday 13 August 2017 16:19
by gohan
Are you using the normal sonoff switch or do you have the POW version ?

Re: Domoticz support in ESPurna firmware

Posted: Monday 14 August 2017 18:46
by Dlanor
gohan wrote:Are you using the normal sonoff switch or do you have the POW version ?
I am using the POW version.


Verzonden vanaf mijn iPhone met Tapatalk

Re: Domoticz support in ESPurna firmware

Posted: Monday 14 August 2017 20:52
by gohan
I managed to get it work with tasmota, I don't know why espurna wasn't working but this one works fine.