Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Microcontroller
    5. Esp Easy Einstellungen Ultrasensor

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Esp Easy Einstellungen Ultrasensor

    This topic has been deleted. Only users with topic management privileges can see it.
    • Dutchman
      Dutchman Developer Most Active Administrators @Slowman last edited by Dutchman

      @slowman sagte in Esp Easy Einstellungen Ultrasensor:

      @dutchman

      Ja Doku gelesen, aber ich sage mal so. Verstanden, was es macht, denke ich mal: Flasht und verwaltet meine esp32/8266. Aber irgendwie komme ich nicht klar damit. Habe jetzt bei der Suche Dockerfiles ESPHome gefunden (leider alles in Englisch). Mal sehen, ob ich damit mein Grundverständnis festigen kann.

      Wenn der Lockdown noch härter wird, vielleicht kannst du mal so ein LiveStream machen, wie mit Grafana, damit bei TeamSpeak SmartHome wieder was passiert. Damit die Benutzer dieses Adapter steigen. 😇

      musst ja nur das her einbinden

      sensor:
        - platform: ultrasonic
          trigger_pin: D1
          echo_pin: D2
          name: "Ultrasonic Sensor"
      

      also sollte ne basis yaml so aussehen fuer nen wemos D1 mini

      # Hier die Device config
      esphome:
        name: test_device
        platform: ESP8266
        board: d1_mini
      
      wifi:
        ssid: "deineWiFiSSiD"
        password: "deineWiFiPassword"
      
        # Enable fallback hotspot (captive portal) in case wifi connection fails
        ap:
          ssid: "Test_Device Fallback Hotspot"
          password: "hotSpot$2020"
      
      # Enable logging
      logger:
      
      # Enable API
      api:
        password: "gewolltesAPIPassword (Braucht der adapter)"
      
      # OTA Password
      ota:
        password: "gewolltesOTAPassword"
      
      # OTA Password.(Hier der sensor, Pin belegung beachten !)
      sensor:
        - platform: ultrasonic
          trigger_pin: D1
          echo_pin: D2
          name: "Ultrasonic Sensor"
      

      Mehr infos hier https://drozmotix.github.io/languages/de/Adapter/ESPHome/04.myFirstDevice.html#neues-gerat-hinzufugen

      1 Reply Last reply Reply Quote 1
      • Dutchman
        Dutchman Developer Most Active Administrators last edited by Dutchman

        Habs mal mit der config probiert, laeuft 🙂
        ( 0 m, hab keinen sensor :P)
        Schermafbeelding 2021-03-30 om 10.17.01.png

        Slowman 1 Reply Last reply Reply Quote 1
        • Slowman
          Slowman @Dutchman last edited by

          @dutchman

          Danke dir schaue es mir Nachmittags an und hoffe, dass der Knoten platzt 😊 Möchte eigentlich alles von Tasmota auf ESP Easy umstellen, da die Werte ja dort besser angeblich synchronisiert werden. Melde mich dann.

          Dutchman 1 Reply Last reply Reply Quote 0
          • Dutchman
            Dutchman Developer Most Active Administrators @Slowman last edited by

            @slowman sagte in Esp Easy Einstellungen Ultrasensor:

            @dutchman

            Danke dir schaue es mir Nachmittags an und hoffe, dass der Knoten platzt 😊 Möchte eigentlich alles von Tasmota auf ESP Easy umstellen, da die Werte ja dort besser angeblich synchronisiert werden. Melde mich dann.

            jo und komm sonst Discord können wir gerne zusammen machen und Docu weiter vervollständigen 🙂

            Slowman 1 Reply Last reply Reply Quote 0
            • Slowman
              Slowman @Dutchman last edited by Slowman

              @dutchman

              Wusste gar nicht, das ich sogar noch einen Account bei Discard hatte. Komme nicht weiter. Meine config

              # Hier die Device config
              esphome:
                name: Poststation
                platform: ESP8266
                board: nodemcuv2
               
              wifi:
                ssid: "GastTest"
                password: "xxxxxxxx"
               
                # Enable fallback hotspot (captive portal) in case wifi connection fails
                ap:
                  ssid: "Test Hotspot"
                  password: "hotSpot$2020"
               
              # Enable logging
              logger:
               
              # Enable API
              api:
                password: "number2"
               
              # OTA Password
              ota:
                password: "number2"
              
              sensor:
                - platform: ultrasonic
                  trigger_pin: D2
                  echo_pin: D1
                  name: "Ultrasonic Sensor Brief"
              
              sensor:
                - platform: ultrasonic
                  trigger_pin: D7
                  echo_pin: D5
                  name: "Ultrasonic Sensor Paket"
              
              # output switch
                - platform: output
                  name: "Switch Kontakt Brief"
                  output: 'gpio_12'	
              
              # output switch
                - platform: output
                  name: "Switch Kontakt Paket"
                  output: 'gpio_16'	
              		
              

              Bekomme immer Fehlermeldung:

              INFO Reading configuration config/poststation.yaml...
              ERROR Error while reading config: Invalid YAML syntax:
              
              while parsing a block mapping
                in "config/poststation.yaml", line 25, column 3:
                    password: "number2"
                    ^
              expected <block end>, but found '-'
                in "config/poststation.yaml", line 28, column 3:
                    - platform: output
                    ^
              

              Er mag nicht 2x das gleich im Yaml, wenn ich nur 1 Sensor drin habe, bekomme ich keine Fehlermeldung. hmmm...

              Dutchman 1 Reply Last reply Reply Quote 0
              • K
                klassisch Most Active last edited by

                Installation des Adapters hat funktioniert.
                Jetzt habe ich den Adapter mal gestartet und mein "Parserproblem" type chopper - oder was es auch immer ist - ist leider immer noch da.

                2021-03-30 19:28:18.466 - info: host.DESKTOP-0UPK22M(ioBrMain2) "system.adapter.esphome.0" enabled
                2021-03-30 19:28:18.578 - info: host.DESKTOP-0UPK22M(ioBrMain2) instance system.adapter.esphome.0 started with pid 8624
                2021-03-30 19:28:19.588 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[0]: C:\Program Fi
                2021-03-30 19:28:19.588 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[1]: les\iobroker\ioBrMain026\node_modules\esphome-native-api\lib\utils\messages.js:55
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[1]: const type_to_id =
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[2]: Object.fromEntries(Object.entries(id_to_typ
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[3]: e).map(([k, v]) => [v, k]));
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[3]:
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[4]: ^
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[4]:
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[4]: TypeError: Object.fromEntries is not a fu
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[5]: nction
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[5]: at Object. (C:\Program F
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[6]: iles\iobroker\ioBrMain026\nod
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[7]: e_modules\esphome-native-api\lib\utils\messages.js:55:27)
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[8]:
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[8]: at Module._comp
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[9]: ile (internal/modules/cjs/loader.js:778:30)
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[9]:
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[10]: at Object.Module._extensions..js (internal/m
                2021-03-30 19:28:19.589 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[11]: odules/cjs/loader.js:789:10)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[11]: at Module.loa
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[12]: d (internal/modules/cjs/loader.js:653:32)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[12]:
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[13]: at tryModuleLoad (internal/modules/cjs/loader
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[14]: .js:593:12)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[14]: at Function.Module._load (inte
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[15]: rnal/modules/cjs/loader.js:585:3)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[15]: at Modul
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[16]: e.require (internal/modules/cjs/loader.js:692:1
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[17]: 7)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[17]: at require (internal/modules/cjs/helper
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[18]: s.js:25:18)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[18]: at Object. (C:\Program Files\iobroker\i
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[19]: oBrMain026\node_modules\esphom
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[20]: e-native-api\lib\connection.js:3:40)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[20]: at Mod
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[21]: ule._compile (internal/modules/cjs/loader.js:778
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[22]: :30)
                2021-03-30 19:28:19.590 - error: host.DESKTOP-0UPK22M(ioBrMain2) instance system.adapter.esphome.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                2021-03-30 19:28:19.590 - info: host.DESKTOP-0UPK22M(ioBrMain2) Restart adapter system.adapter.esphome.0 because enabled
                2021-03-30 19:28:46.482 - info: host.DESKTOP-0UPK22M(ioBrMain2) "system.adapter.esphome.0" disabled
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[0]: C:\Program Files\io
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[1]: broker\ioBrMain026\node_modules\esphome-native-api\lib\utils\messages.js:55
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[1]: const type_to_id =
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[2]: Object.fromEntries(Object.entries(id_to_
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[3]: type).map(([k, v]) => [v, k]));
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[3]:
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[4]:
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[5]: ^
                2021-03-30 19:28:50.186 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[5]:
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[5]: TypeError: Object.fromEntrie
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[6]: s is not a fun
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[7]: ction
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[7]: at Object. (C:\P
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[8]: rogram Files\
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[9]: iobroker\ioBrMain026\node_modules\esp
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[10]: home-native-api
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[11]: \lib\utils\messages.js:55:27)
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[11]: at
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[12]: Module._compile (internal/modules/cjs
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[13]: /loader.js:778:30)
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[13]: at Object.Modul
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[14]: e._extensions..js
                2021-03-30 19:28:50.187 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[15]: (internal/modules/cjs/loader.js:789:10)
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[16]:
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[16]: at Modul
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[17]: e.load (internal/modules/cjs/loader.js:653:3
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[18]: 2)
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[18]: at t
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[19]: ryModuleLoad (internal/modules/c
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[20]: js/loader.js:593:12)
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[20]: at
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[21]: Function.Module._load
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[22]: (internal/modules/cjs/loader.js:
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[23]: 585:3)
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[23]: at Module.require (internal/modules/c
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[24]: js/loader.js:692:17)
                2021-03-30 19:28:50.188 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[24]: at require (internal/modules/cjs/hel
                2021-03-30 19:28:50.189 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[25]: pers.js:25:18)
                2021-03-30 19:28:50.189 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[25]: at Object. (C:\Program Files\
                2021-03-30 19:28:50.189 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[26]: iobroker\ioBrMain026\node_modules\esphome-native-api\lib\conn
                2021-03-30 19:28:50.189 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[27]: ection.js:3:40)
                2021-03-30 19:28:50.189 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[27]: at Module._compile (internal/modules/cjs/
                2021-03-30 19:28:50.189 - error: host.DESKTOP-0UPK22M(ioBrMain2) Caught by controller[28]: loader.js:778:30)
                2021-03-30 19:28:50.190 - error: host.DESKTOP-0UPK22M(ioBrMain2) instance system.adapter.esphome.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                2021-03-30 19:28:50.190 - info: host.DESKTOP-0UPK22M(ioBrMain2) Do not restart adapter system.adapter.esphome.0 because disabled or deleted
                

                1 Reply Last reply Reply Quote 0
                • Dutchman
                  Dutchman Developer Most Active Administrators @Slowman last edited by

                  @slowman sagte in Esp Easy Einstellungen Ultrasensor:

                  Er mag nicht 2x das gleich im Yaml, wenn ich nur 1 Sensor drin habe, bekomme ich keine Fehlermeldung. hmmm...

                  da sind aber mehrere Sachen falsch in deiner YAML 🙂

                  gpio pin in Anführungszeichen:

                  Schermafbeelding 2021-03-30 om 21.41.55.png
                  Schermafbeelding 2021-03-30 om 21.43.04.png

                  Type sensor ist doppelt definiert

                  Schermafbeelding 2021-03-30 om 21.43.42.png
                  Schermafbeelding 2021-03-30 om 21.43.48.png

                  Besser

                  sensor:
                    - platform: ultrasonic
                      trigger_pin: D2
                      echo_pin: D1
                      name: "Ultrasonic Sensor Brief"
                    - platform: ultrasonic
                      trigger_pin: D7
                      echo_pin: D5
                      name: "Ultrasonic Sensor Paket"
                  

                  Device Name darf keinen Großbuchstaben haben :

                  Schermafbeelding 2021-03-30 om 21.44.01.png

                  Platform Sensor OutPut gibt es nicht

                  Schermafbeelding 2021-03-30 om 21.45.17.png

                  Der Switch ist nicht correct definiert

                  Schermafbeelding 2021-03-30 om 21.45.17.png

                  Hier mal die überarbeitet YAML (lässt sich auch Compilen ;-))

                  # Hier die Device config
                  esphome:
                    name: poststation
                    platform: ESP8266
                    board: nodemcuv2
                   
                  wifi:
                    ssid: "GastTest"
                    password: "xxxxxxxx"
                   
                    # Enable fallback hotspot (captive portal) in case wifi connection fails
                    ap:
                      ssid: "Test Hotspot"
                      password: "hotSpot$2020"
                   
                  # Enable logging
                  logger:
                   
                  # Enable API
                  api:
                    password: "number2"
                   
                  # OTA Password
                  ota:
                    password: "number2"
                   
                  sensor:
                    - platform: ultrasonic
                      trigger_pin: D2
                      echo_pin: D1
                      name: "Ultrasonic Sensor Brief"
                    - platform: ultrasonic
                      trigger_pin: D7
                      echo_pin: D5
                      name: "Ultrasonic Sensor Paket"
                   
                  switch: 
                  # output switch
                    - platform: gpio
                      name: "Switch Kontakt Brief"
                      pin: 12
                  
                  # output switch
                    - platform: gpio
                      name: "Switch Kontakt Paket"
                      pin: 16
                  
                  Slowman 1 Reply Last reply Reply Quote 1
                  • Slowman
                    Slowman @Dutchman last edited by

                    @dutchman

                    Danke probiere ich aus, Notfalls muss ich morgen noch mal nerven 😉

                    Dutchman 1 Reply Last reply Reply Quote 0
                    • Dutchman
                      Dutchman Developer Most Active Administrators @Slowman last edited by Dutchman

                      @slowman sagte in Esp Easy Einstellungen Ultrasensor:

                      @dutchman

                      Danke probiere ich aus, Notfalls muss ich morgen noch mal nerven 😉

                      feel free 😉
                      Darf ich dich dan auch nerven zum docu ergänzen?
                      Wen wir es hinbekommen, muessen wir auch wissen koennen wo es geklemmt hat ? 🐷

                      Slowman 1 Reply Last reply Reply Quote 0
                      • Slowman
                        Slowman @Dutchman last edited by

                        @dutchman

                        Ja, auf jeden Fall!

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        919
                        Online

                        31.6k
                        Users

                        79.5k
                        Topics

                        1.3m
                        Posts

                        4
                        22
                        2414
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo