Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML code #34

Open
82timo opened this issue Jun 11, 2024 · 2 comments
Open

YAML code #34

82timo opened this issue Jun 11, 2024 · 2 comments

Comments

@82timo
Copy link

82timo commented Jun 11, 2024

Hi,
I dont get this card working completely.
The buttons (up, down and stop) are working fine, but the preset button doesn't work.
This is the card example code:

type: "custom:shutter-row"
entity: cover.cover_entity
name: Friendly name
invert_position: true
state_color: true
preset_buttons:
- name: Open
icon: mdi:window-shutter-open
tap_action:
action: call-service
service: cover.set_cover_position
data:
entity_id: cover.cover_entity
position: 100

My entity of the shutter is called "cover.18sleepingroom"

I changed the YAML to this:

type: "custom:shutter-row"
entity: cover.18sleepingroom
name: Shutter sleepingroom
invert_position: true
state_color: true
preset_buttons:
- name: Open
icon: mdi:window-shutter-open
tap_action:
action: call-service
service: cover.set_cover_position
data:
entity_id: cover.18sleepingroom
position: 100

What is wrong? service?

@berrywhite96
Copy link
Owner

The entity_id doesn't go under data, It's under target.
Just use the HA dashboard editor to create your card configs, even if you are using dashboard in yaml mode.

@82timo
Copy link
Author

82timo commented Jun 14, 2024

Thank you, it works now. I used HA dashboard editor.

Is there an opportunity to change the theme of this card?
And another wish: is it possible to deactivate the yellow icon left to "Shutter" in this picture?

https://user-images.githubusercontent.com/24818127/192158290-8d833fa2-912d-4232-996a-ef4ff99f660c.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants