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

Smooth way to add shade command to home assistant? #43

Open
atze09 opened this issue Jul 1, 2021 · 2 comments
Open

Smooth way to add shade command to home assistant? #43

atze09 opened this issue Jul 1, 2021 · 2 comments

Comments

@atze09
Copy link

atze09 commented Jul 1, 2021

What's the best way to implement the shade command into home assistant config?

Is there a smoother way than this config (mqtt publish)

  • type: button
    tap_action:
    action: call-service
    service: mqtt.publish
    service_data:
    payload: SHADE
    topic: cmd/jarolift/shutter/5
    target: {}
    entity: cover.buro
@stalakerob
Copy link

I'm not using SHADE but since its a cover you better configure it as mqtt cover. See here https://www.home-assistant.io/integrations/cover.mqtt/

That's how I did it:

`cover:

  • platform: mqtt
    name: "Jarolift"
    command_topic: "cmd/jarolift/shutter/0"
    availability_topic: "tele/jarolift/LWT"
    state_topic: "stat/jarolift/shutter/0"
    value_template: >
    {% if value == "100" %}
    open
    {% else %}
    closed
    {% endif %}
    payload_open: "UP"
    payload_close: "DOWN"
    payload_stop: "STOP"
    payload_available: "Online"
    payload_not_available: "Offline"`

@yasars
Copy link

yasars commented Jul 4, 2021

I have instead of payload_stop: "STOP", payload_stop: "SHADE" if you press stop button it goes to shade :)

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

3 participants