Merge mega and fix merge conflict

This commit is contained in:
Ton Huisman
2024-12-01 22:27:35 +01:00
6 changed files with 51 additions and 16 deletions
+15 -6
View File
@@ -26,7 +26,12 @@ Used libraries: |P049_usedlibraries|
Supported hardware
------------------
|P049_usedby|
.. ..|P049_usedby|
MH-Z19B,
MH-Z19C,
MH-Z19D,
MH-Z19E
Sensor
^^^^^^
@@ -34,13 +39,17 @@ Sensor
See: :ref:`SerialHelper_page`
Commands available
^^^^^^^^^^^^^^^^^^
.. include:: P049_commands.repl
Additional infos can be found here: https://emariete.com/en/sensor-co2-mh-z19b/
**TODO**: Complete this documentation...
.. Commands available
.. ^^^^^^^^^^^^^^^^^^
.. .. include:: P049_commands.repl
.. Events
.. ~~~~~~
+24
View File
@@ -0,0 +1,24 @@
.. csv-table::
:header: "Command", "Explanation"
:widths: 20, 30
"
``MHZCalibrateZero``
``MHZReset``
``MHZABCEnable``
``MHZABCDisable``
","
Sets the zero point of the sensor (in this case 400ppm)
Reset to factory defaults
Enables automatic baseline calibration
Disables automatic baseline calibration
"
+3 -3
View File
@@ -423,10 +423,10 @@ P048 :ref:`P048_page`
.. include:: ../Plugin/P048_commands.repl
.. P049 :ref:`P049_page`
.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
P049 :ref:`P049_page`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. .. include:: ../Plugin/P049_commands.repl
.. include:: ../Plugin/P049_commands.repl
.. P050 :ref:`P050_page`
+6 -6
View File
@@ -42,9 +42,9 @@ bool CPlugin_002(CPlugin::Function function, struct EventStruct *event, String&
proto.usesExtCreds = true;
proto.defaultPort = 1883;
proto.usesID = true;
#if FEATURE_MQTT_TLS
proto.usesTLS = true;
#endif
# if FEATURE_MQTT_TLS
proto.usesTLS = true;
# endif // if FEATURE_MQTT_TLS
break;
}
@@ -108,12 +108,12 @@ bool CPlugin_002(CPlugin::Function function, struct EventStruct *event, String&
bool mustSendEvent = false;
switch (Settings.getPluginID_for_task(x).value) {
case 1: // temp solution, if input switch, update state
case 1: // temp solution, if input switch, update state
{
action = strformat(F("gpio,%u,%.2f"), x, nvalue); // FIXME tonhuisman: Was: InputSwitchState
action = strformat(F("gpio,%d,%d"), Settings.TaskDevicePin1[x], static_cast<int>(nvalue));
break;
}
case 29: // temp solution, if plugin 029, set gpio
case 29: // temp solution, if plugin 029, set gpio
{
if (switchtype.equalsIgnoreCase(F("dimmer")))
{
+2
View File
@@ -43,6 +43,8 @@ var commonPlugins = [
"NeoPixel", "NeoPixelAll", "NeoPixelLine", "NeoPixelHSV", "NeoPixelAllHSV", "NeoPixelLineHSV", "NeoPixelBright",
//P048
"MotorShieldCmd,DCMotor", "MotorShieldCmd,Stepper",
//P049
"MHZCalibrateZero", "MHZReset", "MHZABCEnable", "MHZABCDisable",
//P052
"Sensair_SetRelay",
//P053
+1 -1
View File
File diff suppressed because one or more lines are too long