『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 438|回复: 6

[技术探讨] 奥克斯空调极速侠成功接入haos

[复制链接]

2

主题

14

帖子

178

积分

注册会员

Rank: 2

积分
178
金钱
164
HASS币
0
发表于 2025-1-6 17:55:52 | 显示全部楼层 |阅读模式
本帖最后由 qcstar 于 2025-1-6 21:51 编辑

家里有两台极速侠,空调原先是支持阿里智能的,后来奥克斯与阿里不合作了,同时在这个时候接触了haos,想着所有设备都能接入到一个系统,于是打电话给售后,让换了一个新模块,能接入奥克斯自己的a+ app,网上找了好多资料,都不支持,包括broadlinkac2mqtt.

也通过论坛知道了俄国大神的 https://github.com/GrKoR/esphome_aux_ac_component 帖子,
由于设备不一样,加上自己是新手,疯狂找资料,结果还真成了.

模块背面

模块背面

模块正面

模块正面

这是我空调的模块,他同时负责遥控和显示屏的功能,这与大神的设备不一样,


668240826e9f9162f6f0a3062a52a20.jpg 通信模块的型号是BL3389-P又经过一番寻找,找到了这个通讯模块的资料
用户手册.pdf (648.26 KB, 下载次数: 8)

bf43d24f5983df5b60d424b1398bf02.jpg 于是开始拆吧

烙铁不太会用,就用刀片一点点扣下来,


我用了一块esp8266 d1 mini的板子,接线如图 11.png
d1接主板的左4
d2接主板的左5
由于主板有5v电源
5v电源和gnd接到主板的电源上


下面就是esphome的代码了,这是参考俄国大神的。
esphome:
  name: aux-ac-01
  friendly_name: aux-ac-01

esp8266:
  board: d1_mini

# Enable logging
logger:
    level: DEBUG
    hardware_uart: UART1

# Enable Home Assistant API
api:
  encryption:
    key: "111111"

ota:
  password: "111111"

wifi:
  ssid: "111111"
  password: "111111"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Aux-Ac-01 Fallback Hotspot"
    password: "111111"

captive_portal:

external_components:
  - source:
      type: git
      url: https://github.com/GrKoR/esphome_aux_ac_component

uart:
  id: ac_uart_bus
  tx_pin: GPIO5
  rx_pin: GPIO4
  baud_rate: 4800
  data_bits: 8
  parity: EVEN
  stop_bits: 1

light:
  - platform: status_led
    id: status_light
    pin:
      number: GPIO2 # 关闭了esp的led灯,影响睡觉
      inverted: true
    restore_mode: ALWAYS_OFF

climate:
  - platform: aux_ac
    name: "AUX AC"
    id: aux_id
    uart_id: ac_uart_bus
    period: 7s
    show_action: true
    display_inverted: false
    timeout: 150
    optimistic: true
    indoor_temperature:
      name: AC Indoor Temperature
      id: ac_indoor_temp
      internal: false
    display_state:
      name: AC Display State
      id: ac_display_state
      internal: false
    outdoor_temperature:
      name: AC Outdoor Temperature
      id: ac_outdoor_temp
      internal: false
    outbound_temperature:
      name: AC Coolant Outbound Temperature
      id: ac_outbound_temp
      internal: false
    inbound_temperature:
      name: AC Coolant Inbound Temperature
      id: ac_inbound_temp
      internal: false
    compressor_temperature:
      name: AC Compressor Temperature
      id: ac_strange_temp
      internal: false
    defrost_state:
      name: AC Defrost State
      id: ac_defrost_state
      internal: false
    inverter_power:
      name: AC Invertor Power
      id: ac_inverter_power
      internal: false
    preset_reporter:
      name: AC Preset Reporter
      id: ac_preset_reporter
      internal: false
    vlouver_state:
      name: AC VLouvers State
      id: ac_vlouver_state
      internal: false
    visual:
      min_temperature: 16
      max_temperature: 32
      temperature_step: 0.5
    supported_modes:
      - HEAT_COOL
      - COOL
      - HEAT
      - DRY
      - FAN_ONLY
    custom_fan_modes:
      - MUTE
      - TURBO
    supported_presets:
      - SLEEP
    custom_presets:
      - CLEAN
      - HEALTH
      - ANTIFUNGUS
    supported_swing_modes:
      - VERTICAL
      - HORIZONTAL
      - BOTH


sensor:
  # just wifi signal strength for debug purpose only
  - platform: wifi_signal
    name: AC WiFi Signal
    update_interval: 30s
    unit_of_measurement: "dBa"
    accuracy_decimals: 0

  - platform: uptime
    name: AC Uptime Sensor

switch:
  - platform: template
    name: AC Display
    lambda: |-
      if (id(ac_display_state).state) {
        return true;
      } else {
        return false;
      }
    turn_on_action:
      - aux_ac.display_on: aux_id
    turn_off_action:
      - aux_ac.display_off: aux_id

button:
  - platform: template
    name: AC VLouver Stop
    icon: "mdi:circle-small"
    on_press:
      - aux_ac.vlouver_stop: aux_id
    
  - platform: template
    name: AC VLouver Swing
    icon: "mdi:pan-vertical"
    on_press:
      - aux_ac.vlouver_swing: aux_id
    
  - platform: template
    name: AC VLouver Top
    icon: "mdi:pan-up"
    on_press:
      - aux_ac.vlouver_top: aux_id
    
  - platform: template
    name: AC VLouver Middle Above
    icon: "mdi:pan-top-left"
    on_press:
      - aux_ac.vlouver_middle_above: aux_id
    
  - platform: template
    name: AC VLouver Middle
    icon: "mdi:pan-left"
    on_press:
      - aux_ac.vlouver_middle: aux_id
    
  - platform: template
    name: AC VLouver Middle Below
    icon: "mdi:pan-bottom-left"
    on_press:
      - aux_ac.vlouver_middle_below: aux_id
    
  - platform: template
    name: AC VLouver Bottom
    icon: "mdi:pan-down"
    on_press:
      - aux_ac.vlouver_bottom: aux_id


number:
  - platform: template
    name: AC Vertical Louvers
    id: ac_vlouver
    icon: "mdi:circle-small"
    mode: "slider"
    min_value: 0
    max_value: 6
    step: 1
    update_interval: 2s
    lambda: |-
      return id(ac_vlouver_state).state;
    set_action:
      then:
        - aux_ac.vlouver_set:
            id: aux_id
            position: !lambda "return x;"

  - platform: template
    name: AC Power Limit
    id: ac_power_limit
    icon: "mdi:battery-unknown"
    mode: "slider"
    min_value: 30
    max_value: 100
    step: 1
    set_action:
      then:
        - lambda: !lambda "id(aux_id).powerLimitationOnSequence( x );"



Screenshot_20250106_180055_io.homeassistant.companion.android.jpg



回复

使用道具 举报

0

主题

14

帖子

358

积分

中级会员

Rank: 3Rank: 3

积分
358
金钱
344
HASS币
0
发表于 2025-1-6 19:19:10 | 显示全部楼层
楼主,是原板子上的芯片不用拆掉,只要增加esp8266 d1 mini板子按示意图上(d1接主板的右4,,d2接主板的右5,,5v电源和gnd接到主板的电源上)接上就可以吗??????谢谢!!!!
回复

使用道具 举报

15

主题

474

帖子

2527

积分

金牌会员

Rank: 6Rank: 6

积分
2527
金钱
2053
HASS币
0
发表于 2025-1-6 19:51:01 | 显示全部楼层
看上了楼主的空调卡片
回复

使用道具 举报

2

主题

14

帖子

178

积分

注册会员

Rank: 2

积分
178
金钱
164
HASS币
0
 楼主| 发表于 2025-1-6 21:47:40 | 显示全部楼层
fiyenui 发表于 2025-1-6 19:19
楼主,是原板子上的芯片不用拆掉,只要增加esp8266 d1 mini板子按示意图上(d1接主板的右4,,d2接主板的右 ...

我的是拆掉了的,怕以后有什么莫名其妙的问题,怕会串流,图片是为了看的更清楚,所以用的是芯片还在的时候的样子
回复

使用道具 举报

2

主题

14

帖子

178

积分

注册会员

Rank: 2

积分
178
金钱
164
HASS币
0
 楼主| 发表于 2025-1-6 21:49:13 | 显示全部楼层
jjss520 发表于 2025-1-6 19:51
看上了楼主的空调卡片

卡片是Bubble Card
回复

使用道具 举报

0

主题

1

帖子

68

积分

注册会员

Rank: 2

积分
68
金钱
67
HASS币
0
发表于 2025-1-11 02:18:33 | 显示全部楼层
好厉害!!!问一下楼主,你怎么知道用博联芯片的4、5脚连接8266的?
回复

使用道具 举报

2

主题

14

帖子

178

积分

注册会员

Rank: 2

积分
178
金钱
164
HASS币
0
 楼主| 发表于 2025-1-13 08:24:16 | 显示全部楼层
2011 发表于 2025-1-11 02:18
好厉害!!!问一下楼主,你怎么知道用博联芯片的4、5脚连接8266的?

找了下他的  用户手册.pdf 看在根据实际分析,他的rx和tx是没有和主板连接的.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-2-2 22:45 , Processed in 0.053893 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表