-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Yes that should work I do the exact same thing
|
Beta Was this translation helpful? Give feedback.
-
I found it! Obviously, it is necessary to link (navigation_path) to an element that is higher in the SVG file.
########################################################
# Room switches control
########################################################
#################################
# Room switches STROKE control
#################################
- entity: switch.sw_st
tap_action:
service: homeassistant.toggle
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_vh
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/vhod
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_mi
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/michele
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_gr
tap_action:
service: homeassistant.toggle
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_ho
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/hodnik
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_sp
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/spalnica
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_na
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/nathalie
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_di
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/diane
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_je
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/jedilnica
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_sh
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/shramba
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_ku
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/kuhinja
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_ko
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/kopalnica
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
#################################
# Room switches STROKE control
#################################
- entity: switch.sw_st
tap_action:
service: homeassistant.toggle
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_vh
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/vhod
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_mi
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/michele
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_gr
tap_action:
service: homeassistant.toggle
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_ho
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/hodnik
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_sp
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/spalnica
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_na
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/nathalie
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_di
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/diane
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_je
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/jedilnica
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_sh
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/shramba
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_ku
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/kuhinja
state_action:
service: floorplan.class_set
service_data: switch-${entity.state}
- entity: switch.sw_ko
tap_action:
service: homeassistant.toggle
hold_action:
action: navigate
navigation_path: /lovelace-di/kopalnica
state_action:
service: floorplan.class_set
service_data: switch-${entity.state} Now if I hold over the room, it redirects me to the desired lovelace within the Home assistant. |
Beta Was this translation helpful? Give feedback.
-
How does this work, because it is driving me insane!
The image get updated the I change the state, but the link is not applied. |
Beta Was this translation helpful? Give feedback.
I found it!
Obviously, it is necessary to link (navigation_path) to an element that is higher in the SVG file.
I had to fix it in fp.yaml so that it now looks like this: