A latching relay, also called impulse, bistable, keep, or stay relay, or simply latch, maintains either contact position indefinitely without power applied to the coil (wiki). In the electronics world, these relays have two contacts to open and close the switch.

You should define the ON pin first. For example, output 7 – Bistable relay ON, and output 8 – Bistable relay OFF.

Bistable relay configuration

Zigbee: Look for commands and examples for GPIO outputs. The firmware accepts all commands on the “Bistable relay On” endpoint.

Waveform diagram

Comments
Harvey Specter
Posted at 07:18 August 22, 2021
ahonxxx
Reply
Author

After continuous configuration tests, the hardware function is normal in “Routing” mode under the same configuration, but the same error occurs in “End Device without Routing” mode. The level of Yi ‘xia will always be high when powering on, ha control, and the hardware has no report. I hope you can have a look at it. Thank you. Great author

Harvey Specter
Posted at 07:26 August 15, 2021
ahonxxx
Reply
Author

Board type: CC2652P/CC1352P2
Device type: End device without routing
Model ID: ptvo_zigbee
Update firmware’s timestamp : 2021-08-15
Status LED: P05, Periodic (every 5 seconds)
Set default reporting interval (s): 60

Output pins:
P06: Output 2, Bistable relay On, Pull-down (Impulse (ms): 100, Restore after power off: Last), Remember state
P07: Output 3, Bistable relay Off, Pull-down (Impulse (ms): 100)
P09: Output 4, Bistable relay On, Pull-down (Impulse (ms): 100, Restore after power off: Last), Remember state
P10: Output 5, Bistable relay Off, Pull-down (Impulse (ms): 100)

Input pins:
P26: Input 2, GPIO, Pull-down, Link to out 2
P27: Input 4, GPIO, Pull-down, Link to out 4

Harvey Specter
Posted at 09:13 August 8, 2021
ahonxxx
Reply
Author

Is the pulse valve in Burmet, Israel controlled in this way? It is positive pulse to open the valve and reverse pulse to close the valve

    Harvey Specter
    Posted at 09:50 August 8, 2021
    Owner
    Reply
    Author

    Sorry, but I don’t know this valve. The CC2530 chip generates digital pulses (0V – low, 3.3V – high).

      Harvey Specter
      Posted at 10:35 August 8, 2021
      ahonxxx
      Reply
      Author

      Input pin1 injects high level and out5 high level for 1 second. Input pin1 reinputs high level and out5 high level for 1 second. Cycle. Pin1 is a button switch. Each time it is triggered, the polling output output high level. How much is your email? I will send you the schematic diagram for a detailed

        Harvey Specter
        Posted at 11:05 August 8, 2021
        Owner
        Reply
        Author

        You need the Pulse switch feature.

          Harvey Specter
          Posted at 12:03 August 8, 2021
          ahonxxx
          Author

          High level 3.3V output for 1s, one switch control, two IO output ports are required for on and off,

          http://www.bermad.com.cn/

          This is the valve website. I will connect a high-level trigger 12V at the IO output port, and the ZigBee module will output to the high-level for 1 second

          Harvey Specter
          Posted at 12:44 August 8, 2021
          ahonxxx
          Author

          Configuration implemented in esphone

          There are too many devices connected to WiFi. I want to change it to ZigBee networking. Thank you

          switch:
          – platform: gpio
          name: “switch1”
          pin: GPIO4
          on_turn_on:
          – output.turn_on: K10
          – delay: 1ms
          – output.turn_off: K10
          on_turn_off:
          – output.turn_on: K11
          – delay: 1ms
          – output.turn_off: K11

          output:
          – platform: gpio
          id: K10
          pin:
          number: 10
          mode: OUTPUT
          inverted: false

          – platform: gpio
          id: K11
          pin:
          number: 11
          mode: OUTPUT
          inverted: false

          Harvey Specter
          Posted at 03:33 August 9, 2021
          Owner
          Author

          Ok. The “Bistable relay” implements the same logic.

          Harvey Specter
          Posted at 10:33 August 9, 2021
          ahonxxx
          Author

          I will purchase electronic modules for testing immediately. Thank you very much

          Harvey Specter
          Posted at 17:49 August 14, 2021
          ahonxxx
          Author

          The function can be realized after testing, but the initial state of power-on after power-off is not correct. The defined Bistable relay OFF GPID is always high level. Ideally, it is to remember the last switch state after power-off and then power on (correctly, it is to give a high level of 100 milliseconds once), instead of always high level. So my valve coil keeps burning a little bit, a long time,

Harvey Specter
Posted at 11:58 February 23, 2021
gio
Reply
Author

Hi, i can’t understand how this bistable feature works: the name shouldn’t be “monostable”? I intended that this output has only one stable position and after impulse time has passed returns to the monostable position (ON or OFF). Isn’t it?
THen, it is possible to command this output by an input?
Can you add a configuration example?

Leave a Reply to gio
Cancel Reply