SmartIR Climate

SmartIR Climate is a custom [Home Assistant](https://www.home-assistant.io/) component for controlling AC units via Infrared. An IR controller such as Broadlink RM is required. The key features of the component are: * Support for Base64, Broadlink Hex and Pronto codes. * Support for external temperature and humidity sensors * Support for external on/off sensor that monitors whether your device is actually On or Off. This may be a power monitor sensor. * Support to turn on/off from voice assistants. The component is always remembering the last mode. ## Setup instructions: Create the folder `custom_components`, if it does not exist, in the home assistant’s config directory. Create the `smartir` folder and copy `__init__.py` and `climate.py` into it. ~~Finally, create the `codes/climate` subfolders into the smartir folder.~~ In the last version, the component creates the `codes/climate` subfolders if they not exist. For this component to work, we need a .json file containing all the necessary IR commands. * If you previously used the Broadlink IR Climate component you should use this tool to convert your old INI files. If you have uploaded your old INI files on GitHub, I have already converted them. Find your device's brand code [here](https://github.com/smartHomeHub/SmartIR/blob/master/Docs/CLIMATE.md#available-codes-for-climate-devices) and fill the device code in the configuration. The component will download it automatically. * For new users, find your device's brand code [here](https://github.com/smartHomeHub/SmartIR/blob/master/Docs/CLIMATE.md#available-codes-for-climate-devices) and fill the device code in the configuration. If your device is not working, you will need to learn your own codes and place the Json file in `codes/climate` subfolders. [Keite Trần](https://github.com/keitetran/BroadlinkIRTools) developed [an amazing web-based app](https://keitetran.github.io/BroadlinkIRTools/) for this job. Make sure the broadlink switch is already installed. Go to the Home Assistant UI/dev service, find the broadlink send_packet service and copy the name of it. ## Configuration variables: **name** (Optional): Name to use in the frontend
**device_code** (Required): ...... (Accepts only positive numbers)
**controller_send_service** (Required): The service that will be used to send the commands. Only `broadlink_send_packet` (Broadlink controller) is currently supported.
**temperature_sensor** (Optional): *entity_id* for a temperature sensor
**humidity_sensor** (Optional): *entity_id* for a humidity sensor
**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)
## Example (using broadlink controller): ```yaml switch: - platform: broadlink host: 192.168.10.10 mac: '00:00:00:00:00:00' climate: - platform: smartir name: Office AC device_code: 1000 controller_send_service: switch.broadlink_send_packet_192_168_10_10 temperature_sensor: sensor.temperature humidity_sensor: sensor.humidity power_sensor: binary_sensor.ac_power ``` Replace the device_code value with the name of the file you previously downloaded from the list or the file you converted. Please note that this field only accepts positive numbers and searches for the file only under codes/climate folder. The .json extension is not required. Also, replace the controller_send_service value with the name of the previously copied broadlink send_packet service. Restart HA instance ## 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.** #### Toyotomi | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1000](../smartir/codes/climate/1000.json)|AKIRA GAN/GAG-A128 VL|Broadlink #### Panasonic | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1020](../smartir/codes/climate/1020.json)|CS-CE7HKEW
CS-CE9HKEW
CS-CE12HKEW|Broadlink [1021](../smartir/codes/climate/1021.json)|CS-RE9GKE
CS-RE12GKE|Broadlink [1022](../smartir/codes/climate/1022.json)|CS-Z25TK|Broadlink [1023](../smartir/codes/climate/1023.json)|CS-HE9JKE
CS-HE12JKE|Broadlink #### General Electric | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1040](../smartir/codes/climate/1040.json)|Unknown model|Broadlink #### LG | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1060](../smartir/codes/climate/1060.json)|R09AWN
R24AWN
E09EK|Broadlink [1061](../smartir/codes/climate/1061.json)|Unknown model|Broadlink #### Hitachi | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1080](../smartir/codes/climate/1080.json)|Unknown model|Broadlink [1081](../smartir/codes/climate/1081.json)|RAS-10EH3|Broadlink #### Daikin | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1100](../smartir/codes/climate/1100.json)|Unknown model|Broadlink [1101](../smartir/codes/climate/1101.json)|FTXS20LVMA
FTXS25LVMA
FTXS35LVMA
FTXS46LVMA
FTXS50LVMA
FTXS60LVMA
FTXS71LVMA
FTXS85LVMA
FTXS95LVMA|Broadlink #### Mitsubishi Electric | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1120](../smartir/codes/climate/1120.json)|MSZ-GL25VGD
MSZ-GL35VGD
MSZ-GL42VGD
MSZ-GL50VG
MSZ-GL60VGD
MSZ-GL71VGD
MSZ-GL80VGD|Broadlink [1121](../smartir/codes/climate/1121.json)|Unknown model|Broadlink #### Actron | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1140](../smartir/codes/climate/1140.json)|Unknown model|Broadlink #### Carrier | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1160](../smartir/codes/climate/1160.json)|Unknown model|Broadlink #### Gree | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1180](../smartir/codes/climate/1180.json)|Unknown model|Broadlink [1181](../smartir/codes/climate/1181.json)|Unknown model|Broadlink #### Tosot | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1200](../smartir/codes/climate/1200.json)|Unknown model|Broadlink #### Sungold | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1220](../smartir/codes/climate/1220.json)|Unknown model|Broadlink #### Consul | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1240](../smartir/codes/climate/1240.json)|Unknown model|Broadlink #### Toshiba | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1260](../smartir/codes/climate/1260.json)|RAS-13NKV-E / RAS-13NAV-E
RAS-13NKV-A / RAS-13NAV-A
RAS-16NKV-E / RAS-16NAV-E
RAS-16NKV-A / RAS-16NAV-A|Broadlink #### Fujitsu | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1280](../smartir/codes/climate/1280.json)|AR-RBE1E|Broadlink [1281](../smartir/codes/climate/1281.json)|Unknown model|Broadlink #### Sharp | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1300](../smartir/codes/climate/1300.json)|AY-B22DM|Broadlink #### Haier | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1320](../smartir/codes/climate/1320.json)|Unknown model|Broadlink #### Tadiran | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1340](../smartir/codes/climate/1340.json)|Unknown model|Broadlink #### Springer | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1360](../smartir/codes/climate/1360.json)|Split Hi Wall Maxiflex|Broadlink #### Midea | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1380](../smartir/codes/climate/1380.json)|Unknown model|Broadlink [1381](../smartir/codes/climate/1381.json)|Unknown model|Broadlink #### Samsung | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1400](../smartir/codes/climate/1400.json)|Unknown model|Broadlink #### Sintech | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1420](../smartir/codes/climate/1420.json)|KFR-34GW|Broadlink #### Akai | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1440](../smartir/codes/climate/1440.json)|Unknown model|Broadlink #### Alliance | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1460](../smartir/codes/climate/1460.json)|Unknown model|Broadlink #### Junkers | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1480](../smartir/codes/climate/1480.json)|Excellence|Broadlink #### Sanyo | Code | Supported Models | Controller | | ------------- | -------------------------- | ------------- | [1500](../smartir/codes/climate/1500.json)|Unknown|Broadlink