# Octoprint PSU Control

**URL:** <https://community.homey.app/t/octoprint-psu-control/52020>\
**Category:** Devices\
**Tags:** z-wave, devices, flow\
**Created:** [September 21, 2021, 11:51am UTC](https://community.homey.app/t/octoprint-psu-control/52020 "2021-09-21T11:51:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dima/32/16639_2.png) [@dima](https://community.homey.app/u/dima)\
**Post date:** [September 21, 2021, 11:51am UTC](https://community.homey.app/t/octoprint-psu-control/52020/1 "2021-09-21T11:51:13Z")

</div>

Hi

Do you happen to know a way to make the Octoprint plugin “PSU Control” work with Homey?

I have a Fibaro Z-Wave switch hooked to the 3D Printer. I would love if I could send a command from the Octoprint Web-UI to Homey in order to control the power switch (or even other stuff).

There are even plugins for the “PSU Control” plugin covering compatibility with TPlink, Tasmota, Shelly, HomeAssistant etc. but Homey is unfortunately missing.

Do you think there might be another workaround to make this happen? Maybe sending HTTP calls from the Octoprint Web-UI to Homey?

thanks for the tips!

(here are the available plugins: [Plugins by Tag](https://plugins.octoprint.org/by_tag/#tag-psucontrol-subplugin))

---

<div class="post-metadata">

**Author:** ![dima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dima/32/16639_2.png) [@dima](https://community.homey.app/u/dima)\
**Post date:** [September 21, 2021, 1:23pm UTC](https://community.homey.app/t/octoprint-psu-control/52020/2 "2021-09-21T13:23:22Z")

</div>

OK I got it.

1. Install _HTTP Request flow cards_ on your Homey: [HTTP request flow cards App für Homey | Homey](https://homey.app/de-ch/app/com.internet/HTTP-request-flow-cards/)

2. Disable authentication in the App settings:

 ![markup_9028 (2)_LI](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/55be072309c2845620b43f8236d81c8161f07849.jpeg)

(I actually overlooked this step on the first try, it costed me a lot of time)

1. Create flows for turning the printer on and off:

 ![Screenshot 2021-09-21 144939](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/ae010c03c8865bf9a73f796ba860ea7ebe2551c0.jpeg) ![Screenshot 2021-09-21 144927](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f06ac82583f7ea003ecb6d7a28de53112102f3f3.jpeg)

1. Install Octoprint PSU control if you haven’t already: [PSU Control](https://plugins.octoprint.org/plugins/psucontrol/)

2. In the Octoprint Web-UI, go to PSU control settings, use the control method “System Command” and use following commands:

On System Command: `curl -X GET http://HOMEY.IP.ADDRESS.HERE/api/app/com.internet/printer_on`  
OFF System Command: `curl -X GET http://HOMEY.IP.ADDRESS.HERE/api/app/com.internet/printer_off`

 ![Screenshot 2021-09-21 145015](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/36148682fb20e14d17859a09f89a7422cbe29c96.jpeg)

1. Hit save and test. ✌
