Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Bewegungserkennung mit Motioneye, Lösung komplett in Blockly

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.9k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

Bewegungserkennung mit Motioneye, Lösung komplett in Blockly

Scheduled Pinned Locked Moved Blockly
blocklycommunicationtemplatesecuritymonitoring
62 Posts 12 Posters 18.6k Views 18 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • WszeneW Wszene

    @marc_el_k sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

    @crunchip Ich bin hier nach gegangen

    MotioneyeOS Aktivierung/Deaktivierung Bewegungserkennung

    Als Script habe ich den EXEC Befehl ausgeführt mit

    curl http://IPIOBROKER:7999/1/detection/start
    

    bzw.

    curl http://IPIOBROKER:7999/1/detection/pause
    

    Die 1 im Link steht für Kamera 1...also anpassen.

    Den Status kannst du mit

    http://IPIOBROKER:7999/1/detection/status
    

    abfragen.

    Bei mir hatte es erst nicht geklappt, bis ich in der motion.conf auf

    webcontrol_localhost off
    

    geändert habe.

    Hoffe das hilft dir!


    Wenn ich diese Befehle vom ioBroker absetzte bekomme ich die Antwort der "Verbindungsaufbau wurde abgelehnt"
    Nehme ich die IP vom MotionEye passiert das selbe

    Mache ich das Ganze aber direkt auf der MotionEye VM dann geht es

    Und die nächste Frage die ich hätte
    Wie bekomme ich den Status in einen Datenpunkt
    Über die URL bekomme ich den Status korekt angezeigt

    Danke im Voraus
    Gruß
    Marcel

    oberfraggerO Offline
    oberfraggerO Offline
    oberfragger
    wrote on last edited by oberfragger
    #40

    @wszene sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

    Wenn ich diese Befehle vom ioBroker absetzte bekomme ich die Antwort der "Verbindungsaufbau wurde abgelehnt"

    Das muss aber klappen sonst bringt der Rest nix. Bitte Datei Datei /etc/motioneye/motion.conf editieren und "webcontrol_localhost off" anpassen (bzw. motioneye.conf) und neustarten.

    Unter http://motioneye:7999/ (im Browser) erhalte ich dann:

    Motion 4.5.0 Running [2] Cameras 
    1 
    2 
    
    WszeneW 2 Replies Last reply
    0
    • oberfraggerO oberfragger

      @wszene sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

      Wenn ich diese Befehle vom ioBroker absetzte bekomme ich die Antwort der "Verbindungsaufbau wurde abgelehnt"

      Das muss aber klappen sonst bringt der Rest nix. Bitte Datei Datei /etc/motioneye/motion.conf editieren und "webcontrol_localhost off" anpassen (bzw. motioneye.conf) und neustarten.

      Unter http://motioneye:7999/ (im Browser) erhalte ich dann:

      Motion 4.5.0 Running [2] Cameras 
      1 
      2 
      
      WszeneW Offline
      WszeneW Offline
      Wszene
      wrote on last edited by
      #41

      @oberfragger
      Danke

      Den Neustart habe ich noch nicht gemacht
      Das werde ich heute Abend nachholen

      Meine Hard- & Software:

      • MSI Cubi 5 10M-049DE mit Proxmox
      • CC2652P Zigbee Stick
      • Steckdosen mit Tasmota und Zigbee
      • Lichtschalter mit Tasmota
      • IKEA TRÅDFRI Glühbirnen
      • Aqara Sensoren
      1 Reply Last reply
      0
      • oberfraggerO oberfragger

        @wszene sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

        Wenn ich diese Befehle vom ioBroker absetzte bekomme ich die Antwort der "Verbindungsaufbau wurde abgelehnt"

        Das muss aber klappen sonst bringt der Rest nix. Bitte Datei Datei /etc/motioneye/motion.conf editieren und "webcontrol_localhost off" anpassen (bzw. motioneye.conf) und neustarten.

        Unter http://motioneye:7999/ (im Browser) erhalte ich dann:

        Motion 4.5.0 Running [2] Cameras 
        1 
        2 
        
        WszeneW Offline
        WszeneW Offline
        Wszene
        wrote on last edited by
        #42

        @oberfragger

        Der Neustart hat geholfen
        Danke

        Nun habe ich nur noch die Einstellungen für die Bewegungsempfindlichkeit

        Hat da evtl. noch jemand eine Idee?

        Meine Hard- & Software:

        • MSI Cubi 5 10M-049DE mit Proxmox
        • CC2652P Zigbee Stick
        • Steckdosen mit Tasmota und Zigbee
        • Lichtschalter mit Tasmota
        • IKEA TRÅDFRI Glühbirnen
        • Aqara Sensoren
        1 Reply Last reply
        1
        • Virus2K12V Offline
          Virus2K12V Offline
          Virus2K12
          wrote on last edited by
          #43

          Auch wenn der Beitrag schon älter ist, eventuell liest das ja einer und kann mir weiterhelfen.
          Habe alles nach Anleitung gemacht, nur den Port von 8082 auf 8083 geändert da alles auf einem RPI4 läuft. Soweit funktionier auch alles, nur bei:

          Wenn man jetzt also "Foto" an seinen Bot schickt, wird ein Foto ausgelöst und geschickt.

          kommt kein Foto. Er schickt mir "Foto kommt" zurück, aber mehr passiert nicht.

          ? 1 Reply Last reply
          0
          • Virus2K12V Virus2K12

            Auch wenn der Beitrag schon älter ist, eventuell liest das ja einer und kann mir weiterhelfen.
            Habe alles nach Anleitung gemacht, nur den Port von 8082 auf 8083 geändert da alles auf einem RPI4 läuft. Soweit funktionier auch alles, nur bei:

            Wenn man jetzt also "Foto" an seinen Bot schickt, wird ein Foto ausgelöst und geschickt.

            kommt kein Foto. Er schickt mir "Foto kommt" zurück, aber mehr passiert nicht.

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #44

            @virus2k12

            logfile? Fehlermeldungen?

            Virus2K12V 1 Reply Last reply
            0
            • ? A Former User

              @virus2k12

              logfile? Fehlermeldungen?

              Virus2K12V Offline
              Virus2K12V Offline
              Virus2K12
              wrote on last edited by
              #45

              @ilovegym nicht im log und keine Fehlermeldung.?

              1 Reply Last reply
              0
              • Virus2K12V Offline
                Virus2K12V Offline
                Virus2K12
                wrote on last edited by Virus2K12
                #46

                im javasript haut er dieses log raus, wenn ich per Telegramm Foto schicke:

                3/6/2024, 11:03:26 AM.583 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                3/6/2024, 11:03:27 AM.656 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                3/6/2024, 11:03:27 AM.695 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                3/6/2024, 11:03:45 AM.966 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                3/6/2024, 11:05:56 AM.554 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                3/6/2024, 11:05:57 AM.241 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                3/6/2024, 11:05:57 AM.267 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                3/6/2024, 11:06:07 AM.386 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                3/6/2024, 11:06:41 AM.546 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                3/6/2024, 11:06:42 AM.353 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                3/6/2024, 11:06:42 AM.385 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                3/6/2024, 11:06:52 AM.330 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                3/6/2024, 11:07:07 AM.332 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                3/6/2024, 11:07:08 AM.057 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                3/6/2024, 11:07:08 AM.064 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions

                ? 1 Reply Last reply
                0
                • Virus2K12V Offline
                  Virus2K12V Offline
                  Virus2K12
                  wrote on last edited by Virus2K12
                  #47

                  94b81d34-d5d5-422c-b702-e6a590dcce70-image.png

                  26539e14-0ab6-4c24-b6d2-d39357eabb99-image.png

                  crunchipC 1 Reply Last reply
                  0
                  • Virus2K12V Virus2K12

                    94b81d34-d5d5-422c-b702-e6a590dcce70-image.png

                    26539e14-0ab6-4c24-b6d2-d39357eabb99-image.png

                    crunchipC Offline
                    crunchipC Offline
                    crunchip
                    Forum Testing Most Active
                    wrote on last edited by
                    #48

                    @virus2k12 setz mal den Haken Mit Ergebnisse, im Blockly

                    umgestiegen von Proxmox auf Unraid

                    1 Reply Last reply
                    0
                    • Virus2K12V Offline
                      Virus2K12V Offline
                      Virus2K12
                      wrote on last edited by Virus2K12
                      #49

                      keine Änderung, werder im Telegramm noch im log.

                      d0023c1f-cc57-4879-99b7-7f9d4f723df0-image.png

                      8cae913f-734d-4b59-b9ad-6ad089f8eb13-image.png

                      1 Reply Last reply
                      0
                      • Virus2K12V Virus2K12

                        im javasript haut er dieses log raus, wenn ich per Telegramm Foto schicke:

                        3/6/2024, 11:03:26 AM.583 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                        3/6/2024, 11:03:27 AM.656 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                        3/6/2024, 11:03:27 AM.695 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                        3/6/2024, 11:03:45 AM.966 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                        3/6/2024, 11:05:56 AM.554 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                        3/6/2024, 11:05:57 AM.241 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                        3/6/2024, 11:05:57 AM.267 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                        3/6/2024, 11:06:07 AM.386 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                        3/6/2024, 11:06:41 AM.546 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                        3/6/2024, 11:06:42 AM.353 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                        3/6/2024, 11:06:42 AM.385 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                        3/6/2024, 11:06:52 AM.330 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                        3/6/2024, 11:07:07 AM.332 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                        3/6/2024, 11:07:08 AM.057 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                        3/6/2024, 11:07:08 AM.064 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #50

                        @virus2k12

                        laedt er das Bild denn auch runter, also funktioniert der exec curl befehl?

                        Virus2K12V 1 Reply Last reply
                        0
                        • ? A Former User

                          @virus2k12

                          laedt er das Bild denn auch runter, also funktioniert der exec curl befehl?

                          Virus2K12V Offline
                          Virus2K12V Offline
                          Virus2K12
                          wrote on last edited by Virus2K12
                          #51

                          @ilovegym ja. liegt im angegeben pfad. siehe screen weiter oben

                          https://forum.iobroker.net/topic/40016/bewegungserkennung-mit-motioneye-lösung-komplett-in-blockly/47

                          1 Reply Last reply
                          0
                          • Virus2K12V Offline
                            Virus2K12V Offline
                            Virus2K12
                            wrote on last edited by
                            #52

                            und das sagt mein iob log:

                            aaba2afb-c27e-446f-b15a-222786cf569f-image.png

                            1 Reply Last reply
                            0
                            • Virus2K12V Offline
                              Virus2K12V Offline
                              Virus2K12
                              wrote on last edited by
                              #53

                              was ich jetzt beobachtet habe, der Wert von takeSnapshot ändert sich nicht in true und lässt sich auch nicht per Hand auf true setzen. Bei getLastpic funktioniert das.?
                              Woran kann das liegen?

                              crunchipC 1 Reply Last reply
                              0
                              • Virus2K12V Virus2K12

                                was ich jetzt beobachtet habe, der Wert von takeSnapshot ändert sich nicht in true und lässt sich auch nicht per Hand auf true setzen. Bei getLastpic funktioniert das.?
                                Woran kann das liegen?

                                crunchipC Offline
                                crunchipC Offline
                                crunchip
                                Forum Testing Most Active
                                wrote on last edited by
                                #54

                                @virus2k12 sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

                                Woran kann das liegen?

                                Zeig mal das Raw vom DP

                                umgestiegen von Proxmox auf Unraid

                                1 Reply Last reply
                                0
                                • Virus2K12V Offline
                                  Virus2K12V Offline
                                  Virus2K12
                                  wrote on last edited by
                                  #55

                                  @crunchip
                                  {
                                  "common": {
                                  "name": "motioneye.takeSnapshot",
                                  "role": "state",
                                  "type": "boolean",
                                  "custom": {
                                  "telegram.0": {
                                  "enabled": true,
                                  "alias": "takeSnapshot",
                                  "buttons": 3,
                                  "writeOnly": false,
                                  "offCommand": "",
                                  "onCommand": "",
                                  "offStatus": "",
                                  "onStatus": "",
                                  "onlyFalse": false,
                                  "readOnly": false,
                                  "report": true,
                                  "onlyTrue": false,
                                  "reportChanges": true
                                  }
                                  }
                                  },
                                  "native": {},
                                  "type": "state",
                                  "_id": "javascript.0.motioneye.takeSnapshot",
                                  "acl": {
                                  "object": 1636,
                                  "state": 1636,
                                  "owner": "system.user.admin",
                                  "ownerGroup": "system.group.user"
                                  },
                                  "from": "system.adapter.admin.0",
                                  "user": "system.user.admin",
                                  "ts": 1710056777837
                                  }

                                  crunchipC 1 Reply Last reply
                                  0
                                  • Virus2K12V Virus2K12

                                    @crunchip
                                    {
                                    "common": {
                                    "name": "motioneye.takeSnapshot",
                                    "role": "state",
                                    "type": "boolean",
                                    "custom": {
                                    "telegram.0": {
                                    "enabled": true,
                                    "alias": "takeSnapshot",
                                    "buttons": 3,
                                    "writeOnly": false,
                                    "offCommand": "",
                                    "onCommand": "",
                                    "offStatus": "",
                                    "onStatus": "",
                                    "onlyFalse": false,
                                    "readOnly": false,
                                    "report": true,
                                    "onlyTrue": false,
                                    "reportChanges": true
                                    }
                                    }
                                    },
                                    "native": {},
                                    "type": "state",
                                    "_id": "javascript.0.motioneye.takeSnapshot",
                                    "acl": {
                                    "object": 1636,
                                    "state": 1636,
                                    "owner": "system.user.admin",
                                    "ownerGroup": "system.group.user"
                                    },
                                    "from": "system.adapter.admin.0",
                                    "user": "system.user.admin",
                                    "ts": 1710056777837
                                    }

                                    crunchipC Offline
                                    crunchipC Offline
                                    crunchip
                                    Forum Testing Most Active
                                    wrote on last edited by crunchip
                                    #56

                                    @virus2k12 und den anderen zum Vergleich
                                    Irgendwie fehlt da read/write true

                                    umgestiegen von Proxmox auf Unraid

                                    Virus2K12V 1 Reply Last reply
                                    0
                                    • crunchipC crunchip

                                      @virus2k12 und den anderen zum Vergleich
                                      Irgendwie fehlt da read/write true

                                      Virus2K12V Offline
                                      Virus2K12V Offline
                                      Virus2K12
                                      wrote on last edited by
                                      #57

                                      @crunchip
                                      {
                                      "common": {
                                      "name": "motioneye.getLastPic",
                                      "role": "state",
                                      "type": "boolean",
                                      "custom": {
                                      "telegram.0": {
                                      "enabled": true,
                                      "alias": "getLastPic",
                                      "buttons": 3,
                                      "writeOnly": false,
                                      "offCommand": "",
                                      "onCommand": "",
                                      "offStatus": "",
                                      "onStatus": "",
                                      "onlyFalse": false,
                                      "readOnly": false,
                                      "report": true,
                                      "onlyTrue": false,
                                      "reportChanges": true
                                      }
                                      }
                                      },
                                      "native": {},
                                      "type": "state",
                                      "_id": "javascript.0.motioneye.getLastPic",
                                      "acl": {
                                      "object": 1636,
                                      "state": 1636,
                                      "owner": "system.user.admin",
                                      "ownerGroup": "system.group.administrator"
                                      },
                                      "from": "system.adapter.admin.0",
                                      "user": "system.user.admin",
                                      "ts": 1710056528080
                                      }

                                      Virus2K12V 1 Reply Last reply
                                      0
                                      • Virus2K12V Virus2K12

                                        @crunchip
                                        {
                                        "common": {
                                        "name": "motioneye.getLastPic",
                                        "role": "state",
                                        "type": "boolean",
                                        "custom": {
                                        "telegram.0": {
                                        "enabled": true,
                                        "alias": "getLastPic",
                                        "buttons": 3,
                                        "writeOnly": false,
                                        "offCommand": "",
                                        "onCommand": "",
                                        "offStatus": "",
                                        "onStatus": "",
                                        "onlyFalse": false,
                                        "readOnly": false,
                                        "report": true,
                                        "onlyTrue": false,
                                        "reportChanges": true
                                        }
                                        }
                                        },
                                        "native": {},
                                        "type": "state",
                                        "_id": "javascript.0.motioneye.getLastPic",
                                        "acl": {
                                        "object": 1636,
                                        "state": 1636,
                                        "owner": "system.user.admin",
                                        "ownerGroup": "system.group.administrator"
                                        },
                                        "from": "system.adapter.admin.0",
                                        "user": "system.user.admin",
                                        "ts": 1710056528080
                                        }

                                        Virus2K12V Offline
                                        Virus2K12V Offline
                                        Virus2K12
                                        wrote on last edited by Virus2K12
                                        #58

                                        wurden beide im Blockly so angelegt.
                                        Habe mal read + write mit rein genommen, ändert sich aber nichts.

                                        crunchipC 1 Reply Last reply
                                        0
                                        • Virus2K12V Virus2K12

                                          wurden beide im Blockly so angelegt.
                                          Habe mal read + write mit rein genommen, ändert sich aber nichts.

                                          crunchipC Offline
                                          crunchipC Offline
                                          crunchip
                                          Forum Testing Most Active
                                          wrote on last edited by
                                          #59

                                          @virus2k12 ich sehe an den beiden keinen Unterschied, kannst mal den DP manuell selbst anlegen

                                          umgestiegen von Proxmox auf Unraid

                                          Virus2K12V 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          755

                                          Online

                                          32.6k

                                          Users

                                          82.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe