upgrade to ha-mqtt v1.4.0
This commit is contained in:
parent
2d1c946bf5
commit
a2e6469903
@ -35,11 +35,11 @@ namespace Devices {
|
||||
}
|
||||
}).withStateTopic().restoreFromState().build();
|
||||
|
||||
auto brightnessMqtt = Builder<Number>::instance(new Number{ "Brightness", "brightness", BRIGHTNESS_MIN, BRIGHTNESS_MAX, BRIGHTNESS_STEP,
|
||||
auto brightnessMqtt = Builder<Number>::instance(new Number{ "Brightness", "brightness",
|
||||
[](const char* msg) {
|
||||
Display::Brightness::set(String{ msg }.toInt());
|
||||
}
|
||||
}).withStateTopic().restoreFromState().build();
|
||||
}).withMin(BRIGHTNESS_MIN).withMax(BRIGHTNESS_MAX).withStep(BRIGHTNESS_STEP).withStateTopic().restoreFromState().build();
|
||||
|
||||
auto hourFormatMqtt = Builder<Switch>::instance(new Switch{ "Format 24h", "format_24h",
|
||||
[](const char* msg) {
|
||||
|
||||
@ -23,7 +23,7 @@ lib_deps =
|
||||
sparkfun/SparkFun BME280@^2.0.9
|
||||
arkhipenko/TaskScheduler@^3.8.5
|
||||
https://git.hodos.ro/libraries/wifi.git@^2.0.0
|
||||
https://git.hodos.ro/libraries/ha-mqtt.git@^1.3.0
|
||||
https://git.hodos.ro/libraries/ha-mqtt.git@^1.4.0
|
||||
build_flags = -D WIFI_ALWAYS_ON=1 -D ADAFRUIT_BME=1
|
||||
|
||||
[env:laptop_home]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user