BlitzWolf BW-SS5 2 Gang Relay

Hi,

Im trying to connect Blitzwolf BW-SS5 to esphome. I instaled the FW succesfuly and can use it through HA.

The problem is when I try using the HW switch.
When the switch is turned on the relay is snaping and the light is flashing.

Sending a photo of the device and my code.

Could you help me please?

switch:
-platform: gpio
name: “Rele 1”
pin: GPIO14
id: Rele_1

-platform: gpio
name: “Rele 2”
pin: GPIO15
id: Rele_2

binary_sensor:
-platform: gpio
pin:
number: GPIO12
mode: INPUT_PULLUP
inverted: true
name: “Mini relé”
on_press:
-switch.toggle: Rele_1
on_release:
-switch.toggle: Rele_1

-platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: true
name: “Mini relé”
on_press:
-switch.toggle: Rele_2
on_release:
-switch.toggle: Rele_2

Welcome.

Please post your code using 3 back ticks before and after, and correct spacing etc.

You are probably experiencing switch bounce. esphome has settings for that, see the docs.

But also I noticed the tasmota documentation refers to the gpio12 and gpio13 as counters, which I don’t understamd. https://templates.blakadder.com/blitzwolf_BW-SS5_2.html

Blitzwolf 1 gang relay - GPIO12 - switch

https://templates.blakadder.com/blitzwolf_BW-SS5.html

[00:48:25][C][captive_portal:169]: Captive Portal:
[00:48:25][C][ota:029]: Over-The-Air Updates:
[00:48:25][C][ota:030]: Address: blitzwolf_bw_ss5.local:8266
[00:48:25][C][ota:032]: Using Password.
[00:48:25][C][api:095]: API Server:
[00:48:25][C][api:096]: Address: blitzwolf_bw_ss5.local:6053
[00:48:42][D][switch:021]: ‘Rele 1’ Turning ON.
[00:48:42][D][switch:045]: ‘Rele 1’: Sending state ON
[00:48:44][D][switch:025]: ‘Rele 1’ Turning OFF.
[00:48:44][D][switch:045]: ‘Rele 1’: Sending state OFF
[00:48:48][D][switch:021]: ‘Rele 2’ Turning ON.
[00:48:48][D][switch:045]: ‘Rele 2’: Sending state ON
[00:48:51][D][switch:025]: ‘Rele 2’ Turning OFF.
[00:48:51][D][switch:045]: ‘Rele 2’: Sending state OFF
[00:48:56][D][binary_sensor:036]: ‘Mini relé’: Sending state ON
[00:48:56][D][switch:029]: ‘Rele 1’ Toggling ON.
[00:48:56][D][switch:045]: ‘Rele 1’: Sending state ON
[00:48:56][D][binary_sensor:036]: ‘Mini relé’: Sending state OFF
[00:48:56][D][switch:029]: ‘Rele 1’ Toggling OFF.
[00:48:56][D][switch:045]: ‘Rele 1’: Sending state OFF
[00:48:56][D][binary_sensor:036]: ‘Mini relé’: Sending state ON
[00:48:56][D][switch:029]: ‘Rele 1’ Toggling ON.
[00:48:56][D][switch:045]: ‘Rele 1’: Sending state ON
[00:48:56][D][binary_sensor:036]: ‘Mini relé’: Sending state OFF
[00:48:56][D][switch:029]: ‘Rele 1’ Toggling OFF.
[00:48:56][D][switch:045]: ‘Rele 1’: Sending state OFF
[00:49:02][D][binary_sensor:036]: ‘Mini relé’: Sending state ON
[00:49:02][D][switch:029]: ‘Rele 2’ Toggling ON.
[00:49:02][D][switch:045]: ‘Rele 2’: Sending state ON
[00:49:02][D][binary_sensor:036]: ‘Mini relé’: Sending state OFF
[00:49:02][D][switch:029]: ‘Rele 2’ Toggling OFF.
[00:49:02][D][switch:045]: ‘Rele 2’: Sending state OFF
[00:49:02][D][binary_sensor:036]: ‘Mini relé’: Sending state ON
[00:49:02][D][switch:029]: ‘Rele 2’ Toggling ON.
[00:49:02][D][switch:045]: ‘Rele 2’: Sending state ON
[00:49:02][D][binary_sensor:036]: ‘Mini relé’: Sending state OFF
[00:49:02][D][switch:029]: ‘Rele 2’ Toggling OFF.
[00:49:02][D][switch:045]: ‘Rele 2’: Sending state OFF

And your point is?

Did I send the wrong thing?

You didn’t, read my post.

Have you manage to figure it out? I bought a few of those and I am getting ahead by coding it before it arrives. Have you checked Tasmota?

It states:

This device uses AC frequency detection circuits on switch inputs supported since Tasmota 8.4.

My understanding is that your input will go from 1 to 0 together with your AC frequency, meaning 60hz would get you 60 up and 60 down signals per second.

I believe @nickrout’s suggestion would anyhow help, a debounce would do the trick. Please check this post for something more specific. Let me know how it goes.

@boorky wouldn’t even post his code properly. If he did, he might get some help.

Hi,

@51Acorsi The Tasmota configuration is working correctly. I tested it and it´s fully functional.

I plan to test this configuration in esphome: Moes

@nickrout after I test the new configuration from the link above I will send feedback

Please give me some time

successfully resolved

For Tasmota:

https://templates.blakadder.com/moes-MS-104B.html
https://templates.blakadder.com/blitzwolf_BW-SS5_2.html

For ESPhome:

https://community.home-assistant.io/t/moes-ms104-b-howto-config/172237