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:
Florian authored and GitHub committed 2022-11-28 20:28:40 -06:00
1 parent 66588149a8
commit c58e765253
3 files changed
+15 -6

No files matched your search

+2 -2
View File
@@ -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();