Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kraft GitHub release go.dev reference

Kraft reads ModBus data from an energy meter and publishes it as a Hemtjänst device

Currently only supports Kaifa energy meters over serial

Usage

Command line options:

Usage of kraft:
  -device string
        Serial device (default "/dev/ttyUSB0")
  -mqtt.address string
        Address to MQTT endpoint (default "localhost:1883")
  -mqtt.ca string
        Path to CA certificate
  -mqtt.cert string
        Path to Client certificate
  -mqtt.cn string
        Common name of server certificate (usually the hostname)
  -mqtt.key string
        Path to Client certificate key
  -mqtt.password string
        MQTT Password
  -mqtt.tls
        Enable TLS
  -mqtt.tls-insecure
        Disable TLS certificate validation
  -mqtt.username string
        MQTT Username
  -name string
        Name of hemtjanst device (default "House Power Meter")
  -speed int
        Baud rate of serial port (default 2400)
  -topic string
        Topic of hemtjanst device (default "powerMeter/house")
  -topic.announce string
        Announce topic for Hemtjänst (default "announce")
  -topic.discover string
        Discover topic for Hemtjänst (default "discover")
  -topic.leave string
        Leave topic for hemtjänst (default "leave")                                                                                                                                               -device string                                                                                                                                                    Serial device (default "/dev/ttyUSB0")                                                                                                                -mqtt.address string                                                                                                                                              Address to MQTT endpoint (default "localhost:1883")                                                                                                   -mqtt.ca string                                                                                                                                                   Path to CA certificate                                                                                                                                -mqtt.cert string                                                                                                                                                 Path to Client certificate                                                                                                                            -mqtt.cn string                                                                                                                                                   Common name of server certificate (usually the hostname)                                                                                              -mqtt.key string                                                                                                                                                  Path to Client certificate key                                                                                                                        -mqtt.password string                                                                                                                                             MQTT Password                                                                                                                                         -mqtt.tls                                                                                                                                                         Enable TLS                                                                                                                                            -mqtt.tls-insecure                                                                                                                                                Disable TLS certificate validation                                                                                                                    -mqtt.username string                                                                                                                                             MQTT Username                                                                                                                                         -name string                                                                                                                                                      Name of hemtjanst device (default "House Power Meter")                                                                                                -speed int                                                                                                                                                        Baud rate of serial port (default 2400)                                                                                                               -topic string                                                                                                                                                     Topic of hemtjanst device (default "powerMeter/house")                                                                                                -topic.announce string                                                                                                                                            Announce topic for Hemtjänst (default "announce")                                                                                                     -topic.discover string                                                                                                                                            Discover topic for Hemtjänst (default "discover")                                                                                                     -topic.leave string                                                                                                                                               Leave topic for hemtjänst (default "leave")   

About

Reads energy meter MBus output

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages