Răsfoiți Sursa

Add codes for Atomberg Renesa fan (#805)

* add codes for atomberg renesa

* Undo removal of remote fan speed 2
Agneev Mukherjee 4 ani în urmă
părinte
comite
b4a94a7891
2 a modificat fișierele cu 57 adăugiri și 12 ștergeri
  1. 21 0
      codes/fan/1170.json
  2. 36 12
      docs/FAN.md

+ 21 - 0
codes/fan/1170.json

@@ -0,0 +1,21 @@
+{
+  "manufacturer": "Atomberg",
+  "supportedModels": [
+    "Renesa"
+  ],
+  "supportedController": "Broadlink",
+  "commandsEncoding": "Base64",
+  "speed": [
+    "1", "2", "3", "4", "5"
+  ],
+  "commands": {
+    "off": "JgBQAAABJZITExMSExITEhMSExITExMSEzcTNhMTExITNxM2EzcTNxM3ExkMEhMSEzcTEhMTEjcTEhM3EzcTNxMSEzcTNxMSEwAFYQABJkkTAA0F",
+    "default": {
+      "1": "JgBQAAABJZMUERURFBEUERQRFBEUERURFDUUNhUQFREVNBQ2FDYUNhQRFTUUERU1FBEUERURFDUVNRUQFTUUERU1FTUUNhQRFQAFYAABJkkUAA0F",
+      "2": "JgBQAAABJJMVEBQRFBEUEhQRFBEUERQRFDYUNhQRFRAUNhQ2FDYUNRQSFBEVEBQRFDYUERQRFDYUNhQ2FDYTNhQSEzYUNhQRFAAFYgABJUoVAA0F",
+      "3": "JgBQAAABJZMTEhMTEhMTEhMSExITEhMTEzYTNxMSExMTNhM3EzcTNxM3EzcTEhMSEzcTEhMSEzcTEhMSEzcTNxMSEzcTNxMSEwAFYgABJkkTAA0F",
+      "4": "JgBQAAABJJMTEhMSExITExMSExITEhMSEzcTNxMWDxITNxM3EzcTNxITExITEhM3ExITEhMSEzcTNxM3EzcTEhM3EzYTNxMSEwAFYgABJkkTAA0F",
+      "5": "JgBQAAABJpITEhMSExITEhMTExITEhMSEzcTNxMSExITNxM3EzYTNxM3EzcTNxM2ExMTEhMSEzcTEhMSExITEhM3EzcTNxMSEwAFYQABJ0kTAA0F"
+    }
+  }
+}

+ 36 - 12
docs/FAN.md

@@ -5,7 +5,8 @@
 For this platform to work, we need a .json file containing all the necessary IR or RF commands.
 For this platform to work, we need a .json file containing all the necessary IR or RF commands.
 Find your device's brand code [here](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.
 Find your device's brand code [here](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:
+## Configuration variables
+
 **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 />
@@ -13,7 +14,8 @@ Find your device's brand code [here](FAN.md#available-codes-for-fan-devices) and
 **delay** (Optional): Adjusts the delay in seconds between multiple commands. The default is 0.5 <br />
 **delay** (Optional): Adjusts the delay in seconds between multiple commands. The default is 0.5 <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 />
 
 
-## Example (using broadlink controller):
+## Example (using broadlink controller)
+
 Add a Broadlink RM device named "Bedroom" via config flow (read the [docs](https://www.home-assistant.io/integrations/broadlink/)).
 Add a Broadlink RM device named "Bedroom" via config flow (read the [docs](https://www.home-assistant.io/integrations/broadlink/)).
 
 
 ```yaml
 ```yaml
@@ -27,7 +29,9 @@ fan:
     controller_data: remote.bedroom_remote
     controller_data: remote.bedroom_remote
     power_sensor: binary_sensor.fan_power
     power_sensor: binary_sensor.fan_power
 ```
 ```
-## Example (using xiaomi controller):
+
+## Example (using xiaomi controller)
+
 ```yaml
 ```yaml
 smartir:
 smartir:
 
 
@@ -45,7 +49,8 @@ fan:
     power_sensor: binary_sensor.fan_power
     power_sensor: binary_sensor.fan_power
 ```
 ```
 
 
-## Example (using mqtt controller):
+## Example (using mqtt controller)
+
 ```yaml
 ```yaml
 smartir:
 smartir:
 
 
@@ -58,7 +63,8 @@ fan:
     power_sensor: binary_sensor.fan_power
     power_sensor: binary_sensor.fan_power
 ```
 ```
 
 
-## Example (using LOOKin controller):
+## Example (using LOOKin controller)
+
 ```yaml
 ```yaml
 smartir:
 smartir:
 
 
@@ -71,8 +77,10 @@ fan:
     power_sensor: binary_sensor.fan_power
     power_sensor: binary_sensor.fan_power
 ```
 ```
 
 
-## Example (using ESPHome):
+## Example (using ESPHome)
+
 ESPHome configuration example:
 ESPHome configuration example:
+
 ```yaml
 ```yaml
 esphome:
 esphome:
   name: my_espir
   name: my_espir
@@ -92,7 +100,9 @@ remote_transmitter:
   pin: GPIO14
   pin: GPIO14
   carrier_duty_percent: 50%
   carrier_duty_percent: 50%
 ```
 ```
+
 HA configuration.yaml:
 HA configuration.yaml:
+
 ```yaml
 ```yaml
 smartir:
 smartir:
 
 
@@ -105,68 +115,82 @@ fan:
     power_sensor: binary_sensor.fan_power
     power_sensor: binary_sensor.fan_power
 ```
 ```
 
 
-## Available codes for Fan devices:
+## 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.**
 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.**
 Contributing to 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
 #### Kaze
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1000](../codes/fan/1000.json)|Unknown|Broadlink
 [1000](../codes/fan/1000.json)|Unknown|Broadlink
 
 
 #### Acorn
 #### Acorn
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1020](../codes/fan/1020.json)|Unknown|Broadlink
 [1020](../codes/fan/1020.json)|Unknown|Broadlink
 
 
+#### Atomberg
+
+| Code | Supported Models | Notes |Controller |
+| ------------- | ----- | ----- | ------------- |
+[1160](../codes/fan/1160.json)|Efficio||Broadlink
+[1170](../codes/fan/1170.json)|Renesa|Speeds `1,2,3,4,5` is mapped to `2,3,4,5,Boost` on the remote|Broadlink
+
 #### Lucci Air
 #### Lucci Air
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1040](../codes/fan/1040.json)|Aria|Broadlink
 [1040](../codes/fan/1040.json)|Aria|Broadlink
 [7040](../codes/fan/7040.json)|Aria|ESPHome
 [7040](../codes/fan/7040.json)|Aria|ESPHome
 
 
 #### Super Fan
 #### Super Fan
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1060](../codes/fan/1060.json)|A1|Broadlink
 [1060](../codes/fan/1060.json)|A1|Broadlink
 
 
 #### Harbor Breeze
 #### Harbor Breeze
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1080](../codes/fan/1080.json)|A25-TX001-R1|Broadlink
 [1080](../codes/fan/1080.json)|A25-TX001-R1|Broadlink
 [1081](../codes/fan/1081.json)|A25-TX025|Broadlink
 [1081](../codes/fan/1081.json)|A25-TX025|Broadlink
 
 
 #### Pacific
 #### Pacific
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1100](../codes/fan/1100.json)|Unknown|Broadlink
 [1100](../codes/fan/1100.json)|Unknown|Broadlink
 
 
 #### Europace
 #### Europace
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1120](../codes/fan/1120.json)|Unknown|Broadlink
 [1120](../codes/fan/1120.json)|Unknown|Broadlink
 
 
 #### SMC
 #### SMC
-| Code | Supported Models | Controller |
-| ------------- | -------------------------- | ------------- |
-[1140](../codes/fan/1140.json)|SP486, SP483|Broadlink
 
 
-#### Atomberg
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
-[1160](../codes/fan/1160.json)|Efficio Fan|Broadlink
+[1140](../codes/fan/1140.json)|SP486, SP483|Broadlink
 
 
 #### Argo
 #### Argo
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1180](../codes/fan/1180.json)|Standy|Broadlink
 [1180](../codes/fan/1180.json)|Standy|Broadlink
 
 
 #### DCG
 #### DCG
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1200](../codes/fan/1200.json)|Unknown|Broadlink
 [1200](../codes/fan/1200.json)|Unknown|Broadlink
 
 
 #### Mitsubishi
 #### Mitsubishi
+
 | Code | Supported Models | Controller |
 | Code | Supported Models | Controller |
 | ------------- | -------------------------- | ------------- |
 | ------------- | -------------------------- | ------------- |
 [1220](../codes/fan/1220.json)|C56-RW5|Broadlink
 [1220](../codes/fan/1220.json)|C56-RW5|Broadlink