Giter Club home page Giter Club logo

Comments (17)

Patricen1 avatar Patricen1 commented on July 1, 2024

Pareil pour moi, 1 seule TGHR 122NX, ça fonctionne avec le driver d'origine mais que la température sur le plugin, et au bout d'un "certain temps" plus d'upload des données.

Voici mon log :
2017-12-09 18:10:42.355 (RFPlayer avec plugin) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-73", "floorNoise": "-102", "rfQuality": "7", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433920"},"infos": {"subType": "0", "id_PHY": "0x1A2D", "id_PHYMeaning": "THGR122/228/238/268,THGN122/123/132", "adr_channel": "49154", "adr": "192", "channel": "2", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "+20.6", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "54", "unit" : "%"}]}}}
2017-12-09 18:10:42.355 (RFPlayer avec plugin) infoType : 4
2017-12-09 18:10:42.355 (RFPlayer avec plugin) id : 0x1A2D adr_channel : 49154
2017-12-09 18:10:42.355 (RFPlayer avec plugin) Options to find or set : {'protocol': '5', 'adr_channel': '49154', 'id': '0x1A2D', 'infoType': '4', 'Temp': '1'}
2017-12-09 18:10:42.355 (RFPlayer avec plugin) Creating device 'Temp - 49154 (channel 2)'.
2017-12-09 18:10:42.357 (RFPlayer avec plugin - Temp - 49154 (channel 2)) Updating device from 0:'' to have values 1:'+20.6'.
2017-12-09 18:10:42.359 (RFPlayer avec plugin) Options to find or set : {'protocol': '5', 'adr_channel': '49154', 'id': '0x1A2D', 'Hygro': '1', 'infoType': '4'}
2017-12-09 18:10:42.359 (RFPlayer avec plugin) Devices already exist. Unit=2
2017-12-09 18:10:42.359 (RFPlayer avec plugin) Options find in DB: {'protocol': '5', 'infoType': '4', 'id': '0x1A2D', 'adr_channel': '49154', 'Temp': '1'} for devices unit 2
2017-12-09 18:10:42.359 (RFPlayer avec plugin - Temp - 49154 (channel 2)) Updating device from 1:'+20.6' to have values 54:'1'.
2017-12-09 18:10:42.360 (RFPlayer avec plugin) Options to find or set : {'protocol': '5', 'adr_channel': '49154', 'id': '0x1A2D', 'infoType': '4', 'TempHygro': '1'}
2017-12-09 18:10:42.360 (RFPlayer avec plugin) Devices already exist. Unit=2
2017-12-09 18:10:42.361 (RFPlayer avec plugin) Options find in DB: {'protocol': '5', 'infoType': '4', 'id': '0x1A2D', 'adr_channel': '49154', 'Temp': '1'} for devices unit 2
2017-12-09 18:10:42.361 (RFPlayer avec plugin - Temp - 49154 (channel 2)) Updating device from 54:'1' to have values 1:'+20.6;54;1'.
2017-12-09 18:10:46.470 (RFPlayer avec plugin) Calling message handler 'onHeartbeat'.

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on July 1, 2024

merci, j'essaie de vous corriger ça la semaine prochaine ;)

from domoticz-rfplayer.

Patricen1 avatar Patricen1 commented on July 1, 2024

👍

from domoticz-rfplayer.

zzdomi avatar zzdomi commented on July 1, 2024

J'ai fait un pull request pour corriger ce problème.

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on July 1, 2024

je viens de merge, merci ;)

j attends vos confirmation

from domoticz-rfplayer.

zzdomi avatar zzdomi commented on July 1, 2024

OK pour moi.

from domoticz-rfplayer.

Patricen1 avatar Patricen1 commented on July 1, 2024

De mon côté, toujours des erreurs :
2017-12-12 18:44:11.348 (RFPlayer avec plugin) Calling message handler 'onHeartbeat'.
2017-12-12 18:44:11.548 (RFPlayer avec plugin) Received 496 bytes of data:
2017-12-12 18:44:11.548 (RFPlayer avec plugin) 5a 49 41 33 33 7b 20 22 66 72 61 6d 65 22 20 3a 7b 22 68 65 ZIA33{."frame".:{"he
2017-12-12 18:44:11.548 (RFPlayer avec plugin) 61 64 65 72 22 3a 20 7b 22 66 72 61 6d 65 54 79 70 65 22 3a ader":.{"frameType":
2017-12-12 18:44:11.548 (RFPlayer avec plugin) 20 22 30 22 2c 20 22 63 6c 75 73 74 65 72 22 3a 20 22 30 22 ."0",."cluster":."0"
2017-12-12 18:44:11.548 (RFPlayer avec plugin) 2c 20 22 64 61 74 61 46 6c 61 67 22 3a 20 22 30 22 2c 20 22 ,."dataFlag":."0",."
2017-12-12 18:44:11.548 (RFPlayer avec plugin) 72 66 4c 65 76 65 6c 22 3a 20 22 2d 36 33 22 2c 20 22 66 6c rfLevel":."-63",."fl
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 6f 6f 72 4e 6f 69 73 65 22 3a 20 22 2d 31 30 32 22 2c 20 22 oorNoise":."-102",."
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 72 66 51 75 61 6c 69 74 79 22 3a 20 22 39 22 2c 20 22 70 72 rfQuality":."9",."pr
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 6f 74 6f 63 6f 6c 22 3a 20 22 35 22 2c 20 22 70 72 6f 74 6f otocol":."5",."proto
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 63 6f 6c 4d 65 61 6e 69 6e 67 22 3a 20 22 4f 52 45 47 4f 4e colMeaning":."OREGON
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 22 2c 20 22 69 6e 66 6f 54 79 70 65 22 3a 20 22 34 22 2c 20 ",."infoType":."4",.
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 22 66 72 65 71 75 65 6e 63 79 22 3a 20 22 34 33 33 39 32 30 "frequency":."433920
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 22 7d 2c 22 69 6e 66 6f 73 22 3a 20 7b 22 73 75 62 54 79 70 "},"infos":.{"subTyp
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 65 22 3a 20 22 30 22 2c 20 22 69 64 5f 50 48 59 22 3a 20 22 e":."0",."id_PHY":."
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 30 78 31 41 32 44 22 2c 20 22 69 64 5f 50 48 59 4d 65 61 6e 0x1A2D",."id_PHYMean
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 69 6e 67 22 3a 20 22 54 48 47 52 31 32 32 2f 32 32 38 2f 32 ing":."THGR122/228/2
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 33 38 2f 32 36 38 2c 54 48 47 4e 31 32 32 2f 31 32 33 2f 31 38/268,THGN122/123/1
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 33 32 22 2c 20 22 61 64 72 5f 63 68 61 6e 6e 65 6c 22 3a 20 32",."adr_channel":.
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 22 34 39 31 35 34 22 2c 20 20 22 61 64 72 22 3a 20 22 31 39 "49154",.."adr":."19
2017-12-12 18:44:11.549 (RFPlayer avec plugin) 32 22 2c 20 20 22 63 68 61 6e 6e 65 6c 22 3a 20 22 32 22 2c 2",.."channel":."2",
2017-12-12 18:44:11.550 (RFPlayer avec plugin) 20 20 22 71 75 61 6c 69 66 69 65 72 22 3a 20 22 33 32 22 2c .."qualifier":."32",
2017-12-12 18:44:11.550 (RFPlayer avec plugin) 20 20 22 6c 6f 77 42 61 74 74 22 3a 20 22 30 22 2c 20 22 6d .."lowBatt":."0",."m
2017-12-12 18:44:11.550 (RFPlayer avec plugin) 65 61 73 75 72 65 73 22 20 3a 20 5b 7b 22 74 79 70 65 22 20 easures".:.[{"type".
2017-12-12 18:44:11.550 (RFPlayer avec plugin) 3a 20 22 74 65 6d 70 65 72 61 74 75 72 65 22 2c 20 22 76 61 :."temperature",."va
2017-12-12 18:44:11.550 (RFPlayer avec plugin) 6c 75 65 22 20 3a 20 22 2b 32 30 2e 30 22 2c 20 22 75 6e 69 lue".:."+20.0",."uni
2017-12-12 18:44:11.550 (RFPlayer avec plugin) 74 22 20 3a 20 22 43 65 6c 73 69 75 73 22 7d 2c .. .. .. .. t".:."Celsius"},
2017-12-12 18:44:11.550 (RFPlayer avec plugin) Calling message handler 'onMessage'.
2017-12-12 18:44:11.550 (RFPlayer avec plugin) Last Message was 22.042011 seconds ago, Message clear
2017-12-12 18:44:11.601 (RFPlayer avec plugin) Received 60 bytes of data:
2017-12-12 18:44:11.601 (RFPlayer avec plugin) 20 7b 22 74 79 70 65 22 20 3a 20 22 68 79 67 72 6f 6d 65 74 .{"type".:."hygromet
2017-12-12 18:44:11.601 (RFPlayer avec plugin) 72 79 22 2c 20 22 76 61 6c 75 65 22 20 3a 20 22 34 35 22 2c ry",."value".:."45",
2017-12-12 18:44:11.601 (RFPlayer avec plugin) 20 22 75 6e 69 74 22 20 3a 20 22 25 22 7d 5d 7d 7d 7d 0a 0d ."unit".:."%"}]}}}..
2017-12-12 18:44:11.601 (RFPlayer avec plugin) Calling message handler 'onMessage'.
2017-12-12 18:44:11.601 (RFPlayer avec plugin) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-63", "floorNoise": "-102", "rfQuality": "9", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433920"},"infos": {"subType": "0", "id_PHY": "0x1A2D", "id_PHYMeaning": "THGR122/228/238/268,THGN122/123/132", "adr_channel": "49154", "adr": "192", "channel": "2", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "+20.0", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "45", "unit" : "%"}]}}}
2017-12-12 18:44:11.601 (RFPlayer avec plugin) infoType : 4
2017-12-12 18:44:11.602 (RFPlayer avec plugin) id : 0x1A2D adr_channel : 49154
2017-12-12 18:44:11.602 (RFPlayer avec plugin) Options to find or set : {'infoType': '4', 'id': '0x1A2D', 'Temp': '1', 'protocol': '5', 'sensorType': '80', 'adr_channel': '49154'}
2017-12-12 18:44:11.602 (RFPlayer avec plugin) Error while decoding Infotype4 frame
2017-12-12 18:44:21.370 (RFPlayer avec plugin) Calling message handler 'onHeartbeat'.

from domoticz-rfplayer.

Martiou77 avatar Martiou77 commented on July 1, 2024

Bonsoir,

Alors là, je dis BRAVO Messieurs !!!

Ça fonctionne parfaitement chez moi avec mes 4 sondes depuis pratiquement 45 minutes.
Par contre, j'ai dû supprimer les sondes et le RFPlayer pour que ça fonctionne.

De plus, bonne initiative de nous permettre de choisir si on veut la température, l'humidité ou les 2 ensemble.

Merci beaucoup pour la réactivité et la résolution du problème.

from domoticz-rfplayer.

Martiou77 avatar Martiou77 commented on July 1, 2024

Bonsoir,

Ça fonctionne toujours aussi bien pour mes 4 sondes.
Par contre, juste pour que ce soit parfait, pouvez-vous récupérer le niveau de la batterie (en fait l'usure des piles) ?
Voici un exemple de la log en debug :
2017-12-13 19:33:19.043 (RFPlayer) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-52", "floorNoise": "-95", "rfQuality": "10", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433420"},"infos": {"subType": "0", "id_PHY": "0x1A2D", "id_PHYMeaning": "THGR122/228/238/268,THGN122/123/132", "adr_channel": "12289", "adr": "48", "channel": "1", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "+18.8", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "49", "unit" : "%"}]}}}
C'est donc la valeur du lowBatt qu'il faudrait récupérer et le soustraire à 100 pour avoir le niveau de charge des piles.

Merci.

from domoticz-rfplayer.

zzdomi avatar zzdomi commented on July 1, 2024

Ca ne fonctionne pas comme cela. LowBat est une information binaire (0/1) qui dit:
0 >= 20% de capacité des piles
1 < 20% de la capacité des piles.
Mais je peux faire un effort et le remonter dès que j'ai peu de temps.

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on July 1, 2024

Patricen1, Martiou77, zzdomi qu elles sont les modeles de vos sondes ?

le patch semble bon pour certaines sondes uniquement :(

from domoticz-rfplayer.

Martiou77 avatar Martiou77 commented on July 1, 2024

Bonjour,

@zzdomi je suis étonné, je suis à peu près certain d'avoir vu un 99 pour le niveau de batterie d'une sonde une fois avec le driver Ziblue, d'où mon interprétation. Mais bon, je n'ai pas étudié le sujet.

@zaraki673 comme écrit dans mon premier message, j'ai 2 THGR122NX et 2 THGR810. Et ça fonctionne toujours aussi bien pour mes 4 sondes.

from domoticz-rfplayer.

zzdomi avatar zzdomi commented on July 1, 2024

@zaraki673 J'ai 6 THGR122NX et 1 THGR810. Effectivement, le patch est fait uniquement pour les sondes de températures OREGON correspondantes au type "infoType4". Il me semble que le numéro de version du plugin n'a pas évolué après le patch.

@Patricen1 Efface ton RfPlayer et les sondes de ta config puis recréé le device RfPlayer en mode learning.

@Martiou77 Je n'invente rien, c'est dans le document de l'API RfPlayer en ce qui concerne le type "infoType4". Il se peut que pour d'autres sondes on ait une information plus détaillée.

from domoticz-rfplayer.

Martiou77 avatar Martiou77 commented on July 1, 2024

@zzdomi Il n'y a pas de souci, je vous crois. Comme je l'ai dit, je n'ai pas étudié le sujet donc je ne remettrai pas en doute vos dires. Je n'ai que ces 4 sondes, je ne peux donc pas dire pour d'autres.

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on July 1, 2024

voir #46

from domoticz-rfplayer.

zzdomi avatar zzdomi commented on July 1, 2024

C'est fait pour les infoTypes4. Le niveau de réception est également pris en compte.
A généraliser pour les autres infoTypes.

from domoticz-rfplayer.

Martiou77 avatar Martiou77 commented on July 1, 2024

Bonsoir,
Merci beaucoup pour cette nouvelle mise à jour, avec encore un petit plus, ça fonctionne parfaitement.

from domoticz-rfplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.