queries
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-11-11 20:02:12 +01:00
parent f8bcfe4d25
commit 1870089942
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -52,6 +52,13 @@ create or replace view temperature_v as
where application = 'Zigbee2MQTT Hottis Eupenstr.' and where application = 'Zigbee2MQTT Hottis Eupenstr.' and
attributes->>'DeviceModel' in ('WSDCGQ11LM', 'WSDCGQ01LM'); attributes->>'DeviceModel' in ('WSDCGQ11LM', 'WSDCGQ01LM');
create or replace view voltage_v as
select time,
cast(values->'Voltage'->>'value' as float) / 1000 as voltage,
device
from measurements
where application = 'Zigbee2MQTT Hottis Eupenstr.' and
attributes->>'DeviceModel' in ('WSDCGQ11LM', 'WSDCGQ01LM');
create or replace view temperature2_v as create or replace view temperature2_v as
select time, select time,