kopia lustrzana https://github.com/weetmuts/wmbusmeters
Added test for qsmoke.
rodzic
88b2386311
commit
7b9cde5f74
|
@ -297,3 +297,8 @@ telegram=|2E44B05C82340100021B7A460000002F2F0A6601020AFB1A570602FD971D00002F2F2F
|
|||
telegram=|3C449344957002372337725880226793442304DC0000200C05043900004C0500000000426C9F2CCC080551070000C2086CBE29326CFFFF046D280DB62A|
|
||||
{"media":"heat","meter":"qheat","name":"QHeato","id":"67228058","total_energy_consumption_kwh":390.4,"last_month_date":"2021-09-30 00:00","last_month_energy_consumption_kwh":75.1,"las_year_date":"2020-12-31 00:00","last_year_energy_consumption_kwh":0,"device_date_time":"2021-10-22 13:40","device_error_date":"2127-15-31 00:00","timestamp":"1111-11-11T11:11:11Z"}
|
||||
|QHeato;67228058;390.400000;2021-09-30 00:00;75.100000;1111-11-11 11:11.11
|
||||
|
||||
# Test QSmoke smoke detector this one is not yet understood.
|
||||
telegram=|3E44934486707945211A7801FD08F081027C034955230082026CFFFF81037C034C41230082036CFFFF03FD17000000326CFFFF046D0F0ABC2B02FDAC7E1100|
|
||||
{"media":"smoke detector","meter":"qsmoke","name":"QSmokeo","id":"45797086","status":"WOOT","counter_int":0,"device_date_time":"2021-11-28 10:15","timestamp":"1111-11-11T11:11:11Z"}
|
||||
|QSmokeo;45797086;WOOT;1111-11-11 11:11.11
|
||||
|
|
|
@ -137,6 +137,9 @@ void MeterQSmoke::processContent(Telegram *t)
|
|||
|
||||
string MeterQSmoke::status()
|
||||
{
|
||||
// We do not yet know how to understand the fields!
|
||||
return "WOOT";
|
||||
/*
|
||||
string s;
|
||||
bool smoke = 0;
|
||||
if (smoke)
|
||||
|
@ -154,5 +157,5 @@ string MeterQSmoke::status()
|
|||
s.pop_back();
|
||||
return s;
|
||||
}
|
||||
return "OK";
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -332,6 +332,11 @@ Received telegram from: 37027095
|
|||
type: Heat meter (0x04)
|
||||
ver: 0x23
|
||||
driver: qheat
|
||||
Received telegram from: 45797086
|
||||
manufacturer: (QDS) Qundis, Germany (0x4493)
|
||||
type: Smoke detector (0x1a)
|
||||
ver: 0x21
|
||||
driver: qsmoke
|
||||
EOF
|
||||
|
||||
RES=$($PROG --logfile=$LOGFILE --t1 simulations/simulation_t1.txt 2>&1)
|
||||
|
|
|
@ -63,7 +63,8 @@ METERS="MyWarmWater supercom587 12345678 NOKEY
|
|||
GasMeter unismart 00043094 00000000000000000000000000000000
|
||||
HeatCool hydrocalm3 71727374 NOKEY
|
||||
TempoHygro munia 00013482 NOKEY
|
||||
QHeato qheat 67228058 NOKEY"
|
||||
QHeato qheat 67228058 NOKEY
|
||||
QSmokeo qsmoke 45797086 NOKEY"
|
||||
|
||||
|
||||
cat simulations/simulation_t1.txt | grep '^{' > $TEST/test_expected.txt
|
||||
|
|
Ładowanie…
Reference in New Issue