Add triggering of actuator on/off state by button press.
This will enable using button on the gateway to switch any controlled attached actuators/relays when pressed. Adds the following macros: - ACTUATOR_ON; 0 or 1, set to the output level of the gpio pin to turn the actuator on. - ACTUATOR_ONOFF_DEFAULT; ACTUATOR_ON or !ACTUATOR_ON, set to the state desired on reset. - ACTUATOR_BUTTON_TRIGGER_LEVEL; 0 or 1, set to the sensing level which to detect a button press to change the actuator state.
This commit is contained in:
1 parent
2ae8f0c0c0
commit
45a0184320
5 files changed
+36
No files matched your search
@@ -925,6 +925,9 @@ build_flags =
|
||||
'-DZsensorGPIOInput="GPIOInput"'
|
||||
'-DACTUATOR_ONOFF_GPIO=12'
|
||||
'-DINPUT_GPIO=0'
|
||||
'-DACTUATOR_ON=0'
|
||||
'-DACTUATOR_ONOFF_DEFAULT=ACTUATOR_ON'
|
||||
'-DACTUATOR_BUTTON_TRIGGER_LEVEL=0'
|
||||
'-DGateway_Name="OpenMQTTGateway_SONOFF_RELAY"'
|
||||
board_build.flash_mode = dout
|
||||
|
||||
@@ -941,6 +944,9 @@ build_flags =
|
||||
'-DZsensorGPIOInput="GPIOInput"'
|
||||
'-DACTUATOR_ONOFF_GPIO=12'
|
||||
'-DINPUT_GPIO=0'
|
||||
'-DACTUATOR_ON=0'
|
||||
'-DACTUATOR_ONOFF_DEFAULT=ACTUATOR_ON'
|
||||
'-DACTUATOR_BUTTON_TRIGGER_LEVEL=0'
|
||||
'-DRF_RECEIVER_GPIO=4'
|
||||
'-DZgatewayRF="RF"'
|
||||
'-DGateway_Name="OpenMQTTGateway_SONOFF_BASIC_RFR3"'
|
||||
|
||||
Reference in new issue
Block a user