Author Topic: vera sonoff ESP8266  (Read 4307 times)

Offline ElCid

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +1/-5
vera sonoff ESP8266
« on: March 11, 2017, 09:55:02 am »
hi i have several sonoff 1oa relays. i've read lots of tutorials about flashing them to ESP8266. i was wondering if veraplus supports ESP8266

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4437
  • Karma: +247/-120
Re: vera sonoff ESP8266
« Reply #1 on: March 11, 2017, 02:31:18 pm »
What do you mean supports it? You want to install a DIY WiFi module in a Vera? Vera does not support this.

Or are you asking if Vera could talk to a device that is using the ESP8266 WiFi module? Yes, Vera can communicate with any device on the network using TCP/IP. The question then becomes; can you write the necessary Lua code to make Vera talk to that device? HTTP requests are easy one-liners. Socket communications are much more advanced.

Offline MarcusB

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
Re: vera sonoff ESP8266
« Reply #2 on: March 12, 2017, 05:06:33 am »
Check out espeasy. It's a simple OS for the ESP. To interface it with Vera, you can send http messages to and from the Vera.  This means you can also have the ESP trigger devices or scenes.

Offline ElCid

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +1/-5
Re: vera sonoff ESP8266
« Reply #3 on: March 13, 2017, 08:25:37 am »
cheers for the replies. i will check out espeasy
and i will look at sending http request to the device.

once again thankyou to you both

i am looking at these devices to add a cheap way of controlling garden lights  with vera. As sonoff devices are ?4.50 and if they fail the cost is cheap

Offline congkai

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: vera sonoff ESP8266
« Reply #4 on: June 15, 2017, 01:47:23 pm »
Check out espeasy. It's a simple OS for the ESP. To interface it with Vera, you can send http messages to and from the Vera.  This means you can also have the ESP trigger devices or scenes.

How can you send http messages to and from vera? Can we add a device with the sonoff smart wifi switch with it? Thanks!

Offline MarcusB

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
Re: vera sonoff ESP8266
« Reply #5 on: June 15, 2017, 07:46:51 pm »
Check out espeasy. It's a simple OS for the ESP. To interface it with Vera, you can send http messages to and from the Vera.  This means you can also have the ESP trigger devices or scenes.

How can you send http messages to and from vera? Can we add a device with the sonoff smart wifi switch with it? Thanks!

There's a lot of information all over these forums on how to send HTTP commands to Vera.  Here is another site with a system that automatically creates the commands for you:
http://www.smarthome.com.au/smarthome-blog/vera-http-commands/

As for controlling Sonoff with ESPEasy, you need to flash the ESPEasy firmware on to the sonoff chip.  This requires soldering and some electronics skill.

Offline congkai

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: vera sonoff ESP8266
« Reply #6 on: June 15, 2017, 10:13:42 pm »

There's a lot of information all over these forums on how to send HTTP commands to Vera.  Here is another site with a system that automatically creates the commands for you:
http://www.smarthome.com.au/smarthome-blog/vera-http-commands/

As for controlling Sonoff with ESPEasy, you need to flash the ESPEasy firmware on to the sonoff chip.  This requires soldering and some electronics skill.


The link above allows you to call for vera's API to send http command TO the vera.
I'm actually looking to create a switch in the devices page which can control sonoff

My sonoff already successfully flashed with ESPEasy. Now is just finding ways to integrate with the Vera. Seems really hard  :-\

Offline congkai

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: vera sonoff ESP8266
« Reply #7 on: June 18, 2017, 12:07:39 pm »
Bump

Offline dbemowsk

  • Newbie
  • *
  • Posts: 18
  • Karma: +2/-1
Re: vera sonoff ESP8266
« Reply #8 on: August 08, 2017, 01:28:33 am »
For those looking to use sonoff devices with your vera, check this out:
https://dan.bemowski.info/2017/07/04/using-a-sonoff-with-espeasy-and-vera/

Offline dbemowsk

  • Newbie
  • *
  • Posts: 18
  • Karma: +2/-1
Re: vera sonoff ESP8266
« Reply #9 on: September 08, 2017, 06:26:51 pm »
I have made some updates to the article on using ESP Easy on the Sonoff devices with Vera.  I have now documented not only how to control the Sonoff, but also how to use the local button on the Sonoff device as well as having it report it's status back to the Vera controller when the local button is used.  You can read the full article at https://dan.bemowski.info/2017/07/04/using-a-sonoff-with-espeasy-and-vera/

Offline sam9s

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: vera sonoff ESP8266
« Reply #10 on: November 26, 2017, 06:20:11 am »
Hi Geeks n Gurus, Need some help here.

I have tasmots firmware on sonoff which I think is based in ESP8266, now tasmota communicates with my Home Assistance app in rpi, via MQTT. Which works fine. How ever I want my vera to control sonoff, and I followed the tut. The only difference is my GPIOs are not used AFAIK. So I did not touchthe GPIO settings , just updated the IP and reloaded LUA and the device WAS online, but didnt work. :( Can anyone explain, guide hoe to make vera work with tasmota firmware.

Regargs
Sammy

Offline TheCivvie

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: vera sonoff ESP8266
« Reply #11 on: January 11, 2018, 05:32:19 pm »
I have made some updates to the article on using ESP Easy on the Sonoff devices with Vera.  I have now documented not only how to control the Sonoff, but also how to use the local button on the Sonoff device as well as having it report it's status back to the Vera controller when the local button is used.  You can read the full article at https://dan.bemowski.info/2017/07/04/using-a-sonoff-with-espeasy-and-vera/

Was just reading this. Thanks for the detailed explanation. I am waiting to flash my devices and this is exactly what I want

Offline virtualhome

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: vera sonoff ESP8266
« Reply #12 on: February 10, 2018, 02:06:36 pm »
Hi Geeks n Gurus, Need some help here.

I have tasmots firmware on sonoff which I think is based in ESP8266, now tasmota communicates with my Home Assistance app in rpi, via MQTT. Which works fine. How ever I want my vera to control sonoff, and I followed the tut. The only difference is my GPIOs are not used AFAIK. So I did not touchthe GPIO settings , just updated the IP and reloaded LUA and the device WAS online, but didnt work. :( Can anyone explain, guide hoe to make vera work with tasmota firmware.

Regargs
Sammy

Sammy did you find a solution ??

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 855
  • Karma: +4/-5
Re: vera sonoff ESP8266
« Reply #13 on: August 06, 2018, 06:33:39 pm »