diff --git a/README.md b/README.md index 718f27e..0ee4f95 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,7 @@ CREATE TABLE IF NOT EXISTS BridgeInfo `appVersion` VARCHAR(24), `bridgeType` SMALLINT NOT NULL, `currentTime` DATETIME NOT NULL, + `deviceType` INT NOT NULL, `firmwareVersion` VARCHAR(24), `hardwareId` VARCHAR(24), `name` VARCHAR(255) NOT NULL, @@ -208,6 +209,7 @@ CREATE TABLE IF NOT EXISTS BridgeInfo CREATE TABLE IF NOT EXISTS BridgeList ( `batteryCritical` BOOLEAN NOT NULL, + `mode` INT NOT NULL, `name` SMALLINT NOT NULL, `nukiId` VARCHAR(9) NOT NULL PRIMARY KEY, /*primary key = unique!*/ `state` SMALLINT NOT NULL, @@ -220,6 +222,7 @@ CREATE TABLE IF NOT EXISTS BridgeList CREATE TABLE IF NOT EXISTS BridgeLockState ( `batteryCritical` BOOLEAN NOT NULL, + `mode` INT NOT NULL, `nukiId` VARCHAR(9) NOT NULL PRIMARY KEY, /*primary key = unique!*/ `state` SMALLINT NOT NULL, `stateName` VARCHAR(24) NOT NULL, @@ -565,7 +568,7 @@ https://grafana.com/dashboards/7628/ or https://leyghis.fablabchemnitz.de:8444/M * Bridge provides timestamp but no timezoneOffset → SQL statements were written to use the timezoneOffset of Smartlock instead → works, but dirty * replace TRUNCATE statements with "INSERT ON DUPLICATE KEY UPDATE" to leave old data but import new data * to implement: - * make us of fields `keypadPaired` `lastAction` `doorState` `homekitState` `timezoneId` `accountUserId` + * make us of fields `keypadPaired` `lastAction` `doorState` `homekitState` `timezoneId` `accountUserId` `mode` (Bridge) `deviceType` (Bridge) * build up some check script to make proof of correct count of columns and column order of the csv files * collect data with time history (maybe with triggers): * BridgeFirmwareHistory: BridgeId, date, BridgeFirmware, BridgeWifiFirmware,BridgeAppVersion