Creagan
December 27, 2017, 8:44pm
1
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?
carbuthn
(Charles Arbuthnot)
December 27, 2017, 10:28pm
2
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.
Creagan
December 28, 2017, 10:15am
3
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?
Creagan
December 28, 2017, 1:40pm
4
I just edited the post with the correct formatting - kind of at a loss as to how to call a scene from FloorPlan
eschumann
(Erik Schumann)
December 28, 2017, 2:37pm
5
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
Creagan
December 28, 2017, 3:02pm
6
@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!
Creagan
December 28, 2017, 3:08pm
7
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