* ifan02 cookbook
* removed spaces
* removed spaces
* indent codeblock, newline at end
* fixes
* add seo :image:
* spaces...
* Complete the example code & fix compilation errors
Tried compiling this code today using ESPHome 1.13.6.. it would not compile.
* The ifan02.h file was the main culprit and I was able to fix the issue.
* The .yaml example was missing a few declarations at the beginning so I added them.
* I fixed an error related to using ```light``` for the light id since that is a reserved name.
* I added an ```on_boot``` declaration to turn off the light as early as possible after power is restored. (if mains power is restored in the middle of the night and the light turns on while you are sleeping it can be quite annoying, this turns it off during the boot process).
* removed blank spaces on line 66
Those blank spaces get me every time ;-)
* fix doc links (hopefully)
I think my last PR was made against the wrong fork/branch/etc... sorry, I'm still learning github.
I currently have the time and really want to see this make it into the cookbook. I think if you add me as a collaborator I would be able to push the changes and help get the errors sorted more quickly; if not, no worries, I'll take no offense and do my best to continue helping as we are doing now.
* fix fan link
replace
```
:doc:`/components/fan`
```
with
```
:doc:`/components/fan/index`
```
Co-authored-by: mjoshd <35782597+mjoshd@users.noreply.github.com>
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
- Fix the parameter name bit_depth (current referred to as bit_depths)
- Add bit_depth: 8 to sonoff B1 example config. This fixed my application on a Sonoff B1
(see also https://github.com/esphome/issues/issues/991)
* fixed non working example
small fix to get the color swipe working
* Apply suggestions from code review
Co-Authored-By: Otto Winter <otto@otto-winter.com>
Co-authored-by: Otto Winter <otto@otto-winter.com>
`.time` is deprecated since https://github.com/esphome/esphome/pull/531; this updates the reference in the documentation so that warnings like the following can be avoided:
```
src/main.cpp: In lambda function:
src/main.cpp:462:20: warning: 'esphome::time::ESPTime::<anonymous union>::time' is deprecated (declared at src/esphome/components/time/real_time_clock.h:35): .time is deprecated, use .timestamp instead [-Wdeprecated-declarations]
return (time.time);
```
* Cookbook for Sonoff Light Switches
Cookbook for various Sonoff Light Switch options including Basic, Dual and T1-3
* Removed references to myself
All references to I have been removed and re worded into a more generic text
* Fixed Formatting issues to Pass Travis Checks
* Update cookbook/sonoff-basic-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update cookbook/sonoff-dual-light-switch.rst
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* YAML updates
Removed fast_connect, UART swotches from Dual R1, and reference to an issue that no longer exists