Updating to new sending format of diy-sender
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user