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

toggle a aircondition switch #85

Open
pit2023 opened this issue Dec 7, 2023 · 0 comments
Open

toggle a aircondition switch #85

pit2023 opened this issue Dec 7, 2023 · 0 comments

Comments

@pit2023
Copy link

pit2023 commented Dec 7, 2023

hello maybe you can help me

you wrote this code for toggle a lamp:
_entities:

  • entity: light.1st_floor_hall_light
    name: 'hall'
    icon: mdi:lightbulb
    tap_action:
    action: call-service
    service: light.toggle
    service_data: { "entity_id" : "light.1st_floor_hall_light" }_

but i want to toggle a switch for my aircondition:
but my code is not working:

- entity: switch.klima_wohnwagen
name: Wohnwagen
icon: mdi:air-conditioner
tap_action:
action: call-service
service: toggle
service_data:
entity_id: switch.klima_wohnwagen

the error is: toggle/undefined required key not provided@data .........

maybe you can find my mistake - thx a lot
kind regards peter

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

1 participant