167
Home Assistant 2023.9: New climate entity dialogs, lots of tile features, and template sensors from the UI!
(www.home-assistant.io)
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
For my printer I use a Sonoff S31 flashed with tasmota. I then set it so it can't be turned off remotely but can be turned on. That way I get the benefit of being able to remote start a print but not being able to accidentally turn it off.
I like your solution, quite clever! But in my instance I actually want it to turn off once the print is over. I don't remember the details but I think it's set up so it will turn off after the hot end has cooled down for a few minutes, it's controlled by a plug-in for Octoprint.