mirror of
https://github.com/alexhopeoconnor/arduino-home-assistant.git
synced 2026-10-22 10:42:10 +10:00
HASensor improvements (#222)
* added support for setting None value in the HASensor * added support for the expire_after property in the HASensor * update readme and docs * added expire_after property in the HABinarySensor * increase default device types limit to 24 on non ATMega328/168 processors * added support for the JSON attributes in the HASensor
This commit is contained in:
@@ -37,5 +37,8 @@ void loop() {
|
||||
unsigned long uptimeValue = millis() / 1000;
|
||||
uptimeSensor.setValue(uptimeValue);
|
||||
lastUpdateAt = millis();
|
||||
|
||||
// you can reset the sensor as follows:
|
||||
// analogSensor.setValue(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user