Unverified Commit 644b02fc authored by Vassilis Panos's avatar Vassilis Panos Committed by GitHub
Browse files

Update FAN.md

parent 6c40c4b2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -6,7 +6,8 @@ For this platform to work, we need a .json file containing all the necessary IR
Find your device's brand code [here](https://github.com/smartHomeHub/SmartIR/blob/master/Docs/FAN.md#available-codes-for-fan-devices) and add the number in the `device_code` field. The compoenent will download it to the correct folder. If your device is not working, you will need to learn your own codes and place the .json file in `smartir/codes/fan/` subfolders. Please note that the `device_code` field only accepts positive numbers. The .json extension is not required.

## Configuration variables:
**name** (Optional): Name to use in the frontend<br />
**name** (Optional): The name of the device<br />
**unique_id** (Optional): An ID that uniquely identifies this device. If two devices have the same unique ID, Home Assistant will raise an exception.
**device_code** (Required): ...... (Accepts only positive numbers)<br />
**controller_send_service** (Required): The service that will be used to send the commands. Only `broadlink_send_packet` (Broadlink controller) is currently supported.<br />
**power_sensor** (Optional): *entity_id* for a sensor that monitors whether your device is actually On or Off. This may be a power monitor sensor. (Accepts only on/off states)<br />
@@ -22,7 +23,8 @@ switch:
    
fan:
  - platform: smartir
    name: Living room fan
    name: Bedroom fan
    unique_id: bedroom_fan
    device_code: 1000
    controller_send_service: switch.broadlink_send_packet_192_168_10_10
    power_sensor: binary_sensor.fan_power