# OWON PIR313-E Sensor abschließen

**URL:** <https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527>\
**Category:** Demandes livrées\
**Created:** [25. November 2023 um 09:29 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527 "2023-11-25T09:29:30Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![bab85](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@bab85](https://community.gladysassistant.com/u/bab85)\
**Post date:** [1. Dezember 2023 um 11:55 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/21 "2023-12-01T11:55:57Z")

</div>

Ich habe die Datenbankinformationen so wie im Tutorial belassen (SQLITE\_FILE\_PATH=/var/lib/gladysassistant/gladys-production.db ), also scheinbar die Produktionsdatenbank. Allerdings musste ich die Sensoren trotzdem neu paaren. Ich weiß nicht, ob das normal ist (es stimmt, dass ich, da ich die Produktionsdatenbank verwende, erwartet hätte, dass meine Sensoren bereits erkannt wären). In z2m war nichts mehr.

Dass du mich das fragst, habe ich gerade eine Überprüfung gemacht. Mir wird klar, dass ich einen Fehler gemacht haben muss 🫢, denn ich dachte, ich hätte zwei z2m-Datenbanken, aber nein, wenn ich zu meinem Gladys-Produktionssystem zurückkehre, habe ich dasselbe z2m mit nur den beiden Sensoren, die ich gerade getestet habe, und es gibt ein rotes Kreuz zwischen Gladys und MQTT in der Konfiguration.  
Ich werde warten, bis ich die Tests für deine Entwicklung abgeschlossen habe, und dann werde ich es später sauber aufräumen.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [1. Dezember 2023 um 12:22 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/22 "2023-12-01T12:22:27Z")

</div>

> [@bab85](#):
>
> (SQLITE\_FILE\_PATH=/var/lib/gladysassistant/gladys-production.db )

Wie hast du den Ordner benannt, der die Datenbank und die Konfiguration enthält?  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/17fa1455de19c15d5cccd01f81fa0ffc39995ba3.png)

Kannst du zur Seite von zigbee2mqtt gehen und einen Screenshot des Status-Tabs machen, damit ich alle Exposes deines Sensors sehen kann?

Hier ein Beispiel.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/5a70e61d65d7b47601a15efb2f43e70dfd873c75.png)

---

<div class="post-metadata">

**Author:** ![bab85](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@bab85](https://community.gladysassistant.com/u/bab85)\
**Post date:** [1. Dezember 2023 um 12:43 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/23 "2023-12-01T12:43:15Z")

</div>

Für den Ordnernamen musste ich /var/lib/gladysassistant\_OWON\_test: /var/lib/gladysassistant\ angeben.

Und für den Status habe ich dies:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/22c47996b764957076738978479a8ec9f7cadd94.png)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [1. Dezember 2023 um 13:02 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/24 "2023-12-01T13:02:55Z")

</div>

Ok, wenn du den Namen richtig geändert hast, dann ist das nicht die gleiche Konfiguration wie in deiner Produktion, also ist es eine neue Instanz.

Für den Tamper-Export ist er tatsächlich vorhanden, ich schaue mir das heute Abend an und halte dich auf dem Laufenden.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [1. Dezember 2023 um 22:31 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/25 "2023-12-01T22:31:55Z")

</div>

@bab85,  
ich habe herausgefunden, warum du die Funktion „tamper“ auf deinem Sensor nicht gesehen hast, mein Fehler 😓

Ich teste es nochmal auf meiner Seite und werde ein neues Image erstellen.  
Ich sage dir Bescheid, wenn es verfügbar ist.

Ich gebe dir gleichzeitig die Befehle, um das Image auf deiner Seite zu aktualisieren.

@pierre-gilles, ich habe auf meiner Seite einen Fehler gemacht 😭 beim Versuch, meinen Branch zu rebasen, wodurch die PR geschlossen wurde.  
Daher die neue PR

> <https://github.com/GladysAssistant/Gladys/pull/1962>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[\] If your changes affects code, did your write the tests?
> \- \[\] Are tests passing? (\`npm test\` on both front/server)
> \- \[\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Add tamper and battery low expose in zigbee2mqtt integration
> 
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/11477113/73d36efd-6a72-4dcb-aa47-7a8d3eb53337)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [1. Dezember 2023 um 23:06 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/26 "2023-12-01T23:06:15Z")

</div>

Das Bild ist bereit  
willde71/gladys-test:zigbee2mqtt-owon-pir313-e

Hier sind die Befehle, falls du es nochmal testen möchtest

```auto
docker stop gladys
docker rm gladys
docker pull willde71/gladys-test:zigbee2mqtt-owon-pir313-e
docker run .....

```

Für die Befehle `stop` und `rm` verwende den Namen, den du während deines Tests verwendet hast.  
Danach führe den Befehl `docker run...` erneut aus.

---

<div class="post-metadata">

**Author:** ![bab85](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@bab85](https://community.gladysassistant.com/u/bab85)\
**Post date:** [2. Dezember 2023 um 08:11 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/27 "2023-12-02T08:11:55Z")

</div>

Hallo,  
Ich habe das neue Bild getestet. Perfekt, alles funktioniert einwandfrei. Der Sabotage-Erkennungs-Item ist verfügbar. Wenn der Detektor auf seiner Halterung ist, haben wir den Wert «&nbsp;nein&nbsp;» in grün, andernfalls «&nbsp;ja&nbsp;» in rot. Bei der Batterie funktioniert es weiterhin. 👍

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [2. Dezember 2023 um 13:16 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/28 "2023-12-02T13:16:12Z")

</div>

@bab85, danke für deinen Test.👍

---

<div class="post-metadata">

**Author:** ![bab85](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@bab85](https://community.gladysassistant.com/u/bab85)\
**Post date:** [3. Dezember 2023 um 18:24 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/29 "2023-12-03T18:24:46Z")

</div>

Vielen Dank vor allem für die Entwicklung und die Schnelligkeit der Berücksichtigung.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [7. Dezember 2023 um 13:10 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/30 "2023-12-07T13:10:16Z")

</div>

Danke für das PR @Will_71! 🙂

Ich habe dir Feedback gegeben:

> <https://github.com/GladysAssistant/Gladys/pull/1962#pullrequestreview-1770134635>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[\] If your changes affects code, did your write the tests?
> \- \[\] Are tests passing? (\`npm test\` on both front/server)
> \- \[\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Add tamper and battery low expose in zigbee2mqtt integration
> 
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/11477113/73d36efd-6a72-4dcb-aa47-7a8d3eb53337)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [7. Dezember 2023 um 13:22 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/31 "2023-12-07T13:22:35Z")

</div>

Ich habe gesehen, ich mache die Änderung heute Abend.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [7. Dezember 2023 um 22:20 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/32 "2023-12-07T22:20:23Z")

</div>

@pierre-gilles, ich habe die Änderung vorgenommen

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [8. Dezember 2023 um 08:52 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/33 "2023-12-08T08:52:45Z")

</div>

Danke für die Fixes @Will_71! Getestet und für mich okay 🙂

Ich habe gemerged und es wird in der nächsten Version von Gladys veröffentlicht!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [11. Dezember 2023 um 09:55 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/34 "2023-12-11T09:55:12Z")

</div>

Das ist in der neuesten Version von Gladys verfügbar!

> [@Gladys Assistant 4.32: Die Sonos-Integration ist verfügbar! musical\_note](https://community.gladysassistant.com/t/gladys-assistant-4-32-lintegration-sonos-est-disponible/8615):
>
> Salut à tous ! Très heureux de lancer aujourd’hui Gladys Assistant 4.32, qui intègre notamment l’intégration Sonos partying_face Pour en savoir plus : Merci à tous les contributeurs qui ont participé à cette release: @Lokkye @cicoub13 @Will_71 @Brisou raised_hands Et un tonnerre d’applaudissement pour @Brisou qui a fait sa première PR sur Gladys clapclapclap

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [11. Dezember 2023 um 09:55 UTC](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527/35 "2023-12-11T09:55:14Z")

</div>



[Vorherige Seite](https://community.gladysassistant.com/t/finir-lintegration-du-detecteur-owon-pir313-e/8527.md?page=1)
