Author Topic: Sonoff iFan02 control with Vera Plus?  (Read 690 times)

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +5/-5
Sonoff iFan02 control with Vera Plus?
« on: August 06, 2018, 06:03:11 pm »
This WiFi Fan Controller seems pretty new and may be just what I need, if it can be incorporated into VeraPlus that is..

Will the MiOS EvAk Sonoff Plugin fit these needs for multi-speed fan control and light conrol?

Thanks!
« Last Edit: August 13, 2018, 12:45:41 pm by Sammy2 »

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +5/-5
Re: Sonoff iFan02 control with Vera Plus?
« Reply #1 on: August 07, 2018, 02:33:23 pm »
Any thoughts? Suggestions? Thanks.

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +5/-5
Re: Sonoff iFan02 control with Vera Plus?
« Reply #2 on: August 09, 2018, 01:43:48 pm »
Bueller?

Bueller?

Anyone?

Bueller?

Offline therealdb

  • Full Member
  • ***
  • Posts: 181
  • Karma: +3/-0
  • Automate all the things!
Re: Sonoff iFan02 control with Vera Plus?
« Reply #3 on: August 10, 2018, 02:28:22 am »
I flashed my sonoffs with tasmota and use a virtual device to operate them.
Specifically, you?ll need to write a custom device type to handle fan. If you?re not comfortable with coding, maybe a virtual device with scenes will be the easiest route to follow.
Vera Edge EU, Fibaro FGRM 222 (12), Fibaro FGS 223 (20), Fibaro FGS 222 (5), Fibaro Universal Binary Sensor (2), Fibaro Plug (3), NeoCoolCam Door Sensor (3), NeoCoolCam PIR (2), Nest (3), Home Server running my own integrations, Harmony Hub, OpenSprinkler, Personal Weather Station, Sonoff TH & more

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +5/-5
Re: Sonoff iFan02 control with Vera Plus?
« Reply #4 on: August 13, 2018, 04:08:43 pm »
I flashed my sonoffs with tasmota and use a virtual device to operate them.
Specifically, you?ll need to write a custom device type to handle fan. If you?re not comfortable with coding, maybe a virtual device with scenes will be the easiest route to follow.

You'll need to break that down a little bit more.. LOL

Why the need to flash the device?

With the virtual device, it'll do on and off but what about dimming and fan speed control?

Thanks!

Offline therealdb

  • Full Member
  • ***
  • Posts: 181
  • Karma: +3/-0
  • Automate all the things!
Re: Sonoff iFan02 control with Vera Plus?
« Reply #5 on: August 14, 2018, 03:55:43 am »
Out of the box these device have a Chinese firmware and I want to be sure I own them, so I use Tasmota, but there are other options like espeasy.
After flashing them, you can use the Api to query and send commands. I mainly use them to report temperatures, so I haven't used the fan version.

It seems supported https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-iFan02
Vera Edge EU, Fibaro FGRM 222 (12), Fibaro FGS 223 (20), Fibaro FGS 222 (5), Fibaro Universal Binary Sensor (2), Fibaro Plug (3), NeoCoolCam Door Sensor (3), NeoCoolCam PIR (2), Nest (3), Home Server running my own integrations, Harmony Hub, OpenSprinkler, Personal Weather Station, Sonoff TH & more

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +5/-5
Re: Sonoff iFan02 control with Vera Plus?
« Reply #6 on: August 14, 2018, 03:11:07 pm »
Out of the box these device have a Chinese firmware and I want to be sure I own them, so I use Tasmota, but there are other options like espeasy.
After flashing them, you can use the Api to query and send commands. I mainly use them to report temperatures, so I haven't used the fan version.

It seems supported https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-iFan02

Interesting. So I need to solder on a pin header or something to get serial connected to flash?

I'll look further into the api but is this going to require writing a plugin for Vera in LUA?

Offline therealdb

  • Full Member
  • ***
  • Posts: 181
  • Karma: +3/-0
  • Automate all the things!
Re: Sonoff iFan02 control with Vera Plus?
« Reply #7 on: August 15, 2018, 03:21:14 am »
I successfully used SONOTA in the past, not use if your device is supported https://github.com/mirko/SonOTA

In case it's not supported, you'll need to flash it with wires.

You then will need to write a virtual device. Vera does not support fans directly, so you can decide to use a thermostat with fan as base, or a dimmer/roller shutter. In this case, you can use 0, 33, 66 and 100 to map to corresponding speed of the fan. Look at the forum, there's a sample for a virtual shutter device implementation and I think you can adapt it to your needs very easily.
Vera Edge EU, Fibaro FGRM 222 (12), Fibaro FGS 223 (20), Fibaro FGS 222 (5), Fibaro Universal Binary Sensor (2), Fibaro Plug (3), NeoCoolCam Door Sensor (3), NeoCoolCam PIR (2), Nest (3), Home Server running my own integrations, Harmony Hub, OpenSprinkler, Personal Weather Station, Sonoff TH & more