I have a multi floor floorplan where the 3 floor buttons change the visibility of each level. I had it all working, haven’t touched in a couple weeks so I’m not sure the last thing I change. Now the floor buttons do not function, when I hover the mouse over the cursor doesn’t change, and they do not function. There are no errors in the debug. I’ve tried for hours now to figure out what i broke. I even tried going back to the simple rectangle buttons from the example.
The startup action seems to be working as it changes buttons 2 and 3 to red.
The CSS seems to be working on the buttons as when it initial loads it changes the button text to white. Each floor button has a red object and a green object to show which floor is active.
the room at the top right has an overlay for a button and that is working fine, its just the floor buttons.
here is my yaml
title: OBX Floorplan
views:
- title: OBX Floorplan
path: floorplan
panel: true
type: panel
theme: Google Dark Theme
badges: []
cards:
- config:
log_level: debug
defaults:
hover_action: hover-info
tap_action: more-info
image: /local/floorplan/multi_floor/obx_floorplan_ha_r4.svg
cache: false
startup_action:
- service: floorplan.class_set
service_data:
element: ground_floor
class: layer-visible
- service: floorplan.class_set
service_data:
elements:
- first_floor
class: layer-hidden
- service: floorplan.class_set
service_data:
elements:
- second_floor
class: layer-hidden
- service: floorplan.class_set
service_data:
elements:
- green-button-1
- red-button-2
- red-button-3
class: button-on
- service: floorplan.class_set
service_data:
elements:
- green-button-2
- green-button-3
class: button-off
rules:
- entity: switch.bed3_main_light
element: bed3-main-overlay
tap_action: toggle
state_action:
action: call-service
service: floorplan.class_set
service_data: entitystate-${entity.state}
- entity: switch.bed3_main_light
element: bed3-main-lights
tap_action: toggle
state_action:
action: call-service
service: floorplan.class_set
service_data: light-${entity.state}
- entity: switch.bed3_fan
element: pwdr-fan-blades
tap_action: toggle
state_action:
- service: floorplan.class_set
service_data:
class: bathfan-${entity.state}
- entity: switch.bed3_fan
element: pwdr-fan
tap_action: toggle
state_action:
- service: floorplan.class_set
service_data:
class: '${(entity.state === "on") ? "spinning" : ""}'
- element: ground-floor-button
tap_action:
- service: floorplan.class_set
service_data:
element: ground_floor
class: layer-visible
- service: floorplan.class_set
service_data:
elements:
- first_floor
- second_floor
class: layer-hidden
- service: floorplan.class_set
service_data:
elements:
- green-button-1
class: button-on
- service: floorplan.class_set
service_data:
elements:
- green-button-2
- green-button-3
class: button-off
- element: first-floor-button
tap_action:
- service: floorplan.class_set
service_data:
element: first_floor
class: layer-visible
- service: floorplan.class_set
service_data:
elements:
- ground_floor
- second_floor
class: layer-hidden
- service: floorplan.class_set
service_data:
elements:
- green-button-2
- red-button-1
class: button-on
- service: floorplan.class_set
service_data:
elements:
- green-button-1
- green-button-3
class: button-off
- element: second-floor-button
tap_action:
- service: floorplan.class_set
service_data:
element: second_floor
class: layer-visible
- service: floorplan.class_set
service_data:
elements:
- first_floor
- ground_floor
class: layer-hidden
- service: floorplan.class_set
service_data:
elements:
- green-button-1
- green-button-2
class: button-off
- service: floorplan.class_set
service_data:
elements:
- green-button-3
class: button-on
stylesheet:
location: /local/floorplan/multi_floor/obx_multi_floor.css
cache: false
full_height: true
type: custom:floorplan-card
- title: Sample Entities
path: sample-entities
icon: ''
badges: []
cards:
- type: entities
entities:
- entity: switch.bed3_main_light
name: Office Light (switch.office_light)
- entity: switch.bed3_fan
name: Office Fan (switch.office_fan)
title: Test Entities
state_color: true
my SVG