select * from data where sn='thermostat0' and pq='relay' order by id desc limit 4
idsntspqvaluesystemts
78069828 thermostat0 relay 0 1751965636 Tue 08 07 2025 11:07:16
78069823 thermostat0 relay 0 1751965615 Tue 08 07 2025 11:06:55
78069818 thermostat0 relay 0 1751965595 Tue 08 07 2025 11:06:35
78069814 thermostat0 relay 0 1751965573 Tue 08 07 2025 11:06:13

Tue Jul 8 11:07:28 2025 by walley