select * from data where sn='thermostat0' and pq='relay' order by id desc limit 4
idsntspqvaluesystemts
83314878 thermostat0 relay 0 1780745759 Sat 06 06 2026 13:35:59
83314875 thermostat0 relay 0 1780745738 Sat 06 06 2026 13:35:38
83314869 thermostat0 relay 0 1780745717 Sat 06 06 2026 13:35:17
83314864 thermostat0 relay 0 1780745697 Sat 06 06 2026 13:34:57

Sat Jun 6 13:36:07 2026 by walley