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

How to specify Service Data #12

Closed
rklueber opened this issue Feb 15, 2021 · 2 comments
Closed

How to specify Service Data #12

rklueber opened this issue Feb 15, 2021 · 2 comments

Comments

@rklueber
Copy link

I am not sure if I get the full concept. Yet. Toggling a light or turning it on/off works.

I miss the possibility to specify service data for a more complex service. Think of climate and set_preset_mode. I would like to specify the mode like
{ "entity_id": "climate.temperatur_arbeiten", "preset_mode": "comfort" }

Am I missing something?

@cgiesche
Copy link
Owner

Hi,

it is currently not possible to add payload to a service call but I would like to add this option. Unfortunatelly i do not know what is needed exactly. An easy option would be to allow to enter a static service call payload that will be sent every time the button is pressed.

If there is a need to have "dynamic" parts inside the payload (for example values from the current state), things would quickly get more complicated.

@cgiesche
Copy link
Owner

New issue for static payload: #13

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