cmroche / OctoPrint-HomeAssistant

Home Assistant plugin for OctoPrint, enabling MQTT discovery of you device and sensors
110 stars 18 forks source link

Add ability to disable/enable the added switches/buttons #94

Open PartemImperium opened 2 years ago

PartemImperium commented 2 years ago

In addition to adding HomeAssistant discovery to the base MQTT plugin's sensors it also adds some buttons/switches/actions. https://github.com/cmroche/OctoPrint-HomeAssistant/blob/de9529c0deb54ade0ecad3ec4aa660c5364e007c/octoprint_homeassistant/__init__.py#L659-L727 It would be nice if like the base MQTT plugin you can disable/enable topics.

EDIT: I didnt know links to code would show the code inline so formatted better knowing that.