Enable to keep actuator on off state in case of restart (#1334)
and publish status as a json when triggering actuator on off through a button
This commit is contained in:
1 parent
66588149a8
commit
c58e765253
3 files changed
+15
-6
No files matched your search
+2
-2
@@ -723,8 +723,8 @@ void setup() {
|
||||
delay(1500);
|
||||
|
||||
#ifdef ZactuatorONOFF
|
||||
pinMode(ACTUATOR_ONOFF_GPIO, OUTPUT);
|
||||
digitalWrite(ACTUATOR_ONOFF_GPIO, ACTUATOR_ONOFF_DEFAULT);
|
||||
setupONOFF();
|
||||
modules.add(ZactuatorONOFF);
|
||||
#endif
|
||||
#ifdef ZsensorBME280
|
||||
setupZsensorBME280();
|
||||
|
||||
Reference in new issue
Block a user