Skip to content

[Feature Request] Incorporate Enclosure plugin info #85

@tankdeer

Description

@tankdeer

First off, awesome plugin. Thanks.

I, like many, am using the Enclosure plugin to control, in my case, several LEDs controlled by GPIO pins on the pi. I have a couple manually created MQTT lights in Home Assistant that allow me to control them by publishing Gcode commands to octoPrint/hassControl/commands, and it works ok. The problem is, there is no topic to subscribe to to get the state, so the state is always "optimistic", which is not ideal. Additionally, Gcode commands are only processed when connected to the printer, but most of my lights don't rely on a printer connection

I know you've done similar with other plugins, so if it's possible to incorporate the information from Enclosure as well, that would be awesome.

It doesn't necessarily need to have discovery enabled, as I realize there are a lot of different configuration options with Enclosure, so it might not be practical to have lights/fans created automatically, and that's fine. If there's a state topic for each configured GPIO, I would think that might be enough for everybody to configure lights/fans/etc in Home Assistant as needed. (Though I am no expert)

Cheers

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions