mase
April 16, 2019, 9:24pm
1
hi guys,
i´m trying to make a horizontal stack card for my mobile view.
on tap it should call a scene to get my window shutters in a set position. i have the scene and it´s working, however i can´t figure what i have to set in the card.
what i have right now:
type: horizontal-stack
cards:
- entity: scene.window_nach_hause_kommen_david
tap_action:
action: toggle
type: entity-button
however i can´t figure what to use as action to call the scene. could anybody help me out?
EDIT:
another way i tried to fix it:
type: horizontal-stack
cards:
- entity: cover.fenster
tap_action:
action: call-service
service: cover.set_cover_position
data:
entity_id: cover.fenster
position: 50
type: entity-button
looks like “position: 50” is wrong data, at least it gives me: required key not provided @ data[‘position’]
tom_l
April 16, 2019, 11:12pm
2
Please edit and format your post as per the banner at the top of the page.
mase
April 16, 2019, 11:27pm
3
oops, sry. changed. thanks for the heads up!
tom_l
April 17, 2019, 12:01am
4
Try this:
type: horizontal-stack
cards:
- entity: cover.fenster
tap_action:
action: call-service
service: cover.set_cover_position
service_data:
entity_id: cover.fenster
position: 50
type: entity-button
Though from the docs it’s not clear what service data it supports.
mase
April 17, 2019, 7:09am
5
that one worked. thanks!
what i came up with:
type: horizontal-stack
cards:
- entity: scene.window_nach_hause_kommen_david
tap_action:
action: call-service
service: cover.set_cover_position
service_data:
entity_id: group.all_covers
position: 100
type: entity-button
- entity: scene.window_haus_verlassen_david
tap_action:
action: call-service
service: cover.set_cover_position
service_data:
entity_id: group.all_covers
position: 50
type: entity-button
- entity: scene.window_bitte_nicht_storen_david
tap_action:
action: call-service
service: cover.set_cover_position
service_data:
entity_id: group.all_covers
position: 0
type: entity-button