本帖最后由 kjjuhfv 于 2023-9-2 22:31 编辑
esphome:
name: "opple"
friendly_name: "opple"
esp8266:
board: esp12e
logger:
api:
services:
- service: send_ir_command
variables:
command: int[]
then:
- remote_transmitter.transmit_raw:
code: !lambda 'return command;'
carrier_frequency: 38kHz
transmitter_id: hongwai_fashe
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Opple Fallback Hotspot"
password: "ADo5ZWd6m6ow"
captive_portal:
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
- platform: uptime
name: Uptime
text_sensor:
- platform: wifi_info
ssid:
name: Connected SSID
icon: "mdi:signal-variant"
ip_address:
name: IP Address
icon: "mdi:ip-network"
mac_address:
name: Mac Address
icon: "mdi:wifi-marker"
remote_transmitter:
- id: Rf433_transmitter
pin: GPIO13
carrier_duty_percent: 100%
- id: Rf315_transmitter
pin: GPIO12
carrier_duty_percent: 100%
- id: hongwai_fashe
pin: GPIO14
carrier_duty_percent: 50%
remote_receiver:
- id: IR_receiver
pin:
number: GPIO5
inverted: True
dump:
- raw
- nec
smartir:
check_updates: false
climate:
- platform: smartir
name: Gree_AC_IR
unique_id: Gree_ac
device_code: 8700
controller_data: opple_send_ir_command |