Vassilis Panos 6 лет назад
Родитель
Сommit
5e971956e2
4 измененных файлов с 42 добавлено и 1 удалено
  1. 1 1
      custom_components/smartir/controller.py
  2. 15 0
      docs/CLIMATE.md
  3. 13 0
      docs/FAN.md
  4. 13 0
      docs/MEDIA_PLAYER.md

+ 1 - 1
custom_components/smartir/controller.py

@@ -17,7 +17,7 @@ LOOKIN_CONTROLLER = 'LOOKin'
 
 
 ENC_BASE64 = 'Base64'
 ENC_BASE64 = 'Base64'
 ENC_HEX = 'Hex'
 ENC_HEX = 'Hex'
-ENC_PRONTO = 'Pronto'
+ENC_PRONTO = 'ProntoHex'
 ENC_RAW = 'Raw'
 ENC_RAW = 'Raw'
 
 
 BROADLINK_COMMANDS_ENCODING = [ENC_BASE64, ENC_HEX, ENC_PRONTO]
 BROADLINK_COMMANDS_ENCODING = [ENC_BASE64, ENC_HEX, ENC_PRONTO]

+ 15 - 0
docs/CLIMATE.md

@@ -70,6 +70,21 @@ climate:
     power_sensor: binary_sensor.ac_power
     power_sensor: binary_sensor.ac_power
 ```
 ```
 
 
+## Example (using LOOKin controller):
+```yaml
+smartir:
+
+climate:
+  - platform: smartir
+    name: Office AC
+    unique_id: office_ac
+    device_code: 4000
+    controller_data: 192.168.10.10
+    temperature_sensor: sensor.temperature
+    humidity_sensor: sensor.humidity
+    power_sensor: binary_sensor.ac_power
+```
+
 ## Available codes for climate devices:
 ## Available codes for climate devices:
 Below are the code files created by the 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.**
 Below are the code files created by the 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.**
 
 

+ 13 - 0
docs/FAN.md

@@ -60,6 +60,19 @@ fan:
     power_sensor: binary_sensor.fan_power
     power_sensor: binary_sensor.fan_power
 ```
 ```
 
 
+## Example (using LOOKin controller):
+```yaml
+smartir:
+
+fan:
+  - platform: smartir
+    name: Bedroom fan
+    unique_id: bedroom_fan
+    device_code: 4000
+    controller_data: 192.168.10.10
+    power_sensor: binary_sensor.fan_power
+```
+
 ## Available codes for Fan devices:
 ## Available codes for Fan devices:
 Below are the code files created by the 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.**
 Below are the code files created by the 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.**
 
 

+ 13 - 0
docs/MEDIA_PLAYER.md

@@ -62,6 +62,19 @@ media_player:
     power_sensor: binary_sensor.tv_power
     power_sensor: binary_sensor.tv_power
 ```
 ```
 
 
+## Example (using LOOKin controller):
+```yaml
+smartir:
+
+media_player:
+  - platform: smartir
+    name: Living room TV
+    unique_id: living_room_tv
+    device_code: 4000
+    controller_data: 192.168.10.10
+    power_sensor: binary_sensor.tv_power
+```
+
 ### Overriding Source Names
 ### Overriding Source Names
 Source names in device files are usually set to the name that the media player uses. These often aren't very descriptive, so you can override these names in the configuration file. You can also remove a source by setting its name to `null`
 Source names in device files are usually set to the name that the media player uses. These often aren't very descriptive, so you can override these names in the configuration file. You can also remove a source by setting its name to `null`