mammuth / ha-linux-sensors

A go program that sends sensor data from Linux machines to Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ha-linux-sensors

A go program that sends sensor data from Linux machines to Home Assistant via MQTT (WIP)

Currently supported sensors:

  • Webcam enabled (eg. update ha-linux-sensors/<hostname>/webcam:on)

image

Usage

Clone and build it with go build (or download a potentially outdated binary from here)

$ ./ha-linux-sensors -h
Usage of ./ha-linux-sensors:
  -interval int
    	Scan interval in seconds (default 10)
  -mqttBroker string
    	URI of the MQTT broker, eg. tcp://broker.hivemq.com:1883
  -mqttPassword string
    	Password for the mqtt connection
  -mqttUser string
    	Username for the mqtt connection

You can then add the command to your startup tools.

At the Home Assistant side, you probably want to create a MQTT sensor.

About

A go program that sends sensor data from Linux machines to Home Assistant

License:MIT License


Languages

Language:Go 100.0%