Hello there,
After countless hours trying, and not finding the good way to configure my momentary switch, I decided to post here, to see if someone could help me.
I have in my house 3 buttons in the main entrance, all of them are chained, and connected to a teleruptor, somewhat classic.
My problem is that I can’t get any module to work as momentary into HA :
I sucessfully managed to make a B2Z from NOUS to work, all physical buttons work like a charm, interacting with the teleruptor, the device is integrated into z2m, and I can control it.
The main problem is that even if I set it as momentary, any press on the entity will act like it s a classical switch, and the teleruptor starts to cry, until I press back again to simulate a release action.
One fix was just to use an automation, and yeah, it works, but hell that s crappy, and it relies on the fact there won t be any outage in z2m.
#- alias: "Impulsion Lum Entrée via Button"
# trigger:
# - platform: state
# entity_id: input_button.iot_lum_entree_toggle
# action:
# - service: switch.turn_on
# target:
# entity_id: switch.iot_lum_entree
# - delay: "00:00:00.01"
# - service: switch.turn_off
# target:
# entity_id: switch.iot_lum_entree
To get it to work as a momentary button, that s the only way I found, even setting it up as momentary into z2m :
{
"current": 0,
"energy": 0,
"linkquality": 58,
"power": 0,
"power_outage_memory": "off",
"state": "OFF",
"switch_type": "momentary",
"voltage": 235
I can’t find a way to just make HA just “toggle”, like there is a single press, and instantly released.
So I tried with a ZBminil2, that has the ability to switch modes as it integrates a momentary mode by pressing 3 times on the button.
Works physically like a charm, but same exact problem in HA, pressing the button forces me to press it again to get the switch wvirtually “released”.
I don’t believe that s something normal / intended, so I may have done something not good, can’t conceive there is no option to get a momentary button simple option in z2m / HA.
Could someone help me ?