diff --git a/migration/migrate-level.py b/migration/migrate-level.py index 84cd70f..77d6d25 100644 --- a/migration/migrate-level.py +++ b/migration/migrate-level.py @@ -22,7 +22,7 @@ try: destTime = timestamp destApplication = "de-hottis-level-monitoring" destDevice = "eui-a84041a2c18341d6" - destAttributes = '{"ApplicationId":"de-hottis-level-monitoring", "DeviceType":"dragino-ldds75", "Hint": "Migrated"}' + destAttributes = '{"ApplicationId":"de-hottis-level-monitoring", "DeviceType":"dragino-ldds75", "Status":"' + status + '","Hint": "Migrated"}' destValues = '{"Battery":{"unit":"V","label":"Battery","value":' + str(battery) + ',"variable":"Voltage"}, "Distance":{"unit":"mm","label":"Distance","variable":"Level","value":' + str(rawLevel) + '}, "CorrectedDistance":{"unit":"mm", "label":"CorrectedDistance", "variable":"Level","value":' + str(level) + '}}' logger.info(f"{destTime=}, {destApplication=}, {destDevice=}, {destAttributes=}, {destValues=}")