Domoticz support in ESPurna firmware
Moderator: leecollings
Domoticz support in ESPurna firmware
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!
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!
-
- Posts: 39
- Joined: Wednesday 31 December 2014 12:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz support in ESPurna firmware
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
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
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
- 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
Could somebody show the difference between this and espeasy ?
Sent from my SM-G935F using Tapatalk
Sent from my SM-G935F using Tapatalk
It's nice to be important, but it's more important to be nice
Scooter ;)
Scooter ;)
-
- 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
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?
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?
-
- 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
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
Did ESPurna support the HLW8012 chip?At the moment ESPEasy cannot be used for a SonoffPOW, the HLW8012 chip is not supported. Espurna with Domoticz works excellent.
-
- 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
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.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.
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
...
-
- 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
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.
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.
-
- Posts: 1
- Joined: Monday 08 February 2016 15:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz support in ESPurna firmware
@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.
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.
-> 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.Now nothing wants to connect to the Wifi AP of the Sonoff Dual with ESPurna anymore
-
- Posts: 67
- Joined: Sunday 22 March 2015 16:18
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz support in ESPurna firmware
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.DiGierre wrote:@Bouncemeister.-> 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.Now nothing wants to connect to the Wifi AP of the Sonoff Dual with ESPurna anymore
Domoticz| Zigbee | SONOFF
Re: Domoticz support in ESPurna firmware
Then you are very lucky. The ESP chip is NOT 5v friendlyDlanor wrote: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
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/
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/
-
- Posts: 67
- Joined: Sunday 22 March 2015 16:18
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz support in ESPurna firmware
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
Verzonden vanaf mijn iPhone met Tapatalk
Domoticz| Zigbee | SONOFF
Re: Domoticz support in ESPurna firmware
Are you using the normal sonoff switch or do you have the POW version ?
-
- Posts: 67
- Joined: Sunday 22 March 2015 16:18
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz support in ESPurna firmware
I am using the POW version.gohan wrote:Are you using the normal sonoff switch or do you have the POW version ?
Verzonden vanaf mijn iPhone met Tapatalk
Domoticz| Zigbee | SONOFF
Re: Domoticz support in ESPurna firmware
I managed to get it work with tasmota, I don't know why espurna wasn't working but this one works fine.
Who is online
Users browsing this forum: No registered users and 0 guests