Open xzajyjs opened 3 months ago
我也附议。现在暂时写了一个这样的UI
type: vertical-stack
cards:
- type: tile
entity: fan.fan1
show_entity_picture: false
vertical: false
hide_state: false
state_content: percentage
features:
- type: fan-speed
- type: fan-preset-modes
style: dropdown
preset_modes:
- Normal
- Nature
- type: conditional
conditions:
- condition: state
entity: input_boolean.fan_fan1_oscillation
state: 'on'
card:
features:
- style: slider
type: numeric-input
type: tile
entity: number.feng_shan_oscillation_angle
show_entity_picture: false
vertical: false
hide_state: true
icon_tap_action:
action: call-service
service: input_boolean.toggle
target:
entity_id: input_boolean.fan_fan1_oscillation
- type: conditional
conditions:
- condition: state
entity: input_boolean.fan_fan1_oscillation
state: 'off'
card:
type: horizontal-stack
cards:
- type: tile
entity: input_boolean.fan_fan1_oscillation
tap_action:
action: call-service
service: fan.set_direction
target:
entity_id: fan.fan1
data:
direction: reverse
icon_tap_action:
action: call-service
service: fan.set_direction
target:
entity_id: fan.fan1
data:
direction: reverse
name: Left
icon: mdi:arrow-left-thick
hide_state: true
- type: tile
entity: input_boolean.fan_fan1_oscillation
name: ' '
hide_state: false
state_content: state
tap_action:
action: toggle
icon_tap_action:
action: toggle
icon: mdi:arrow-oscillating-off
- type: tile
entity: input_boolean.fan_fan1_oscillation
tap_action:
action: call-service
service: fan.set_direction
target:
entity_id: fan.fan1
data:
direction: forward
icon_tap_action:
action: call-service
service: fan.set_direction
target:
entity_id: fan.fan1
data:
direction: forward
name: Right
icon: mdi:arrow-right-thick
hide_state: true
Possible mitigation method: https://github.com/Nerwyn/service-call-tile-feature
这样在UI 上可能没那么难看
没说清楚,我想的是ios家庭app里的界面,电风扇风速和摆头不能像空调伴侣那样温度、模式、风速 合并在同一个窗口里面
我也特别想知道要如何配置才能做到这样的效果,有群友也是用的米家风扇X1升级包可以实现这样效果(但是他也不知道为什么会这样),和他同款风扇我尝试了很多次都没法显示到外面,有没有大佬提点下,感谢!
通过nodered进行转换,借助nrchkb插件模拟homekit设备
Device model / 设备型号
dmaker.fan.p8
Component version / 插件版本
No response
HA core version / HA版本
No response
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
Entity attributes / 实体属性
Home Assistant Logs / 系统日志
No response