change led type to light
This commit is contained in:
parent
8e50f89a72
commit
f7ba499292
@ -29,7 +29,7 @@ namespace Devices {
|
||||
.addSecondary(Builder<PressureSensor>::instance(SENSOR_ID).withValueTemplate("{{ value_json.pressure }}").withPrecision(1).build())
|
||||
.build();
|
||||
|
||||
auto ledMqtt = Builder<Switch>::instance(new Switch{ "Led", "led",
|
||||
auto ledMqtt = Builder<Light>::instance(new Light{ "Led", "led",
|
||||
[](const char* msg) {
|
||||
turnLed(strcmp("ON", msg) == 0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user