Vassilis Panos 7 лет назад
Родитель
Сommit
3259df3b55
1 измененных файлов с 22 добавлено и 2 удалено
  1. 22 2
      docs/CLIMATE.md

+ 22 - 2
docs/CLIMATE.md

@@ -12,7 +12,7 @@ _Please note that the device_code field only accepts positive numbers. The .json
 **name** (Optional): The name of the device<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.<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.<br />
 **device_code** (Required): .... (Accepts only positive numbers)<br />
 **device_code** (Required): .... (Accepts only positive numbers)<br />
-**controller_data** (Required): The data required for the controller to function. Enter the IP address of the Broadlink device **(must be an already configured device)** or the MQTT topic on which to send commands.<br />
+**controller_data** (Required): The data required for the controller to function. Enter the IP address of the Broadlink device **(must be an already configured device)**, or the entity id of the Xiaomi IR controller, or the MQTT topic on which to send commands.<br />
 **temperature_sensor** (Optional): *entity_id* for a temperature sensor<br />
 **temperature_sensor** (Optional): *entity_id* for a temperature sensor<br />
 **humidity_sensor** (Optional): *entity_id* for a humidity sensor<br />
 **humidity_sensor** (Optional): *entity_id* for a humidity sensor<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 />
 **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 />
@@ -37,15 +37,35 @@ climate:
     power_sensor: binary_sensor.ac_power
     power_sensor: binary_sensor.ac_power
 ```
 ```
 
 
-## Example (using mqtt controller):
+## Example (using xiaomi controller):
 ```yaml
 ```yaml
 smartir:
 smartir:
+
+remote:
+  - platform: xiaomi_miio
+    host: 192.168.10.10
+    token: YOUR_TOKEN
     
     
 climate:
 climate:
   - platform: smartir
   - platform: smartir
     name: Office AC
     name: Office AC
     unique_id: office_ac
     unique_id: office_ac
     device_code: 2000
     device_code: 2000
+    controller_data: remote.xiaomi_miio_192_168_10_10
+    temperature_sensor: sensor.temperature
+    humidity_sensor: sensor.humidity
+    power_sensor: binary_sensor.ac_power
+```
+
+## Example (using mqtt controller):
+```yaml
+smartir:
+    
+climate:
+  - platform: smartir
+    name: Office AC
+    unique_id: office_ac
+    device_code: 3000
     controller_data: home-assistant/office-ac/command
     controller_data: home-assistant/office-ac/command
     temperature_sensor: sensor.temperature
     temperature_sensor: sensor.temperature
     humidity_sensor: sensor.humidity
     humidity_sensor: sensor.humidity