Skip to content

OctoPrint MQTT is disconnected after restart of Home Assistant #151

Description

@mspnr
  • I have pretty standard settings in MQTT plugin, nothing special. See screenshots below.
  • In Home Assistant I have some manual sensors
  • After restart if Home Assistant they become unknown
  • By restarting OctoPrint connection restores and sensors display usual values
  • How to restore connection automatically without restart of OctoPrint?

Example of Home Assistant sensor

mqtt:
  sensor:
    - state_topic: "octoPrint/event/PrinterStateChanged"
      value_template: "{{ value_json.state_string }}"
      unique_id: prusa_mk3_state
      name: "State"
MQTT settings: Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions