找回密碼
 立即註冊
惟家LINE群QRCODE
    查看: 2016|回覆: 0

    Dyson Local 更新到V1.6.2 後部分開關不見處理

    [複製鏈接]

    !lvup!   100%

    11

    主題

    6

    回帖

    518

    積分

    超級版主

    積分
    518
    發表於 2021-11-24 00:05:49 | 顯示全部樓層 |閱讀模式
    Dyson Local 更新到V1.6.2後部分開關及空氣品質狀態消失,看了一下開關部分被整合到風扇的狀態,而原本的空氣品質被拆成了 PM2.5 PM10 NO2 VOC 4個狀態





    分享一下個人弄的 自動 , 氣流方向, 以及擺頭 獨立出來的開關
    自動的部分因功力不夠所以只能設為關掉時跑中速(速度為7)
    可以依照自己需求將speed: medium改為 low(速度4) high(速度10)
    或者是有高手可以幫忙修正一下改為恢復前一個狀態 謝謝!

    switch:
      - platform: template
        switches:
          dyson_auto:
            friendly_name: Dyson Auto
            value_template: "{{ is_state_attr('fan.pure_hot_cool', 'preset_mode', 'Auto') }}"
            turn_on:
              service: fan.set_preset_mode
              target:
                entity_id: fan.pure_hot_cool
              data:
                preset_mode: Auto
            turn_off:
              service: fan.set_speed
              target:
                entity_id: fan.pure_hot_cool
              data:
                speed: medium
            icon_template: >
              {% if is_state('fan.pure_hot_cool', 'on') and is_state_attr('fan.pure_hot_cool', 'preset_mode', true) %}
                mdi:fan-auto
              {% else %}
                mdi:fan-auto
              {% endif %}

      - platform: template
        switches:
          dyson_direction:
            friendly_name: Dyson氣流方向
            value_template: "{{ is_state_attr('fan.pure_hot_cool', 'direction', 'forward') }}"
            turn_on:
              service: fan.set_direction
              target:
                entity_id: fan.pure_hot_cool
              data:
                direction: forward
            turn_off:
              service: fan.set_direction
              target:
                entity_id: fan.pure_hot_cool
              data:
                direction: reverse
            icon_template: >
              {% if is_state('fan.pure_hot_cool', 'on') and is_state_attr('fan.pure_hot_cool', 'direction', true) %}
                mdi:tailwind
              {% else %}
                mdi:tailwind
              {% endif %}

      - platform: template
        switches:
          dyson_oscillation:
            friendly_name: Dyson擺頭
            value_template: "{{ is_state('fan.pure_hot_cool', 'on') and is_state_attr('fan.pure_hot_cool', 'oscillating', true) }}"
            turn_on:
              service: fan.oscillate
              data:
                entity_id: fan.pure_hot_cool
                oscillating: true
            turn_off:
              service: fan.oscillate
              data:
                entity_id: fan.pure_hot_cool
                oscillating: false
            icon_template: >
              {% if is_state('fan.pure_hot_cool', 'on') and is_state_attr('fan.pure_hot_cool', 'oscillating', true) %}
                mdi:sync
              {% else %}
                mdi:sync-off
              {% endif %}



    您需要登入後纔可以回帖 登入 | 立即註冊

    本版積分規則

    Archiver|手機版|惟家的智能論壇

    GMT+8, 2026-9-24 12:21 , Processed in 0.083384 second(s), 24 queries .

    快速回覆 返回頂部 返回列表