|
|
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 %}
|
|