SmartHome-yourself / sonoff-tx-ultimate-for-esphome

ESPHome Custom Component for Sonoff TX Ultimate
https://smarthomeyourself.de/sonoff-tx-ultimate-mit-esphome-custom-component/
MIT License
102 stars 45 forks source link

Vibration on touch #9

Closed HAautomater closed 1 year ago

HAautomater commented 1 year ago

Hi,

with the current configuration, the vibration starts after releasing the finger. Is it possible to have it on touch, like the original firmware?

Thank you for your outstanding work! Have a good one!

danielscheidler commented 1 year ago

Of course it is possible. I thought it should be the signal when the real event is fire up. So I choose the release, because in the on_touch you did not know if it will be a touch, long or multitouch. I never try the original FW ;) but should the vibration then only be at touch, until release or when touch and when release too?

HAautomater commented 1 year ago

I'am not 100% sure, how the original FW behaves, since I tried it only once ;) But I remember the vibration on touch.

As you suggested on yt, I edited the YAML: Added "switch.turn_on: vibra" "on_press" and deleted it from all other functions. Works perfectly, thanks again :)