Sonoff Ultimate TX Blueprint - 3 extra actions

Hi, if someone is using Sonoff Ultimate TX wall switch you can try this Blueprint. I created 3 extra actions for it (two fingers double click and two finger click + slide). It’s my first Blueprint so you can write me some thoughts about it.

You need to define 3 entities in Blueprint config:

  • entity with ambient light
  • entity with slide actions
  • text input helper (need manualy create in HA) as a support string used in Blueprint for getting last event and last event time

And then you can define your actions for following event:

  • slide left
  • slide right
  • double two finger click
  • two finger click → slide left
  • two finger click → slide right

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Here is my Github where you can read more:

Hi ,

Welcome to the forum.
Thanks for posting a Blueprint to share with the community.

Just a note that users will want to use the My thingie to install your blueprint onto their system, especially those who do not know GitHub. I suggest you use this link:
Create a link – My Home Assistant.
to create a link for them in your top post.
I also suggest go over what the !inputs are and what they are for in your top post. This will help reduce the number of questions you are sure to get.

Thanks for suggestions

1 Like

Hi there.
I am new to home assistant. I would like to control ambient light (with color/effect/intensity), alarm and doorbell (which I can control from ewelink). Can you provide some examples on how to do that? If I add a button on a dashboard I don’t see all those options as entities, just the switch - I assume I have to manually edit the code… I don’t know where to start. Please point me in the right direction.

For example, i would like to do something like this: (i have temperature sensors, door sensors, tx ultimate, human presence sensors in all my rooms)

  • if my window is open for more than 10 minutes and the temperature outside is below 5 degrees activate a short sound alarm and set the leds to blink red at full brightness untill i close the window
  • if my entrance door opens and if i am in the kitchen sound a doorbell and set the led color to green at 70% brightness.

Where to start? Where can I find some code examples or a list of commands I can use for stock sonoff devices?

Thank you.

Hi, you can’t do that in integration which I use (HACS → Sonoff LAN).

You need to choose more complicated approach like GitHub - SmartHome-yourself/sonoff-tx-ultimate-for-esphome: ESPHome Custom Component for Sonoff TX Ultimate
In this case you need to flash you Ultimate TX switch. I have no experience with that.

You can then write how you did it :slight_smile:

I read the gestures with ESPhome flashed don’t work as good as stock ones. That’s why I wanted to use stock firmware. I figured there must be a list of things that can be accessed like led color/intensity, sounds, and all other thing you can set in ewelink.

You can check github of Sonoff integration and try to support some opened issues/questions. For example: