Jarolift_MQTT icon indicating copy to clipboard operation
Jarolift_MQTT copied to clipboard

Smooth way to add shade command to home assistant?

Open atze09 opened this issue 3 years ago • 2 comments

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

atze09 avatar Jul 01 '21 14:07 atze09

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"`

stalakerob avatar Jul 01 '21 14:07 stalakerob

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

yasars avatar Jul 04 '21 16:07 yasars