cmroche / OctoPrint-HomeAssistant

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

[Bug] Print file uses wrong topic #119

Closed bungee-boy closed 2 months ago

bungee-boy commented 2 months ago

I believe I have found a bug where the 'Print file' sensor uses the wrong MQTT topic.

Based on other sensors, everything shown in HA comes from "octoPrint/hass/#", with the original data coming from "octoPrint/#".

If I am correct, then there is an inconsistency where the "Print file" sensor uses the original data instead of "/hass/"

image

This is a really easy fix... All that needs to be changed is where the HA sensor config is pointing to, the data is already there!

image

bungee-boy commented 2 months ago

Actually there are also some other specific sensors that use the "~/progress/printing" topic, so I guess this isn't a bug and it's like that for some reason that I don't know of... Sorry