Skip to content

Commit

Permalink
Update FAN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilis-panos authored Jun 1, 2020
1 parent c9db58f commit 499b10e
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions docs/FAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ fan:
```
## Example (using ESPHome):
ESPHome API section:
ESPHome configuration example:
```yaml
esphome:
name: my_espir
platform: ESP8266
board: esp01_1m

api:
services:
- service: send_raw_command
Expand All @@ -84,23 +89,29 @@ api:
then:
- remote_transmitter.transmit_raw:
code: !lambda 'return command;'

remote_transmitter:
pin: GPIO14
carrier_duty_percent: 50%
```
configuration.yaml:
HA configuration.yaml:
```yaml
smartir:

fan:
climate:
- platform: smartir
name: Bedroom fan
unique_id: bedroom_fan
name: Office AC
unique_id: office_ac
device_code: 8000
controller_data: <esphome_name>_send_raw_command
power_sensor: binary_sensor.fan_power
controller_data: my_espir_send_raw_command
temperature_sensor: sensor.temperature
humidity_sensor: sensor.humidity
power_sensor: binary_sensor.ac_power
```
## Available codes for Fan devices:
The following are the code files created by the amazing people in the community. Before you start creating your own code file, try if one of them works for your device. **Please open an issue if your device is working and not included in the supported models.**
Your contribution with your own code files is welcome. However, we do not accept incomplete files as well as files related to MQTT controllers.
Contributing to your own code files is welcome. However, we do not accept incomplete files as well as files related to MQTT controllers.
#### Kaze
| Code | Supported Models | Controller |
Expand Down

0 comments on commit 499b10e

Please sign in to comment.