SONOFF TX Ultimate endlich mit ESPHome in Home Assistant verwenden

Sdílet
Vložit
  • čas přidán 12. 09. 2024

Komentáře • 74

  • @Smarthomeyourself
    @Smarthomeyourself  Před rokem +4

    Kurze Anmerkung:
    Ich hab vor Release noch die Schreibweise der Parameter vereinheitlicht.
    Da in den Parameternamen Deusch und Englisch gemischt war, habe ich dies noch durchgängig auf Englisch angepasst. (Aus Relais wurde daher Relay)
    Alle Codes und die Dokumentation im GitHub sind aber auch entsprechend korrigiert.

  • @manfredzimmer1199
    @manfredzimmer1199 Před rokem +1

    Genau zur richtigen Zeit Dein Video. Vor kurzem ist mir doch ein WLAN Schalter „verstorben“. Werde das Teil direkt bestellen sobald ich aus Irland zurück bin. Vielen Dank und meine Frau freut sich auch schon wenn wir wieder einen Schalter haben der seinen Dienst verrichtet. Happy wife…..happy life 😊

  • @felixfre9667
    @felixfre9667 Před rokem +2

    Dieses Projekt hat sehr viel Spaß gebracht - smarthomeyourself, vielen Dank für die geleistete Arbeit 👍

  • @uwejaehnke1643
    @uwejaehnke1643 Před rokem +1

    Danke für dieses Video und deine harte Arbeit, ohne dieses Video hätte ich den Schalter zurückgeschickt, dank dir bin ich jetzt aber doch recht zufrieden.
    Ist mein erstes ESPHome Gerät 😎

  • @martinredwood
    @martinredwood Před rokem +1

    Ihr alten Hacker. Habt ihr super gemacht und ich werd wieder mal n Haufen Kohle los, weil ich n paar Schalter austauschen muss 😅

  • @rulandu
    @rulandu Před 6 měsíci

    Incredible work. Will you add more effects and features in the future? Thank you

  • @niallobr
    @niallobr Před 9 měsíci

    Thanks for all your efforts and for doing the explanations in English on Github, it really helped me :)
    The only extra thing I was hoping for was swipe up/down for setting brightness of the lights... since its not possible I think I'll try do something with a long press. Left/right swipe feels a bit unnatural for this. Danke!

  • @firefirefire80
    @firefirefire80 Před rokem +1

    Wegen Dir hab ich mir jetzt 3 solcher Schalter gekauft, Daniel! :-D Echt tolles Projekt, und sau cool, dass ihr das bis zum nutzbaren Repository durchgezogen habt! Vielen Dank dafür! Habe heute erfolgreich den ersten der Schalter geflashed. Leider ist mir als mittelprächtiger yaml-noob noch nicht ganz klar, wie ich die Komponenten des Schalters in dessen ESPHome Config korrekt anspreche. Ich würde gerne den 2-Relais-Schalter in eine Wechselschaltung integrieren und daher die Relais wechselseitig an/ausschalten lassen und das direkt auf dem Device konfigurieren. Dazu erst mal die Relais entkoppeln und dann die Wechselschaltung konfigurieren. Dann wäre eine Schalterseite für beliebige Aktionen frei und mit der anderen könnte man die beiden Relais im Wechsel ein/aus schalten. Ein Beispiel dafür z.B. auf Github oder was ähnliches wäre vllt nicht nur für mich hilfreich ;-) Das wäre natürlich mega, aber begeistert bin ich auch schon so von dem Projekt! 😀

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Also ne typische Wechselschaltung wirst du mmn nicht hinbekommen. Wenn kannst du sie über ha synchronisieren. Also dass ein Taster an Schalter a das relay an Schalter b steuert und anders herum. Es ist halt kein dummer Wechselschalter. Lasse mich gerne belehren aber ich hab's beim NSPanel damals nicht hinbekommen.

    • @firefirefire80
      @firefirefire80 Před rokem

      @@Smarthomeyourself achso ich habe es gerade erst verstanden... Was ich meine ist, innerhalb einer Wechselschaltung einen der dummen Schalter durch den Ultimate mit 2 Relais zu ersetzen. So das die anderen Schalter weiter funktionieren und der Ultimate mit seinen 2 Relais immer abwechselnd eine der beiden Leitungen der dummen Wechselschaltung mit Phase beschaltet.

    • @firefirefire80
      @firefirefire80 Před rokem

      Nicht ganz optimal, aber mein best guess im Moment als Lösung unten. Die Swipe Action bräuchte man eigentlich nur, wenn die Relais nicht in invertierter Stellung landen würden nach einem Stromausfall. Was die yaml Logik in ESPHome angeht muss ich noch einiges lernen..
      tx_ultimate_touch:
      id: tx_touch
      uart: my_uart
      on_press:
      then:
      - switch.toggle: relay_1
      - switch.toggle: relay_2
      Was ich noch nicht verstehe ist, wie die swipe left/right und die anderen Events heißen, das wird mir aus der Github Doku noch nicht klar.
      //edit: Die richtigen Eventnamen werden per default ja im Log ausgegeben wenn man sie noch nicht überschrieben hat, insofern kein Problem eigentlich 😀

  • @carstenjones847
    @carstenjones847 Před rokem +1

    Maga Projekt. Hammer

  • @juevodahei6100
    @juevodahei6100 Před rokem +1

    Die Nachtlicht funktion ist schon was schönes, noch schöner wäre es wenn man über die einzelnen Leds die Uhrzeit darstellen könnte. Ich stell mir so vor alle Leds sind einem rötlichen Ton und nur eine Led, die ungefähr an der Stelle des Stundenzeigers ist hat ein Blauen Ton. Alternativ könnte ich mir auch vorstellen das alles LEDs die gleiche Farbe haben, aber fortschreitender Zeit die Farbe änder. z.B. am Abend rötliche Töne und ab einer Stunde vor Wecker, erst gelb und dann nach blau. Damit weiß ich, dass ich wenn ich nachts wach werde und der Sonoff blau leuchtet gleich aufstehen kann weil der Wecker sowieso gleich geht. Wenn der Sonoff noch rot ist kann ich mich noch mal umdrehen.

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Auch eine spannende Idee :) Werde ich mal im Hinterkopf behalten

  • @heikjosh
    @heikjosh Před rokem

    Wie immer ein super Beitrag.

  • @user-xh9vd3ed9i
    @user-xh9vd3ed9i Před 7 měsíci

    Hi Daniel, zuerst einmal vielen Dank für diese tolle Integration. Ich habe eine Frage, vermutlich sehe ich einfach nur den Wald vor lauter Bäumen nicht mehr. Zumindest hoffe ich das es trivial ist. Ich habe für meine Schalter ein paar neue Partitionen für das Licht eingerichtet (ganz klassisch für jede Seite eine). Wenn ich das Nightlight jetzt z.B. nur auf die Linken LED's setze, werden dennoch die LED's der drei Relays (7, 9, 11) im Nightlight mit beleuchtet. Hast du eine Ahnung woran das liegen kann - oder bin ich einfach nur zu dusselig. Ziel von dem ganzen sollte eigentich sein das wir die Leuchten Analog wie in der eWelink App umsetzen können. Sprich: Nightlight nur unten, LED Marker für aktive Schalter oben.

  • @aaabbb-tn3lr
    @aaabbb-tn3lr Před rokem

    Vielen Dank!!! Sehr cooles Projekt, das definitiv viel mehr Aufmerksamkeit haben sollte. Hab mir gleich ein paar Schalter gekauft. Ich würde mich auch freuen falls ihr das Projekt noch erweitert. Wäre es zb möglich Swipe-up und Swipe-down pro Schaltfläche zu erkennen (zb zur Steuerung von Cover)?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Warum Up and down nicht geht erkläre ich ja im Video. Das ist technisch vom Sensor ja gar nicht möglich. Aber sie Cover componente ist eigtl schon fertig. Ich muss es nur mal noch zum verteilen verpacken dass es auch für 2 und 3er Version einstellbar ist und die Doku erweitern. Ich wollte hier auch über Schalter die Jalousie und über swipe links/rechts die gardienen steuern.

  • @joshschachat1384
    @joshschachat1384 Před 6 měsíci

    thank you so much for the effort, do you have an arduino sketch on how to read the inputs from the from the touch controller into the esp32

  • @BlackYmas
    @BlackYmas Před rokem

    Mega genau das habe ich gesucht :) wenn das jetzt 2 untereinander einbauen könnte…. 😂

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      Teste ich heute Abend noch mal. Andere glaube sieht schlecht aus

    • @BlackYmas
      @BlackYmas Před rokem

      @@Smarthomeyourself wäre mega wenn du das testen kannst

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      @@BlackYmas Ne also das wird nix. das Panel steht eingebaut schon ein paar mm in die benachbarte Dose über

  • @ebcradioshow
    @ebcradioshow Před rokem

    Great job i will try this

  • @guidolohmeier7126
    @guidolohmeier7126 Před 11 měsíci

    Vielen Dank für die tolle Anleitung und das ESPHome Projekt. Kann man den Schalter zusätzlich als Bluetooth-Proxy nutzen?

    • @Smarthomeyourself
      @Smarthomeyourself  Před 11 měsíci

      Ja eigentlich ja. Allerdings muss dafür z.b. das Audio deaktiviert werden, da ansonsten leider der Speicher nicht ausreicht und die Firmware zu groß wird

    • @guidolohmeier7126
      @guidolohmeier7126 Před 11 měsíci

      Danke für die schnelle Rückmeldung. Habs jetzt auch schon in deinem git gelesen. Audio möchte ich eigentlich behalten. Na, man kann nicht alles haben.

  • @MrGrrraham
    @MrGrrraham Před rokem

    Gday,
    Thankyou again for all your efforts. The speaker or media player can be fixed by setting the format option to the lsb. (Least Significant Byte) (default is MSB).
    media_player:
    - platform: i2s_audio
    i2s_comm_fmt: lsb
    ... all the other options

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Have it in my local Code for a while. Is it in the official Release now? Then I will Update the Git later today. Thx for the reminder

    • @thefirst555
      @thefirst555 Před 8 měsíci

      Got this working thankyou. Still very quiet though ?

  • @jolambinon9775
    @jolambinon9775 Před rokem

    Good Day, and firstly thank you for a fantastic piece of work. I have question, is it possible to make the button leds change colour when they are switched, Example red when relay is off and green when relay is on ?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      For sure, look into the scripts:
      - led_on_button_left
      - led_off_button_left
      - led_on_button_middle
      - led_off_button_middle
      - led_on_button_right
      - led_off_button_right
      This scripts handle the leds when buttons are pressed.
      ...on... if relay is activated, ... off... if deactivated.
      In the "off"-scripts it currently turn off the lights, or if nightlight is activated, then the button-led will turn into nightlight color.there you can change the turn_off to turn_on with the color you want

    • @jolambinon9775
      @jolambinon9775 Před rokem

      @@Smarthomeyourself Thank you very much.

  • @flof8753
    @flof8753 Před rokem

    Mega professionell durchgezogen! Danke dafür.
    Wie bekomme ich die Vibration "on touch" und nicht erst nach abheben des Fingers?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Aktuell würd ich sagen nur über nen fork oder du kopierst dir halt die yaml die als package eingebunden wird in dein projekt und passt es dort an. Ich hab bewusst das release gewählt, da dann auch erst das event ausgelöst wird. Beim On-Press weis man ja noch nicht, was für ein Ereignis draus wird. Könnte man natürlich auch über nen substitution Eintrag steuerbar machen. Wäre dann nur auch die Frage, nur eins von beidem? Oder von press bis release?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      du kannst den vibra natürlich auch einfach im on_press hinterlegen wie in der doku gezeigt. Dann wäre es allerdings zusätzlich zu dem vibra im on_release

    • @flof8753
      @flof8753 Před rokem

      @@Smarthomeyourself Ich habe mir die YAML jetzt in mein Projekt kopiert und "switch.turn_on: vibra" nur beim "on_press" hinterlegt, bei allen anderen entfernt. So ist es für mich nun perfekt, da ich das haptische Feedback bei der ersten Interaktion mit den Pads habe. Ansonsten habe ich die Vibration nur gehört und nicht mehr gespürt, da mein Finger bei on_release nicht mehr auf den Pads liegt.😉
      Vielen Dank für den Denkanstoß und deine Vorschläge!

  • @niallobr
    @niallobr Před 9 měsíci

    Is there any way to make the long touch action fire after less than 5 seconds? Sorry if you already answered this :)
    I have everything else working now and it's great!

    • @Smarthomeyourself
      @Smarthomeyourself  Před 9 měsíci +1

      Sorry, Unfortunately, this is not possible because the touch sensor only provides the feedback for LongPress after this time

    • @niallobr
      @niallobr Před 9 měsíci

      Thanks! It is a pity that the touch interactions for these switches are not slightly more customisable.

  • @RomanHohenberg
    @RomanHohenberg Před 9 měsíci

    Danke!

  • @oceanz55
    @oceanz55 Před 9 měsíci

    Hello and thank you for the video! I was wondering if you had a chance to try the 4 gang version of this switch? I have one and have tried to use your code and I think the touch sensor array is different, since there is a 4th gang. Would you have any advice on this?

    • @Smarthomeyourself
      @Smarthomeyourself  Před 9 měsíci +1

      I'll take a look on the 4gang in january. We have the same question in the last few days on our discord ;)

    • @oceanz55
      @oceanz55 Před 9 měsíci

      @@Smarthomeyourself Excellent and thank you so much for your efforts and tutorials! They have greatly helped with what I am doing and learning :)

  • @pb59tmy
    @pb59tmy Před rokem

    Tolles Projekt, vielen Dank dafür! Ich würde gerne die TX in eine Kombination 1x Taster und 1x Steckdose einbauen. Gibt es passende Rahmen + Steckdosen zum System?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      Das mit den Mehrfach-Dosen ist denke ich wie immer leider ein Problem. Ich bin nicht sicher ob es mit der M5 Serie kompatibel wäre, aber selbst da müsste alles um 90° gedreht eingebaut werden, was auch irgendwie nicht schön ist.
      So direkt wären mir aber keine Rahmen oder ähnliches bekannt.

  • @jolambinon9775
    @jolambinon9775 Před rokem

    I have another question please? Can you explain the partition for the night light, it seems like leds 7, 9 and 11 are excluded, why is this?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      to avoid overriding the relay-state color (i think 7,9 and 11 are for the relays?)

    • @jolambinon9775
      @jolambinon9775 Před rokem

      @@Smarthomeyourself Thank you, but this what I don't understand they are not for the relays, as far as I can see

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      @@jolambinon9775 for sure they are. 7, 9 and 11 are leds_button_left/right/middle

  • @ruslanumaev3569
    @ruslanumaev3569 Před rokem

    super!

  • @filiptieftrunk432
    @filiptieftrunk432 Před rokem

    Hi, is it possible to detect a long touch on each of the parts or only on the whole panel?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Atm I only did a binary sensor for long press in general, but if you use the on_long_press action, you can check the x variable for the touch position.

    • @filiptieftrunk432
      @filiptieftrunk432 Před rokem

      @@Smarthomeyourself Thanks, Can I somehow turn off vibrations after touch?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      @@filiptieftrunk432 If you Copy the package and do your Modifikations in there instead of use the package

  • @diy-selbstgemacht
    @diy-selbstgemacht Před rokem

    Super Arbeit, bin daran selbst vor einigen Tagen gescheitert.. Vielen Dank dafür. Wie kann ich in HA sehen ob ein langer Druck erfolgt ist. Was muss ich hier noch machen? Danke.

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Die on Long Press Action nutzen. Ich schau mal dass ich bei dem nächsten Update dafür auch nen binary Sensor einbaue

    • @diy-selbstgemacht
      @diy-selbstgemacht Před rokem +1

      @@Smarthomeyourself Vielen Dank, hab es gerade selbst eingebaut im Projekt. DANKE.

  • @erhardstiller7595
    @erhardstiller7595 Před rokem

    Erstmal danke für den tollen Hack.
    Habe aber bei mehreren Ultimates ein leises fiepen im Ruhezustand.
    Da natürlich keiner mehr mit Original Firmware, bin ich mir nun nicht sicher ob dies hardwarebedingt ist, oder dies der Audio teil ist, der ja noch nicht funktioniert.
    Hab im HA schon alles auf Stumm gestellt, allerdings ohne Erfolg
    Habt ihr ein ähnliches Geräusch ?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      Mit der Dev Version von Esphome und einer kleinen Code-Anpassung läuft auch Audio inzwischen.
      Siehe: github.com/esphome/esphome/pull/4918
      Ein FIepen habe ich bisher nicht wahrgenommen, bin (wenn ich meiner Frau glauben darf) da aber auch kein Maßstab 😀Ich achte aber noch mal drauf. Ich muss eh mal endlich die Jalousiesteuerung veröffentlichen.

    • @aaabbb-tn3lr
      @aaabbb-tn3lr Před rokem

      @@Smarthomeyourself Vielen Dank für deine Arbeit! Könntest du mir bitte die kleine Code-Anpassung kurz beschreiben, würde das Audio Problem gerne lösen?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +1

      @@aaabbb-tn3lr die Code Anpassung ist im verlinkten Ticket ja beschrieben mit Code Beispiel. Ich bin nur nicht sicher ob's inzwischen in der offiziellen Version enthalten ist. Ich verwende die Dev Version und die ist ja immer etwas vorraus

    • @aaabbb-tn3lr
      @aaabbb-tn3lr Před rokem

      Danke! Ich hab es nun doch gefunden. Für alle die sonst noch suchen hier die Zeile die im Bereich "media_player" ergänzt werden muss: i2s_comm_fmt: lsb

  • @MrGrrraham
    @MrGrrraham Před rokem

    Gday,
    Thank you for your efforts.
    Can you please modify your the rainbow effect to have a width of 14 or 28 so the rainbow is continuous around the switch?

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem

      Thats Not only a Problem of the width, than of the Led groups. I choose to only use the upper LEDs for optical Feedback. If you want to use all you have to define the effect on the Led component for all LEDs. (Not Sure If i defined one for all).

    • @MrGrrraham
      @MrGrrraham Před rokem

      @@Smarthomeyourself thanks for the quick reply, under light: -platform neopixelbus, num_leds is 28 which is all of them rather than just the top row. I will reply again with the speaker fix
      ''''

    • @MrGrrraham
      @MrGrrraham Před rokem +2

      i copied most of the yaml locally. To play with the switch with my kids I added lots of lighting effects. I intend to add some custom lamba lighting effects as we feel the 'scan' will look better if the light chases around and around the light switch rather than back and forward. (no offence intended just commenting on our experimentation) For those interested we are playing with all the effects at the moment (scan needs to be fast enough to blur so it looks 'smooth' to the eye):
      light:
      - platform: neopixelbus
      type: GRB
      variant: WS2811
      pin: ${led_pin}
      num_leds: 28
      name: "NeoPixel Light"
      id: leds
      default_transition_length: 0s
      effects:
      - addressable_rainbow:
      name: "Rainbow14"
      speed: 30
      width: 14
      - addressable_rainbow:
      name: "Rainbow28"
      speed: 30
      width: 28
      - addressable_rainbow:
      name: "Rainbow280"
      speed: 30
      width: 100
      - pulse:
      name: "Pulse"
      transition_length: 1.4s
      update_interval: 1s
      - random:
      - strobe:
      - flicker:
      - addressable_color_wipe:
      - addressable_scan:
      name: "Scan1"
      move_interval: 20ms
      - addressable_scan:
      name: "Scan3"
      move_interval: 20ms
      scan_width: 3
      - addressable_random_twinkle:
      - addressable_fireworks:
      on_turn_off:
      then:
      - script.execute: refresh_led_default

  • @patrick.w.81
    @patrick.w.81 Před rokem

    Guten Morgen, erstmal super Arbeit, habe da mal ein Problem, nach dem flashen der Firmware geht der ESP32 immer in den bootloop, hat vielleicht jemand ein Lösung, verwendete Software ist esphome flasher.

  • @RomanHohenberg
    @RomanHohenberg Před 9 měsíci

    TOP video, , viele dank. gleich mal einen TX Ultimate bestellt und wollte den heute flachen. klappt eigentlich alles bis auf das einbinden in ESP Home. der Log bleib bei folgenden Punkt stehen: INFO Starting log output from /dev/ttyUSB0 with baud rate 115200. . hat jemand eine Idee woran es liegen könnte ?

    • @Smarthomeyourself
      @Smarthomeyourself  Před 9 měsíci +1

      Bin nicht ganz sicher, aber würde behaupten, wenn du ihn zusammen baust und über 230v normal versorgst sollte das Log über WLAN abrufbar sein.

    • @RomanHohenberg
      @RomanHohenberg Před 9 měsíci

      @@Smarthomeyourself danke, das war die Lösung. In dem Fall kann ich zwei weitere bestellen (natürlich über deinen Link)

  • @flof8753
    @flof8753 Před rokem

    Danke!

    • @Smarthomeyourself
      @Smarthomeyourself  Před rokem +2

      Ich hab zu danken ;) ich behalte das mal im Hinterkopf und schau mal ob ich das einstellbar mache. Muss eh mal endlich die Cover Variante Releasen.