Domoticz support in ESPurna firmware

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
xose
Posts: 3
Joined: Saturday 31 December 2016 15:21
Target OS: Linux
Domoticz version:
Contact:

Domoticz support in ESPurna firmware

Post 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!
jossie67
Posts: 39
Joined: Wednesday 31 December 2014 12:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post 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
Raspberry Pi (3x)
Master Domoticz installed on a Synology
RFXCOM RFXtrx433E USB
RFLink
USB Z-Wave Mini Adapter
Mi-light
QuinLED
Landis+Gyr ZME120ACd
Kamstrup_M401
USB-IR-Schreib-Lesekopf Alecto WS1700
Watermeter with TCRT5000
Kodi
DS18B20
User avatar
thecosmicgate
Posts: 188
Joined: Monday 06 April 2015 14:37
Target OS: Linux
Domoticz version: newest
Location: The Netherlands / Hoeven
Contact:

Re: Domoticz support in ESPurna firmware

Post by thecosmicgate »

Could somebody show the difference between this and espeasy ?

Sent from my SM-G935F using Tapatalk
It's nice to be important, but it's more important to be nice
Scooter ;)
BounceMeister
Posts: 6
Joined: Sunday 28 June 2015 21:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The moon

Re: Domoticz support in ESPurna firmware

Post 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?
costo
Posts: 55
Joined: Tuesday 11 August 2015 17:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Domoticz support in ESPurna firmware

Post 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.
User avatar
Herman-H
Posts: 32
Joined: Saturday 05 April 2014 22:10
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post 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?
Bororo
Posts: 8
Joined: Thursday 09 June 2016 21:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post by Bororo »

BounceMeister
Posts: 6
Joined: Sunday 28 June 2015 21:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The moon

Re: Domoticz support in ESPurna firmware

Post 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
...
BounceMeister
Posts: 6
Joined: Sunday 28 June 2015 21:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The moon

Re: Domoticz support in ESPurna firmware

Post 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. :)
DiGierre
Posts: 1
Joined: Monday 08 February 2016 15:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post 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.
Dlanor
Posts: 67
Joined: Sunday 22 March 2015 16:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post 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.
Domoticz| Zigbee | SONOFF
SweetPants

Re: Domoticz support in ESPurna firmware

Post 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
gohan
Posts: 36
Joined: Monday 13 February 2017 23:42
Target OS: Windows
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post 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/
Dlanor
Posts: 67
Joined: Sunday 22 March 2015 16:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post 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
Domoticz| Zigbee | SONOFF
gohan
Posts: 36
Joined: Monday 13 February 2017 23:42
Target OS: Windows
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post by gohan »

Are you using the normal sonoff switch or do you have the POW version ?
Dlanor
Posts: 67
Joined: Sunday 22 March 2015 16:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post 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
Domoticz| Zigbee | SONOFF
gohan
Posts: 36
Joined: Monday 13 February 2017 23:42
Target OS: Windows
Domoticz version:
Contact:

Re: Domoticz support in ESPurna firmware

Post by gohan »

I managed to get it work with tasmota, I don't know why espurna wasn't working but this one works fine.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest