Shelly 2.5 MQTT random issues

Hi all,

I’m experiencing random issues with all my shelly’s 2.5 (as roller shutters) working with MQTT.
It just happens sometimes, the issue is that when one of the automations open the rollers, the state of the roller has not changed.
I mean, the automation open the roller, but the state of the roller is still as “closed” (in home assistant and in shelly app).
Sometimes happen with one roller, and the next day with another one…
Does anyone know why this happens?

This is the configuration I’m using in home assistant for every roller:

  • platform: mqtt
    name: “XXX”
    state_topic: “shellies/XXX/roller/0”
    command_topic: “shellies/XXX/roller/0/command”
    position_topic: “shellies/XXX/roller/0/pos”
    set_position_topic: “shellies/XXX/roller/0/command/pos”
    #availability_topic: “shellies/XXX/online”
    payload_available: “true”
    payload_not_available: “false”
    qos: 1
    retain: false
    payload_open: “open”
    payload_close: “close”
    payload_stop: “stop”
    position_open: 100
    position_closed: 0
    optimistic: false

Hi

One of my friends have exactly the same issue without understand why. Did you find the solution at your problem?

Thanks

Hi,

No, unfortunately I’m still with the same issues…
I suppose that it’s a strange problem because nobody in this forum has the solution…

Oh alright. Personnaly I have 4 shelly 2.5 but 0 issue like that :confused:

Hi

My friend has maybe found the issue.
Could you please check if in the original shelly app you have a weird device ( duplicate in the UI as switch 1 and switch 2?) I mean, it’s not really a roller state as only one device.

If it’s the case, you have to remove completely the device and restart all the process to add it into the app and change it as a roller device.

Here, do you have only one device by shelly and recognized as roller?
Its my screen but you can see I have only one line by device and its a roller.

Him, before for 2 shelly on 6 has 2 lines by bad shelly recognized as switch.

So, After to remove all of it and retry to resync them, for the moment, everything works well for him.

Too early to say its a victory but it’s like a good begin for the moment :slight_smile:

Hi!

Thanks for your suggestions :slight_smile:
Unfortunately it’s not the case, I don’t have duplicate devices in shelly app…
Now I’m trying with the official shelly integration in HA, but I’m still experiencing the same random issues…
It’s really an strange problem…

Hello.
I have the same issues, but only with the covers, the other Shelly’s I have working with lights work well via mqqt.
I don’t understand what’s happening.

Let’s see if somebody can help us…

Hi - I have just arrived here to find a solution for a quite similar problem - istead of opening a new question I decided to reply to this old one - maybe you have solved your problem meanwhile and could help me to solve my problem, too?

I have a shelly 2.5 connected to my roller shutter using MQTT. Here is my code from configuration.yaml.

cover:
  - platform: mqtt
    name: Jalousie1
    unique_id: cover_Jalousie1
    device_class: shutter
    state_topic: shellies/jalousie/1/roller/0
    command_topic: shellies/jalousie/1/roller/0/command
    payload_open: "open"
    payload_close: "close"
    payload_stop:
    state_opening: "open"
    state_closing: "close"
    optimistic: true
    retain: false
    qos: 2

My automation works fine as I can see in the homeassistant logs- and also the hardware switches work as expected. But randomly the roller just opens at night without a reason. The automation did not do that (as I can see in the logs) and the hardware buttons did not open it as well. So there ist some message from the broker I guess that forces the shelly to open. The same thing happens when I restart the shelly from web interface - I guess that there is something like a startup message from the MQTT broker that forces the shelly to act - although I set the shellies ‘Power On Parameter’ to STOP.

So hopefully someone can help me with that - my wife does not find it funny anymore when our shutters open randomly at night - and so I am really in trouble :wink:

Thanks in advance,
Uwe

Hello.
Try this example:

cover:

  • platform: mqtt
    name: “Gatas Cover”
    state_topic: “shellies/shellyswitch25-40F5202A2C3A/roller/0”
    command_topic: “shellies/shellyswitch25-40F5202A2C3A/roller/0/command”
    position_topic: “shellies/shellyswitch25-40F5202A2C3A/roller/0/pos”
    set_position_topic: “shellies/shellyswitch25-40F5202A2C3A/roller/0/command/pos”
    #availability_topic: “shellies/shellyswitch25-40F5202A2C3A/online”
    payload_available: “true”
    payload_not_available: “false”
    qos: 1
    retain: false
    payload_open: “open”
    payload_close: “closed”
    payload_stop: “stoped”
    position_open: 100
    position_closed: 0
    optimistic: false

And on the shelly APP disable the foto options.
My issues stopped for along time
Hope can help you and your wife.