Skip to content

Commit

Permalink
implement zigbee2mqtt sensors (button devices)
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Jun 17, 2024
1 parent c44b540 commit 79361c4
Show file tree
Hide file tree
Showing 4 changed files with 332 additions and 84 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ func main() {
modelName := p.String("", "modelname", &argparse.Options{Required: false, Help: "modelName to Announce", Default: "go-client"})
vendorName := p.String("", "vendorName", &argparse.Options{Required: false, Help: "vendorName to Announce", Default: "go-client"})

dryMode := p.Flag("", "dryMode", &argparse.Options{Required: false, Help: "only Discover, no adding"})

mqttHost := p.String("", "mqtthost", &argparse.Options{Required: false, Help: "MQTT Host to connect to"})
mqttUsername := p.String("", "mqttusername", &argparse.Options{Required: false, Help: "MQTT Username"})
mqttPassword := p.String("", "mqttpassword", &argparse.Options{Required: false, Help: "MQTT Password"})
Expand Down Expand Up @@ -52,6 +54,7 @@ func main() {
config.port = *port
config.modelName = *modelName
config.vendorName = *vendorName
config.dryMode = *dryMode

config.mqttHost = *mqttHost
config.mqttUsername = *mqttUsername
Expand Down
Loading

0 comments on commit 79361c4

Please sign in to comment.