Shelly 2.5 mqtt integration

Hi, I have a shelly 2.5 and it works with mqtt commands sent via HA (from the setting frontend. but from the lovelace ui or the services settings nothing works, or shows the status. i configured as described in other threads:

cover:

  • platform: mqtt
    name: “test-shutter”
    command_topic: “shellies/shellyswitch25-123456/roller/0/command”
    position_topic: “shellies/shellyswitch25-123456/roller/0/pos”
    set_position_topic: “shellies/shellyswitch25-123456/roller/0/command/pos”
    availability_topic: “shellies/shellyswitch25-123456/online”
    payload_available: “true”
    payload_not_available: “false”
    qos: 0
    retain: false
    payload_open: “open”
    payload_close: “close”
    payload_stop: “stop”
    position_open: 100
    position_closed: 0

automation:
alias: ‘HA shelly test’
trigger:

  • event: start
    platform: homeassistant
    condition: []
    action:
  • data:
    payload: announce
    topic: shellies/command
    service: mqtt.publish

thank you!

You can use this Shellies Discovery Script

Hi, it worked very well thanks!

but as follow up i have 2 doubts, it seems that it detected both as relay and shutter? (I only use shutter)

i configured as :


action:
service: python_script.shellies_discovery
data_template:
id: ‘{{ trigger.payload_json.id }}’
mac: ‘{{ trigger.payload_json.mac }}’
fw_ver: ‘{{ trigger.payload_json.fw_ver }}’
temp_unit: ‘C’
qos: 0
shellyswitch-132456: ‘cover’
shellyswitch-132456: ‘cover’
shellyswitch-132456: ‘cover’
shellyswitch-132456: ‘cover’
InkedInked1_LI

Inked2_LI

any idea how to remove relay part?

also 60ºC seems a bit too hot for the device?

thanks for the help!

1 Like

I don’t understand your issue. You have switches and cover for one Shelly2.5?
60°C is completely normal temperature for Shelly2.5.