本帖最后由 yotashop 于 2022-7-26 11:44 编辑
添加条件,类似这样?(只有当风扇打开的时候,显示风扇状态,):
type: picture-elements
image: /local/floorplan/303/floorplan.png
elements:
- type: conditional
conditions:
- entity: fan.vf1_cloud_843504
state: 'on'
elements:
- type: custom:mushroom-fan-card
entity: fan.vf1_cloud_843504
show_percentage_control: false
show_oscillate_control: false
collapsible_controls: false
fill_container: false
icon_animation: true
hide_state: true
tap_action:
action: toggle
name: ' '
style:
top: 66%
left: 12%
然后你改成当天气是某个状态的时候,显示某张图片。
|