upgrade to ha-mqtt 1.3.0 and add included diagnostic sensors
This commit is contained in:
parent
e3011e2efd
commit
400acd8d5f
@ -3,6 +3,7 @@
|
|||||||
#define SENSOR_ID "bme280"
|
#define SENSOR_ID "bme280"
|
||||||
|
|
||||||
#include "ha.h"
|
#include "ha.h"
|
||||||
|
#include "esp.h"
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
|
|
||||||
using namespace Ha;
|
using namespace Ha;
|
||||||
@ -74,6 +75,8 @@ namespace Devices {
|
|||||||
.addSecondary(ledMqtt)
|
.addSecondary(ledMqtt)
|
||||||
.addConfiguration(brightnessMqtt)
|
.addConfiguration(brightnessMqtt)
|
||||||
.addConfiguration(hourFormatMqtt)
|
.addConfiguration(hourFormatMqtt)
|
||||||
|
.addPreconfigured(HaESP::heapStats)
|
||||||
|
.addPreconfigured(HaESP::restartInfo)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
void publishBme280() {
|
void publishBme280() {
|
||||||
|
|||||||
@ -23,7 +23,7 @@ lib_deps =
|
|||||||
sparkfun/SparkFun BME280@^2.0.9
|
sparkfun/SparkFun BME280@^2.0.9
|
||||||
arkhipenko/TaskScheduler@^3.8.5
|
arkhipenko/TaskScheduler@^3.8.5
|
||||||
https://git.hodos.ro/libraries/wifi.git@^2.0.0
|
https://git.hodos.ro/libraries/wifi.git@^2.0.0
|
||||||
https://git.hodos.ro/libraries/ha-mqtt.git@^1.1.0
|
https://git.hodos.ro/libraries/ha-mqtt.git@^1.3.0
|
||||||
build_flags = -D WIFI_ALWAYS_ON=1 -D ADAFRUIT_BME=1
|
build_flags = -D WIFI_ALWAYS_ON=1 -D ADAFRUIT_BME=1
|
||||||
|
|
||||||
[env:laptop_home]
|
[env:laptop_home]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user