select * from data where sn='thermostat0' and pq='relay' order by id desc limit 4
idsntspqvaluesystemts
77768407 thermostat0 relay 0 1750384534 Fri 20 06 2025 03:55:34
77768400 thermostat0 relay 0 1750384513 Fri 20 06 2025 03:55:13
77768398 thermostat0 relay 0 1750384492 Fri 20 06 2025 03:54:52
77768392 thermostat0 relay 0 1750384472 Fri 20 06 2025 03:54:32

Fri Jun 20 03:55:53 2025 by walley