Add tasmota detection (#847)

This commit is contained in:
Markus Thierolf 2021-04-08 10:44:18 +02:00 • committed by GitHub
parent fa7e712bfd
commit 1b3bf5742c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,7 @@ const (
taskBattery = "battery"
taskMeter = "meter"
taskFronius = "fronius"
taskTasmota = "tasmota"
)
func init() {
@ -230,6 +231,16 @@ func init() {
},
})
taskList.Add(Task{
ID: taskTasmota,
Type: "http",
Depends: TaskTCP80,
Config: map[string]interface{}{
"path": "//cm?cmnd=Module",
"jq": ".Module",
},
})
// taskList.Add(Task{
// ID: "volkszähler",
// Type: "http",