logo elektroda
logo elektroda
X
logo elektroda

How to Disable Level Control (pcc,7) in ESP Easy Rules for GPIO12 Relay?

sznickers 210 9
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21556783
    sznickers
    Level 11  
    reverence
    ESP Easy.
    Is there a command to disable the level control? In my case it is no.7 called pcc.
    If I want to disable the GPIO12 pin with the command GPIO,12,0 or GPIO,12,1, the relay returns to the position the regulator tells it to.
    I tried such a command, but it does not work:
    ControllerDisable,<pcc,7>
    https://espeasy.readthedocs.io/en/latest/Reference/Command.html
    https://www.letscontrolit.com/wiki/index.php/ESPEasy_Command_Reference
    https://espeasy.readthedocs.io/en/latest/Rules/Rules.html
    https://www.letscontrolit.com/wiki/index.php/Tutorial_Rules
    ESP Easy Mega device panel showing a list of seven configured tasks and devices. .
  • ADVERTISEMENT
  • #3 21557124
    sznickers
    Level 11  
    Well,
    I've also been to this site, but I don't quite understand what I'm supposed to type in.

    levelcontrol,Remote,[1]

    ??
    But how is it supposed to know which device I am referring to ?
  • ADVERTISEMENT
  • #4 21558318
    sznickers
    Level 11  
    I have another way.
    I throw out this regulator and write commands.
  • ADVERTISEMENT
  • #5 21558730
    sznickers
    Level 11  
    Maybe someone can help, I have a problem with my heat pump turning off above 44*C.
    That is, as if there is no response to the command:

    on t#tb>44 to
    event PCauxoff
    endon

    All code:

    
    on PCauxon do
      gpio,2,0 //włącz pompę ciepła Aux ON
    endon
    on PCauxoff do
      gpio,2,1 //wyłącz pompę ciepła Aux OFF
    endon
    on Pcwuon do
      gpio,12,0 //włącz pompę cwu ON
    endon
    on Pcwuoff do
      gpio,12,1 //wyłącz pompę cwu OFF
    endon
    on KGon do
      gpio,13,1 //włącz kocioł gazowy ON
    endon
    on KGoff do
      gpio,13,0 //wyłącz kocioł gazowy OFF
    endon
    on t#tb<39 do
      event PCauxon
      event Pcwuoff
      event KGon
    endon
    on t#tb>=39 And t#tb<=44 do
      event PCauxon
      event Pcwuon
      event KGoff
    endon
    on t#tb>44 do
      event PCauxoff
      event KGoff
    endon
    
    .

    Generally with me the rule is:
    when t<39*C - gas boiler is to be on, DHW circulating pump off, heat pump on,
    when t>=39*C - 44*C - heat pump on, circulation pump on, gas boiler off,
    when t>=45*C - DHW circulation pump on, heat pump off, gas boiler off

    I did this based on:
    https://github.com/darth-hp/espeasy-rules/blob/main/humidity-temperature-control-rule.txt
  • ADVERTISEMENT
  • #6 21559351
    Slawek K.
    Level 35  
    A subsidiary question, the pump is switched off with a high state ? I am not denying that this cannot be the case, because it can, but normally the control logic is that 0 (LOW) turns off and 1 (HIGH) turns on.
  • #7 21559367
    sznickers
    Level 11  
    >>21559351 .
    And so it would be logical that "1" is ON.
    How can this be changed?
  • #8 21559372
    Slawek K.
    Level 35  
    gpio,2,0 //switch heat pump Aux OFF
    gpio,2,1 //switch heat pump on Aux ON

    0 or 1 after the second decimal point indicates the status.

    Best regards
  • #9 21559376
    sznickers
    Level 11  
    >>21559372 .
    I don't no I know that this means the state :) .
    How do I change this in me so that the GPIO,2,0 command is OFF and not ON ?
  • #10 21559398
    Slawek K.
    Level 35  
    I wrote you, gpio,2,0 turns off and gpio,2,1 turns on.

    Greetings

Topic summary

The discussion addresses disabling level control (pcc,7) in ESP Easy rules for controlling a relay on GPIO12. The user attempts to override the regulator's automatic control by sending GPIO commands (GPIO,12,0 or GPIO,12,1), but the relay reverts to the regulator's state. Attempts to disable the controller using "ControllerDisable," fail. References to ESP Easy documentation and command syntax are provided, including the levelcontrol command syntax "levelcontrol,Remote,[1]", but the user is uncertain how to specify the target device. The user ultimately considers removing the regulator and controlling the relay solely via commands. Additional discussion covers GPIO logic levels for relay control, clarifying that typically GPIO low (0) turns off and high (1) turns on the relay, and the user inquires about inverting this logic. Sample rule code is shared for controlling a heat pump and gas boiler based on temperature thresholds, using GPIO commands to switch devices on and off. The main technical challenge remains disabling or overriding the automatic level control (pcc,7) to allow manual GPIO control of the relay on GPIO12.
Summary generated by the language model.
ADVERTISEMENT