add hottis threeway thermometer
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2024-07-12 11:16:37 +02:00
parent 7a350e0bc7
commit 72757b5ae7
3 changed files with 78 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import (
"udi/handlers/ttn/models/draginoLsn50"
"udi/handlers/ttn/models/rawPayloadPrinter"
"udi/handlers/ttn/models/hottisScd30"
"udi/handlers/ttn/models/hottisThreeWayThermometer"
"udi/database"
)
@ -152,6 +153,8 @@ func (self *TTNHandler) Handle(message handler.MessageT) {
parser = rawPayloadPrinter.Parse
case "hottis-scd30":
parser = hottisScd30.Parse
case "hottis-threeway-thermometer":
parser = hottisThreeWayThermometer.Parse
default:
self.Lost(fmt.Sprintf("No parser found for %s", device.DeviceType.ModelIdentifier), nil, message)
return