Payload is not supported (e.g. open, closed, opening, closing, stopped): stop

dear all,

I’ve a lot of message like the followin in my log:

2021-05-07 21:45:02 WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): stop

2021-05-07 21:45:05 WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): stop

2021-05-07 21:45:05 WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): stop

2021-05-07 21:45:08 WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): stop

following a sample of my cover config:

  - platform: mqtt
    name: "Tapparella"
    unique_id: tapparella_camera
    state_topic: "shellies/shellyswitch25-F40ADC/roller/0"
    command_topic: "shellies/shellyswitch25-F40ADC/roller/0/command"
    position_topic: "shellies/shellyswitch25-F40ADC/roller/0/pos"
    set_position_topic: "shellies/shellyswitch25-F40ADC/roller/0/command/pos"
    availability_topic: "shellies/shellyswitch25-F40ADC/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

anyone can give me ant suggestion?

thanks in advance
regards
Stefano

You have defined the payloads for the command topic but not the state topic. See this option and the ones below it: https://www.home-assistant.io/integrations/cover.mqtt/#state_closed

1 Like

Hi
same warning here.
Logger: homeassistant.components.mqtt.cover
Source: components/mqtt/cover.py:328
Integration: MQTT (documentation, issues)
First occurred: 9:49:41 (1 occurrences)
Last logged: 9:49:41

Payload is not supported (e.g. open, closed, opening, closing, stopped): {“Time”:"2021-05-…

My configuration is :

cover:
platform: mqtt
name: “Soffitta”
device_class: shutter
availability_topic: “tele/Lucernario/LWT”
payload_available: “Online”
payload_not_available: “Offline”
command_topic: “cmnd/Lucernario/Backlog”
payload_open: “ShutterOpen1”
payload_close: “ShutterClose1”
payload_stop: “ShutterStop1”
state_open: “open”
state_opening: “opening”
state_closed: “closed”
state_closing: “closing”
state_stopped: “stepped”
set_position_topic: ‘cmnd/Lucernario/ShutterPosition1’
position_topic: “stat/Lucernario/RESULT”
position_open: 100
position_closed: 0
position_template: >
{% if (‘Shutter1’ in value_json) and (‘Position’ in value_json.Shutter1) %}
{{ value_json.Shutter1.Position }}
{% else %}
{% if is_state(‘cover.tappatest’, ‘unknown’) %}
50
{% else %}
{{ state_attr(‘cover.tappatest’,‘current_position’) }}
{% endif %}
{% endif %}
retain: false
optimistic: false
qos: 1

Anyway all seems work fine but I have annoying to see that warning on log.
Any ideas for fix…Thanks in advance.

Did you misspell “stopped”?

1 Like

Thanks for your reply…I need some glasses…:slight_smile: I have corrected “stopped”
unfortunately the warning come again.

Can you copy and paste the full error text?

My warnings on cover Integration

Logger: homeassistant.components.mqtt.cover
Source: components/mqtt/cover.py:368
Integration: MQTT (documentation, issues)
First occurred: 10:21:26 (4 occurrences)
Last logged: 10:21:27

Payload ‘None’ is not numeric

Logger: homeassistant.components.mqtt.cover
Source: components/mqtt/cover.py:328
Integration: MQTT (documentation, issues)
First occurred: 10:21:26 (2 occurrences)
Last logged: 10:21:27

Payload is not supported (e.g. open, closed, opening, closing, stopped): {“Time”:“2021-05-08T10:21:27”,“Uptime”:“5T23:54:08”,“UptimeSec”:518048,“Heap”:25,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:19,“POWER1”:“ON”,“POWER2”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“Enlafra”,“BSSId”:“38:10:D5:BB:46:7E”,“Channel”:11,“RSSI”:50,“Signal”:-75,“LinkCount”:14,“Downtime”:“0T00:00:35”}}
Payload is not supported (e.g. open, closed, opening, closing, stopped): {“Time”:“2021-05-08T10:21:27”,“Uptime”:“5T23:54:08”,“UptimeSec”:518048,“Heap”:25,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:22,“MqttCount”:19,“POWER1”:“OFF”,“POWER2”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“Enlafra”,“BSSId”:“38:10:D5:BB:46:7E”,“Channel”:11,“RSSI”:50,“Signal”:-75,“LinkCount”:14,“Downtime”:“0T00:00:35”}}

It looks like the topic you are using for state messages is also receiving this message from your device:

{“Time”:“2021-05-08T10:21:27”,“Uptime”:“5T23:54:08”,“UptimeSec”:518048,“Heap”:25,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:19,“POWER1”:“ON”,“POWER2”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“Enlafra”,“BSSId”:“38:10:D5:BB:46:7E”,“Channel”:11,“RSSI”:50,“Signal”:-75,“LinkCount”:14,“Downtime”:“0T00:00:35”}}

If your cover is working as expected (start/stop/open/close/…ect) you have three choices,

  1. ignore the warning.
  2. develop templates to ignore that particular message.
  3. pick a better state topic.
1 Like

Hi, thanks for suggestion, but probably I’m loosing somethings, I’ve changed my config, here the new one:

  - platform: mqtt
    name: "Tapparella Cucina"
    unique_id: tapparella_cucina
    state_topic: "shellies/shellyswitch25-C4B6A1/roller/0"
    command_topic: "shellies/shellyswitch25-C4B6A1/roller/0/command"
    position_topic: "shellies/shellyswitch25-C4B6A1/roller/0/pos"
    set_position_topic: "shellies/shellyswitch25-C4B6A1/roller/0/command/pos"
    availability_topic: "shellies/shellyswitch25-C4B6A1/online"
    payload_available: "true"
    payload_not_available: "false"
    state_open: "open"
    state_opening: "opening"
    state_closed: "closed"
    state_closing: "closing"
    state_stopped: "stopped"
    qos: 1
    retain: false
    payload_open: "open"
    payload_close: "close"
    payload_stop: "stop"
    position_open: 100
    position_closed: 0
    optimistic: false

but the warning in the log file still be …

Any suggestion? … MQTT deice are Shelly 2.5.

Thanks again, regards
Stefano

1 Like

Yeh I can try some different templates or ignore the warning.
Fortunately the cover works great, this message isn’t a problem.
thanks again

Hi, had the same problem, since updated to latest home assistant version. You’re almost there, try these state commands:

state_open: "open"
state_opening: "opening"
state_closed: "close"
state_closing: "closing"
state_stopped: "stop"

pay attention to the difference “stopped, closed” and “stop, close”. My warnings are now gone.

1 Like

Thanks for your suggestion, in the meanwhile a did a simplification of the MQTT definition, now it’s like:

  - platform: mqtt
    name: "Tapparella Cucina"
    unique_id: tapparella_cucina
    command_topic: "shellies/shellyswitch25-C4B6A1/roller/0/command"
    position_topic: "shellies/shellyswitch25-C4B6A1/roller/0/pos"
    set_position_topic: "shellies/shellyswitch25-C4B6A1/roller/0/command/pos"
    availability_topic: "shellies/shellyswitch25-C4B6A1/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

after doing this, warning in log disappear.

thanks to all

Regards
Stefano

1 Like