删掉了带模板的群组还是可以用的
- title: 平面图
icon: 'mdi:floor-plan'
path: floorplan
panel: true
theme: midnight
background: url("/customcards/bg4.jpg") center / cover no-repeat fixed
cards:
- type: 'custom:floorplan-card'
entity: fp_example
image: /local/floorplan.svg
stylesheet: /local/floorplan-card-style.css
groups:
- name: Lights
entities:
- light.bedroom
- light.aisle
- light.livingroom
- light.kitchen
- light.balcony
- light.bathroom
- light.gateway_light_7811dcb229d4
- light.masterbedroom
- light.deputybedroom
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
service: toggle
- name: Media_players
entities:
- media_player.mybraviatv
states:
- state: 'on'
class: 'tv-on'
- state: 'off'
class: 'tv-off'
action:
service: toggle
- name: xiaomi_air_purifier_pro
entities:
- fan.xiaomi_air_purifier_pro
- fan.bathroom
states:
- state: 'on'
class: 'fan-on'
- state: 'off'
class: 'fan-off'
action:
service: toggle
- name: bathroom_fan
entities:
- fan.bathroom
states:
- state: 'on'
class: 'bathroom_fan_on'
- state: 'off'
class: 'bathroom_fan_off'
action:
service: toggle
- name: waterheater
entities:
- switch.waterheater
states:
- state: 'on'
class: 'waterheater-on'
- state: 'off'
class: 'waterheater-off'
action:
service: toggle
- name: Doors
entities:
- binary_sensor.door_window_sensor_158d0001e72cfc
states:
- state: 'off'
class: 'door_closed'
- state: 'on'
class: 'door_open'
- name: door_sensor_deputybedroom
entities:
- binary_sensor.door_sensor_deputybedroom
states:
- state: 'off'
class: 'deputybedroom_door_closed'
- state: 'on'
class: 'deputybedroom_door_open'
- name: door_sensor_masterbedroom
entities:
- binary_sensor.door_sensor_masterbedroom
states:
- state: 'off'
class: 'masterbedroom_door_closed'
- state: 'on'
class: 'masterbedroom_door_open'
- name: door_sensor_bathroom
entities:
- binary_sensor.door_sensor_bathroom
states:
- state: 'off'
class: 'bathroom_door_closed'
- state: 'on'
class: 'bathroom_door_open'
|