|
@@ -76,8 +76,13 @@ media_player:
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## Example (using ESPHome):
|
|
## Example (using ESPHome):
|
|
|
-ESPHome API section:
|
|
|
|
|
|
|
+ESPHome configuration example:
|
|
|
```yaml
|
|
```yaml
|
|
|
|
|
+esphome:
|
|
|
|
|
+ name: my_espir
|
|
|
|
|
+ platform: ESP8266
|
|
|
|
|
+ board: esp01_1m
|
|
|
|
|
+
|
|
|
api:
|
|
api:
|
|
|
services:
|
|
services:
|
|
|
- service: send_raw_command
|
|
- service: send_raw_command
|
|
@@ -86,18 +91,24 @@ api:
|
|
|
then:
|
|
then:
|
|
|
- remote_transmitter.transmit_raw:
|
|
- remote_transmitter.transmit_raw:
|
|
|
code: !lambda 'return command;'
|
|
code: !lambda 'return command;'
|
|
|
|
|
+
|
|
|
|
|
+remote_transmitter:
|
|
|
|
|
+ pin: GPIO14
|
|
|
|
|
+ carrier_duty_percent: 50%
|
|
|
```
|
|
```
|
|
|
-configuration.yaml:
|
|
|
|
|
|
|
+HA configuration.yaml:
|
|
|
```yaml
|
|
```yaml
|
|
|
smartir:
|
|
smartir:
|
|
|
|
|
|
|
|
-media_player:
|
|
|
|
|
|
|
+climate:
|
|
|
- platform: smartir
|
|
- platform: smartir
|
|
|
- name: Living room TV
|
|
|
|
|
- unique_id: living_room_tv
|
|
|
|
|
|
|
+ name: Office AC
|
|
|
|
|
+ unique_id: office_ac
|
|
|
device_code: 8000
|
|
device_code: 8000
|
|
|
- controller_data: <esphome_name>_send_raw_command
|
|
|
|
|
- power_sensor: binary_sensor.tv_power
|
|
|
|
|
|
|
+ controller_data: my_espir_send_raw_command
|
|
|
|
|
+ temperature_sensor: sensor.temperature
|
|
|
|
|
+ humidity_sensor: sensor.humidity
|
|
|
|
|
+ power_sensor: binary_sensor.ac_power
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### Overriding Source Names
|
|
### Overriding Source Names
|
|
@@ -118,7 +129,7 @@ media_player:
|
|
|
|
|
|
|
|
## Available codes for TV devices:
|
|
## Available codes for TV 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.**
|
|
|
-Your contribution with 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.
|
|
|
|
|
|
|
|
#### Philips
|
|
#### Philips
|
|
|
| Code | Supported Models | Controller |
|
|
| Code | Supported Models | Controller |
|