Updating to new sending format of diy-sender

This commit is contained in:
2026-01-08 21:26:05 +00:00
parent 5b4340fab2
commit d1c1f63cb9
3 changed files with 125 additions and 118 deletions

View File

@@ -19,6 +19,7 @@ class Sensor(Base):
last_rain_value = Column(Float, default=0.0) # Last reported rain value (for reset detection)
node_id = Column(Integer, nullable=True) # For pool sensors: the nodeId (1, 2, etc.) that generates mqtt_id
sensor_type = Column(String(50), nullable=True) # Sensor type: 'BME280', 'DS18B20', 'Bresser-6in1', etc.
last_contact = Column(DateTime, default=lambda: datetime.now(timezone.utc), nullable=True) # Last transmission received from sensor
# Define the TemperatureInside table
class TemperatureInside(Base):