sielaff2mqtt

command module
v0.0.0-...-3c16b17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 9 Imported by: 0

README

sielaff2mqtt

A simple go util to publish the state of a sielaff vending machine to mqtt - for integration into a home assistant installation.

Tested and used in the temporärhaus with a Sielaff (Robimat) GF SiLine M on firmware 0.13.6.

Usage

Compilation:

GOARCH=arm GOARM=7 GOOS=linux go build main.go

Run on the vending machine:

MQTT_BROKER=tcp://192.168.0.10:1883 MQTT_USERNAME=matemat MQTT_PASSWORD=mqttpassword ./main
Features

Currently detecting changes in the following dbus signals:

  • signal path=/; interface=com.sielaff.siline.payment; member=vendEnabled (Vending Enabled)
  • signal path=/; interface=com.sielaff.siline.hmi; member=serviceMenuActivated (Service Menu Active)
  • signal path=/MachineControl; interface=com.sielaff.siline.machine.MachineControl; member=sensorValue (Cooling Temperature)

Publishes the following mqtt topics:

  • homeassistant/binary_sensor/matematvend/config - home assistant mqtt discovery
  • sielaff2mqtt/matematvend/availability
  • sielaff2mqtt/matematvend/state
  • homeassistant/binary_sensor/matematservicemenu/config - home assistant mqtt discovery
  • sielaff2mqtt/matematservicemenu/availability
  • sielaff2mqtt/matematservicemenu/state
  • homeassistant/sensor/matematcoolingtemperature/config - home assistant mqtt discovery
  • sielaff2mqtt/matematcoolingtemperature/availability
  • sielaff2mqtt/matematcoolingtemperature/state

You can change sielaff2mqtt by setting the MQTT_PREFIX environment variable or using the --prefix flag.

TODO
  • Add more sensors
  • Make mqtt device name configurable
  • Implement device part of home assistant mqtt discovery
How to add new sensors

Run dbus-monitor --system on your vending machine and look out for the signal lines.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL