Désolé, mais je reviens car malgré avoir réussi le tuto, et avoir des fichiers SQL générés (only new et previous), je suis toujours a 0 dans domoticz
Code : Tout sélectionner
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-01'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '35.4', '43.599', '2018-02-01' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-02'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '30.5', '43.904', '2018-02-02' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-03'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '58.1', '44.485', '2018-02-03' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-04'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '41.9', '44.904', '2018-02-04' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-05'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '46.4', '45.368', '2018-02-05' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-06'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '56', '45.928', '2018-02-06' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-07'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '40.9', '46.337', '2018-02-07' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-08'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '51.5', '46.852', '2018-02-08' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-09'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '35.5', '47.207', '2018-02-09' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-10'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '50.1', '47.708', '2018-02-10' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-11'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '43.2', '48.14', '2018-02-11' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-12'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '61.3', '48.753', '2018-02-12' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-13'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '57', '49.323', '2018-02-13' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-14'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '54.9', '49.872', '2018-02-14' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-15'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '7.4', '49.946', '2018-02-15' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-16'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '0', '49.946', '2018-02-16' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-17'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '20.4', '50.15', '2018-02-17' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-18'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '48.2', '50.632', '2018-02-18' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-19'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '54.8', '51.18', '2018-02-19' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-20'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '41', '51.59', '2018-02-20' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-21'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '41.7', '52.007', '2018-02-21' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-22'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '45.3', '52.46', '2018-02-22' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-23'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '37.1', '52.831', '2018-02-23' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-24'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '53.8', '53.369', '2018-02-24' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-25'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '36.9', '53.738', '2018-02-25' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-26'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '38.2', '54.12', '2018-02-26' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-27'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '36.5', '54.485', '2018-02-27' );
DELETE FROM `Meter_Calendar` WHERE devicerowid=2 and date = '2018-02-28'; INSERT INTO `Meter_Calendar` (DeviceRowID,Value,Counter,Date) VALUES ('2', '40.2', '54.887', '2018-02-28' );