mark-bloom / OctoLight_Home-Assistant

Forked OctoLight to support Home Assistant controlled lights instead of GPIO
8 stars 7 forks source link

OctoLight Home Assistant

A simple plugin that adds a button to the navigation bar for toggling a HomeAssistant connected Light.

Code forked from OctoLight by gigibu5 with HA integration based on OctoPrint-PSUControl by kantlivelong

WebUI interface

Setup

Install via the bundled Plugin Manager or manually using this URL:

    https://github.com/mark-bloom/OctoLight_Home-Assistant/archive/master.zip

Alternatively:

Configuration

Curently, you can configure 8 settings, including 4 configuration items:

Operational settings [to be introduced in v0.4]

Settings panel

API

UNTESTED in HA MOD Base API URL : GET http://YOUR_OCTOPRINT_SERVER/api/plugin/octolight?action=ACTION_NAME

This API always returns updated light state in JSON: {state: true}

(if the action parameter not given, the action toggle will be used by default)

Actions

TO DO

Maybe in the distant future: