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

 找回密码
 立即注册
查看: 1342|回复: 2

[求助] 通过mqqt 定义的空调卡片不可用 ,不知道哪里的问题

[复制链接]

36

主题

136

帖子

1041

积分

金牌会员

Rank: 6Rank: 6

积分
1041
金钱
905
HASS币
0
发表于 2023-4-5 22:39:31 | 显示全部楼层 |阅读模式
 climate:
      - unique_id: rilikongtiao1
        name: rilikongtiao1
        modes:
          - "off"
          - "heat"
          - "dry"
          - "cool"
          - "fan_only"
        fan_modes:
          - "high"
          - "medium"
          - "low"
          - "auto"
          - "silent"
        power_command_topic: "homeassistant/climate/zhonghong/ac_0_4/power/set"
        mode_command_topic: "homeassistant/climate/zhonghong/ac_0_4/mode/set"
        current_temperature_topic: "homeassistant/climate/zhonghong/ac_0_4/cur_temp/state"
        mode_state_topic: "homeassistant/climate/zhonghong/ac_0_4/mode/state"
        temperature_command_topic: "homeassistant/climate/zhonghong/ac_0_4/temp/set"
        temperature_state_topic: "homeassistant/climate/zhonghong/ac_0_4/temp/state"
        fan_mode_command_topic: "homeassistant/climate/zhonghong/ac_0_4/fan/set"
        fan_mode_state_topic: "homeassistant/climate/zhonghong/ac_0_4/fan/state"
     

                               
登录/注册后可看大图

回复

使用道具 举报

4

主题

56

帖子

503

积分

高级会员

Rank: 4

积分
503
金钱
447
HASS币
0
发表于 2023-4-6 14:59:02 | 显示全部楼层
网上好多例子都是旧版写法。参考官方的吧:MQTT HVAC

mqtt:
  climate:
    - name: rilikongtiao1
      unique_id: rilikongtiao1
      modes:
        - "off"
        - "heat"
        - "dry"
        - "cool"
        - "fan_only"
      fan_modes:
        - "high"
        - "medium"
        - "low"
        - "auto"
        - "silent"
      power_command_topic: "homeassistant/climate/zhonghong/ac_0_4/power/set"
      mode_command_topic: "homeassistant/climate/zhonghong/ac_0_4/mode/set"
      current_temperature_topic: "homeassistant/climate/zhonghong/ac_0_4/cur_temp/state"
      mode_state_topic: "homeassistant/climate/zhonghong/ac_0_0/mode/state"
      temperature_command_topic: "homeassistant/climate/zhonghong/ac_0_0/temp/set"
      temperature_state_topic: "homeassistant/climate/zhonghong/ac_0_0/temp/state"
      fan_mode_command_topic: "homeassistant/climate/zhonghong/ac_0_4/fan/set"
      fan_mode_state_topic: "homeassistant/climate/zhonghong/ac_0_4/fan/state"
      precision: 1.0
      min_temp: 16
      max_temp: 30
回复

使用道具 举报

36

主题

136

帖子

1041

积分

金牌会员

Rank: 6Rank: 6

积分
1041
金钱
905
HASS币
0
 楼主| 发表于 2023-4-8 22:59:57 | 显示全部楼层
qyzyl 发表于 2023-4-6 14:59
网上好多例子都是旧版写法。参考官方的吧:MQTT HVAC

谢谢 已经可以了 但现在发现风速控制不了
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 21:25 , Processed in 0.071009 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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