xperiments-in / xtouch

Other
581 stars 55 forks source link

Expose chamber temperature to MQTT #32

Closed gillesguillemin closed 7 months ago

gillesguillemin commented 8 months ago

My understanding is that xtouch uses MQTT under the bonnet to access and control the printer.

Would it be possible to expose the chamber's temperature (when using a DS18B20 sensor) to MQTT so it could be accessed by Home Assistant, so it could be automated?

This is all assuming this is not already possible somehow (in which case I'm curious to know how).

Alternatively, could it be possible to implement some sort of chamber temperature control by tying the chamber fan to the sensor's temperature?

Thanks (and great work btw)!

xperiments commented 8 months ago

That's have been already tested. It works but not all... Because actually the printer is sending back a value of 5. Need to check this in more detail...

sheggy012 commented 7 months ago

When you talk about the fact that not everything works, do you mean that you can already get to the chamber temperature but not the printers temp? The chamber temp comes from an external sensor and should have nothing to do with the printer, right? Is it somehow possible to tap into this temperature at the moment? Then I wouldn't have to keep running to the printer to check the chamber temperature during preheating.

xperiments commented 7 months ago

Yes, but the thing is p1x series report a 5deg of chamber temp, as they don't have it. So sending the correct values to the BBS will work but time to time values will read 5deg

sheggy012 commented 7 months ago

Now I get it. I thought I could connect directly to the xtouch via mqtt and pick up the value there. But the xtouch uses the MQTT Service on the Bambu and has no own mqtt instance.

xperiments commented 7 months ago

I will close this ATM. As is a little hack to put it to work. Also values are not consistent