This repository contains a service that allows you to integrate Pixie Clock into Home Assistant via MQTT.
First of all, install an adapter on your computer that is connected to Pixie Clock.
make build
make installNext, create configuration file at $HOME/.config/pixie-adapter/config.yaml.
Configuration file should look like this:
mqtt:
host: "your.mqtt.server"
port: 1883
client_id: "PixieClock"
username: ""
password: ""
serial:
port: "/dev/cu.wchusbserial114320" # omit to auto-detect
baud_rate: 28800After that, you can start the background service:
pixie-adapter startService provides the following topics:
homeassistant/light/pixie_clock_light/configβ for Home Assistant discovery.myrt/pixie/light/setβ for setting light state.myrt/pixie/lightβ for getting light state.myrt/pixie/light/availableβ for checking light availability.