FloorPlan and Scenes

Hi All,

I am trying to set/trigger a scene with floorplan and was wondering if anyone out there were able to achieve this?

I have a squuare with ID=scene.tv_time and in the floorplan.yaml file I have this:

- name: Scenes
  entities:
    - scene.tv_time
  action:
    service: scene.turn_on
    entity_id: scene.tv_time

When I click on it, nothing happens and as wondering if anyone can spot the issue?

I do get a popup at the bottom, stating: “Service scene/scene.turn_on called”

Anyone have any ideas?

It may have pasted wrong, but I do know that yaml file are very particular about spaces.

Most appear to indent by 2 spaces for each level.

The syntax is correct and just pasted wrong - and yes, as you say, the YAML format is very particular!

Anyone got scenes working with FloorPlan?

I just edited the post with the correct formatting - kind of at a loss as to how to call a scene from FloorPlan

Just out of curiosity, since I ran into something similar a while back:
Have you tried using homeassistant.turn_on instead of scene.turn_on?

1 Like

@eschumann He shoots, he scores! Thank you very much! Works a treat! When you click on FloorPlan to activate the scene, are you suppose to get a pop-up to ‘Activate’ it or is there a way to bypass the ‘Activate’ popup?

So happy - thank you very much!

For reference to anyone struggling with this:

floorplan.yaml

 - name: Test
   entities:
     - scene.test # <- this is what you defined in your scenes.yaml file called 'test' (see below)
   action:
     action: homeassistant.turn_on

scenes.yaml

- name: Test
  entities:
    switch.wenzhou_tkb_control_system_tz68_onoff_switch_socket_switch_2: on

Easy as that! Thanks yo @eschumann above!

1 Like