Looking for recommendation of device that can convert a dry contact momentary switch input into a short and long (hold) press. I need to convert the existing momentary switches into HA entities that have on/off and hold (for dim level) functions… no need to control any mains powered loads.
I have Zwave JS Ui or Zigbee2MQTT, so either protocol is fine with me.
I need to have 4 separate entities so ideally a single unit that HA can see as 4 separate entities is ideal but no required (my panel has 4 momentary switches).
@orange-assistant If the Shelly i4 might be great option if plug-n-play like Zigbee devices and it exposes On, Off, and Dim level? Even better if I can trigger scenes using double or triple tap?
HA is not “in the middle”? HA is at the end, the momentary switches are the start, HA is the end. I need hardware that “converts” dry contact inputs into something HA understands (Zigbee, zwave, etc). What @orange-assistant recommend seems to do at least some of what I need, maybe all of it… I’d just prefer zigbee if I can find one.
I did some reading based on your input (thank you) and It looks like I’d need to create automations to deal with the dimming (holding down the dry contact button)?
Am I wrong and its built-into the entities that get created in HA?
I really want something that is plug-n-play, thinking this might work…
I would setup everything directly on the esphome node the buttons (for esphome binary Sensors) will be connected to. That way there shouldn’t be anything left to do in HA.
Essentially you configure esphome to directly dimm/toggle the lights which are connected to HA
Some inspiration with advanced logics can be found here and in many other (more recent?) threads
Your scenario isn’t a common one and the ZigBee module you mentioned in the other thread is probably “locked” (Firmware limitation) to pwm/dimm the output terminals of the device - and nothing else
ESPhome is 100% new to me, thank you for the help.
I see there is a newer Shelly i4 Gen3 that has 16 built-in functions
I read the thread you linked to and looks like they got dimming mostly working.
I think you are saying that inside the code flashed to the Shelly, I’d specifically identify the Home Assistant entities I want to control? Or is that in the ESPhome Integration in HA itself?
Since I have a 4 separate dry buttons controlling 4 separate ‘HA lights’, I’ll need to have both Up & Down Dimming on a single button, do you know of any code for that?
I’ll also post in the ESPhome space to see if anyone has done this.