tasmota device name

This commit is contained in:
Niko Abeler 2023-02-11 21:55:49 +01:00
parent 735828988f
commit 15af5bc2e8
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ func main() {
for d := range tasmota_msgs {
log.Printf(" [ ] %s: %s", d.RoutingKey, d.Body)
parts := strings.Split(d.RoutingKey, ".")
device := strings.Join(parts[1:len(parts)-2], ".")
device := strings.Join(parts[1:len(parts)-1], ".")
// read body as json
var values map[string]interface{}