Page 8 sur 20

Re: Plugin Rfplayer Rfp1000

Publié : 16 juin 2017, 14:26
par zaraki673
ouais alors j ai suivi la doc API, du coup converti le qualifer en binaire pour recupere la valeur de chacun des bit du moins c'est cmme ca que je l'ai compris, si j avais eu des trames en exemples ca aurait plus simple :P

et oui pour par ta derniere remarque, si le rfp decode pas je reconnais pas :D

Re: Plugin Rfplayer Rfp1000

Publié : 16 juin 2017, 16:46
par ogulf
Je continue mes tests avec le RFPlayer et mon pack DeltaDore Deltia 833 en X2D.

Une fois les devices créés automatiquement dans Domoticz (6 devices, 2 pour chaque zone), il faut désactiver l'apprentissage automatique du RFPlayer dans Domoticz. En effet, il semble que parfois les devices déjà créés ne soient pas reconnus, et ils sont créés en double ou triple (info communiquée à zaraki673).

idx 46-47 : zone 1
idx 48-49 : zone 2
idx 50-51 : zone 3
(on en profite pour voir que la remontée d'info d'état du bouton n'apparait pas dans la colonne Donnée, le statut STOP correspondant à 50% alors qu'il apparait Off)

Image

Je passe depuis Domoticz la zone 1 (id 1890977024) en mode "OFF", et j'ai un message d'erreur dans la log Domoticz.

Image

2017-06-16 16:20:29.286 (RFPlayer) Calling message handler 'onCommand'.
2017-06-16 16:20:29.286 (RFPlayer) SendtoRfplayer - Options find in DB: {'LevelNames': 'Off|Eco|Moderat|Medio|Comfort|Stop|Out of frost|Special|Auto|Centralised', 'frequency': '868350', 'LevelOffHidden': 'True', 'function': '2', 'subType': '5', 'id': '1890977024', 'LevelActions': '|||||||||', 'protocol': '8', 'SelectorStyle': '0', 'area': '0', 'infoType': '10'} for devices unit 3
2017-06-16 16:20:29.286 (RFPlayer - 8 - 1890977024) Updating device from 0:'50' to have values 0:'0'.
2017-06-16 16:20:29.298 (RFPlayer) Sending 29 bytes of data:.
2017-06-16 16:20:29.298 (RFPlayer) 5a 49 41 2b 2b 44 49 4d 20 25 30 20 38 20 49 44 20 31 38 39 ZIA++DIM.%0.8.ID.189
2017-06-16 16:20:29.298 (RFPlayer) 30 39 37 37 30 32 34 0a 0d .. .. .. .. .. .. .. .. .. .. .. 0977024..
2017-06-16 16:20:29.398 (RFPlayer) Received 69 bytes of data:.
2017-06-16 16:20:29.398 (RFPlayer) 5a 49 41 2d 2d 0a 65 72 72 6f 72 20 72 65 71 75 65 73 74 20 ZIA--.error.request.
2017-06-16 16:20:29.398 (RFPlayer) 6e 75 6d 62 65 72 3d 30 0a 53 79 6e 74 61 78 20 65 72 72 6f number=0.Syntax.erro
2017-06-16 16:20:29.398 (RFPlayer) 72 3a 20 44 49 4d 20 25 30 20 38 20 49 44 20 31 38 39 30 39 r:.DIM.%0.8.ID.18909
2017-06-16 16:20:29.398 (RFPlayer) 37 37 30 32 34 0a 0a 0a 0d .. .. .. .. .. .. .. .. .. .. .. 77024....
2017-06-16 16:20:29.399 (RFPlayer) Calling message handler 'onMessage'.

Si cette trame peut aider ?...

Re: Plugin Rfplayer Rfp1000

Publié : 16 juin 2017, 18:24
par zaraki673
oh que oui ca m'aide, il manque le code area a l envoie de la commande :P

j ai ouvert une issue sur github : https://github.com/sasu-drooz/Domoticz- ... /issues/20

Re: Plugin Rfplayer Rfp1000

Publié : 21 juin 2017, 07:44
par ogulf
Si j'ai les traces aujourd'hui c'est parce que j'ai l'émetteur à disposition (qui gère 3 zones).
Il serait intéressant de pouvoir associer directement un récepteur à partir de Domoticz qui enverrait "les bonnes trames", sans avoir cet émetteur Deltia 833 :: un dispositif virtuel semble le plus judicieux. Le problème sera d'associer l'action à effectuer (ie la trame X2D à envoyer) au bouton actionné (off, hors-gel, association, test etc.)... un peu comme avec mes 3 commandes de zones actuelles.
Et du coup on pourrait passer le cap des 3 zones !! :mrgreen: (sous réserve sur le récepteur sache comprendre une area 5 par exemple....)

À disposition pour faire les tests que tu souhaiteras :D

Re: Plugin Rfplayer Rfp1000

Publié : 24 juin 2017, 10:10
par ogulf
Je viens de voir une nouvelle version du plugin Python du RFPlayer.
L'ayant intégré, il me semble qu'il y a une erreur dans le traitement de l'infotype 10, fonction 2, au niveau de l'id.

Code : Tout sélectionner

                ##############################################################################################################
                #####################################Frame infoType 10            Thermostats  X2D protocol ######################
                ##############################################################################################################
                if infoType == "10":
                        protocol = DecData['frame']['header']['protocol']
                        frequency = DecData['frame']['header']['frequency']
                        SubType = DecData['frame']['infos']['subType']
                        id = DecData['frame']['infos']['id']
                        area = DecData['frame']['infos']['area']
                        function = DecData['frame']['infos']['function']
                        state = DecData['frame']['infos']['state']

                        #########################################################################################
                        ######################### calcul id_lsb and id_msb from id ##############################
                        #########################################################################################
                        idb= bin(int(id))[2:]
                        Domoticz.Debug("id binary : " + str(idb))
                        Unit=idb[-6:]
                        idd=idb[:-6]
                        Domoticz.Debug("area b: " + str(Unit))
                        Domoticz.Debug("id decode b: " + str(idd))
                        Domoticz.Debug("area i: " + str(int(Unit,2)+1))
                        Domoticz.Debug("id decode i: " + str(int(idd,2)))
                        Domoticz.Debug("id decode h: " + str(hex(int(idd,2)))[2:])
                        #########################################################################################
                        #########################################################################################

                        if function == "2" :
                                if state == "0": #ECO
                                        status = 10
                                if state == "1": #MODERAT
                                        status = 20
                                if state == "2": #MEDIO
                                        status = 30
                                if state == "3": #COMFORT
                                        status = 40
                                if state == "4": #STOP
                                        status = 50
                                if state == "5": #OUT OF FROST
                                        status = 60
                                if state == "6": #SPECIAL
                                        status = 70
                                if state == "7": #AUTO
                                        status = 80
                                if state == "8": #CENTRALISED
                                        status = 90
                                Options = {"infoType":infoType, "id": str(idd), "area": str(area), "function": str(function), "protocol": str(protocol), "subType": str(SubType), "frequency": str(frequency), "LevelActions": "|||||||||", "LevelNames": "Off|Eco|Moderat|Medio|Comfort|Stop|Out of frost|Special|Auto|Centralised", "LevelOffHidden": "True", "SelectorStyle": "0"}
                                Domoticz.Debug("Options to find or set : " + str(Options))
                                for x in Devices:
                                        if Devices[x].Options == Options :
                                                IsCreated = True
                                                Domoticz.Log("Devices already exist. Unit=" + str(x))
                                                Domoticz.Debug("Options find in DB: " + str(Devices[x].Options) + " for devices unit " + str(x))
                                                nbrdevices=x
                                        if IsCreated == False :
                                                nbrdevices=x
                                if IsCreated == False and Parameters["Mode4"] == "True":
                                        nbrdevices=nbrdevices+1
                                        Domoticz.Device(Name=protocol + " - " + id,  Unit=nbrdevices, TypeName="Selector Switch", Switchtype=18, Image=12, Options=Options).Create()
                                        Devices[nbrdevices].Update(nValue =0,sValue = str(status), Options = Options)
                                elif IsCreated == True :
                                        Devices[nbrdevices].Update(nValue =0,sValue = str(status))
                ##############################################################################################################
                        else :
                                Options = {"infoType":infoType, "id": str(id), "area": str(area), "function": str(function), "protocol": str(protocol), "subType": str(SubType), "frequency": str(frequency)}
                                Domoticz.Debug("Options to find or set : " + str(Options))
                                for x in Devices:
                                        if Devices[x].Options == Options :
                                                IsCreated = True
                                                Domoticz.Log("Devices already exist. Unit=" + str(x))
                                                Domoticz.Debug("Options find in DB: " + str(Devices[x].Options) + " for devices unit " + str(x))
                                                nbrdevices=x
                                        if IsCreated == False :
                                                nbrdevices=x
                                if IsCreated == False and Parameters["Mode4"] == "True":
                                        nbrdevices=nbrdevices+1
                                        Domoticz.Device(Name=protocol + " - " + id, Unit=nbrdevices, Type=16, Switchtype=0).Create()
                                        Devices[nbrdevices].Update(nValue =0,sValue = str(state), Options = Options)
                                elif IsCreated == True :
                                        Devices[nbrdevices].Update(nValue =0,sValue = str(state))
C'est le mauvais id qui est recherché dans les devices, pour la fonction 2 : après la série de tests sur le "state", utilisation de l'id "idd" à la place de "id" dans la constitution de la variable Options. du coup, le "device" n'est pas trouvé (heureusement que je suis en Learning mode = Disable ! :D )

Corrigé localement...

Re: Plugin Rfplayer Rfp1000

Publié : 24 juin 2017, 10:58
par ogulf
Encore moi, mais pour un test de télécommande de porte de garage, 4 boutons (ce n'est pas celle-là, mais elle y ressemble) :

Image

Les 4 boutons sont bien reçus par le RFPlayer, en 433MHz, avec 4 id différents.
Mais le couple (protocole - infotype) n'est pas cohérent.
Je reçois du "BLYSS" avec l'infotype "Visionic", cf les 4 traces ci-dessous :

Bouton H.G :

Code : Tout sélectionner

2017-06-24 10:35:30.770 (RFPlayer) Received 325 bytes of data:.
2017-06-24 10:35:30.770 (RFPlayer) 5a 49 41 33 33 7b 20 22 66 72 61 6d 65 22 20 3a 7b 22 68 65 ZIA33{."frame".:{"he
2017-06-24 10:35:30.770 (RFPlayer) 61 64 65 72 22 3a 20 7b 22 66 72 61 6d 65 54 79 70 65 22 3a ader":.{"frameType":
2017-06-24 10:35:30.770 (RFPlayer) 20 22 30 22 2c 20 22 63 6c 75 73 74 65 72 22 3a 20 22 30 22 ."0",."cluster":."0"
2017-06-24 10:35:30.770 (RFPlayer) 2c 20 22 64 61 74 61 46 6c 61 67 22 3a 20 22 30 22 2c 20 22 ,."dataFlag":."0",."
2017-06-24 10:35:30.770 (RFPlayer) 72 66 4c 65 76 65 6c 22 3a 20 22 2d 37 32 22 2c 20 22 66 6c rfLevel":."-72",."fl
2017-06-24 10:35:30.770 (RFPlayer) 6f 6f 72 4e 6f 69 73 65 22 3a 20 22 2d 31 30 34 22 2c 20 22 oorNoise":."-104",."
2017-06-24 10:35:30.770 (RFPlayer) 72 66 51 75 61 6c 69 74 79 22 3a 20 22 38 22 2c 20 22 70 72 rfQuality":."8",."pr
2017-06-24 10:35:30.770 (RFPlayer) 6f 74 6f 63 6f 6c 22 3a 20 22 33 22 2c 20 22 70 72 6f 74 6f otocol":."3",."proto
2017-06-24 10:35:30.770 (RFPlayer) 63 6f 6c 4d 65 61 6e 69 6e 67 22 3a 20 22 42 4c 59 53 53 22 colMeaning":."BLYSS"
2017-06-24 10:35:30.770 (RFPlayer) 2c 20 22 69 6e 66 6f 54 79 70 65 22 3a 20 22 32 22 2c 20 22 ,."infoType":."2",."
2017-06-24 10:35:30.770 (RFPlayer) 66 72 65 71 75 65 6e 63 79 22 3a 20 22 34 33 33 39 32 30 22 frequency":."433920"
2017-06-24 10:35:30.770 (RFPlayer) 7d 2c 22 69 6e 66 6f 73 22 3a 20 7b 22 73 75 62 54 79 70 65 },"infos":.{"subType
2017-06-24 10:35:30.770 (RFPlayer) 22 3a 20 22 30 22 2c 20 22 73 75 62 54 79 70 65 4d 65 61 6e ":."0",."subTypeMean
2017-06-24 10:35:30.771 (RFPlayer) 69 6e 67 22 3a 20 22 44 65 74 65 63 74 6f 72 2f 53 65 6e 73 ing":."Detector/Sens
2017-06-24 10:35:30.771 (RFPlayer) 6f 72 22 2c 20 22 69 64 22 3a 20 22 32 35 36 32 39 32 33 32 or",."id":."25629232
2017-06-24 10:35:30.771 (RFPlayer) 38 22 2c 20 22 71 75 61 6c 69 66 69 65 72 22 3a 20 22 30 22 8",."qualifier":."0"
2017-06-24 10:35:30.771 (RFPlayer) 7d 7d 7d 0a 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. }}}..
2017-06-24 10:35:30.771 (RFPlayer) Calling message handler 'onMessage'.
2017-06-24 10:35:30.771 (RFPlayer) Last Message was 631.569633 seconds ago, Message clear
2017-06-24 10:35:30.771 (RFPlayer) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-72", "floorNoise": "-104", "rfQuality": "8", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292328", "qualifier": "0"}}}
2017-06-24 10:35:30.772 (RFPlayer) infoType : 2
2017-06-24 10:35:30.772 (RFPlayer) Error while decoding or reading JSON
2017-06-24 10:35:30.772 (RFPlayer) Debug : Error Decoding/Reading { "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-72", "floorNoise": "-104", "rfQuality": "8", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292328", "qualifier": "0"}}}
Bouton H.D :

Code : Tout sélectionner

2017-06-24 10:36:39.852 (RFPlayer) Received 325 bytes of data:.
2017-06-24 10:36:39.853 (RFPlayer) 5a 49 41 33 33 7b 20 22 66 72 61 6d 65 22 20 3a 7b 22 68 65 ZIA33{."frame".:{"he
2017-06-24 10:36:39.853 (RFPlayer) 61 64 65 72 22 3a 20 7b 22 66 72 61 6d 65 54 79 70 65 22 3a ader":.{"frameType":
2017-06-24 10:36:39.853 (RFPlayer) 20 22 30 22 2c 20 22 63 6c 75 73 74 65 72 22 3a 20 22 30 22 ."0",."cluster":."0"
2017-06-24 10:36:39.853 (RFPlayer) 2c 20 22 64 61 74 61 46 6c 61 67 22 3a 20 22 30 22 2c 20 22 ,."dataFlag":."0",."
2017-06-24 10:36:39.853 (RFPlayer) 72 66 4c 65 76 65 6c 22 3a 20 22 2d 38 32 22 2c 20 22 66 6c rfLevel":."-82",."fl
2017-06-24 10:36:39.853 (RFPlayer) 6f 6f 72 4e 6f 69 73 65 22 3a 20 22 2d 31 30 34 22 2c 20 22 oorNoise":."-104",."
2017-06-24 10:36:39.853 (RFPlayer) 72 66 51 75 61 6c 69 74 79 22 3a 20 22 35 22 2c 20 22 70 72 rfQuality":."5",."pr
2017-06-24 10:36:39.853 (RFPlayer) 6f 74 6f 63 6f 6c 22 3a 20 22 33 22 2c 20 22 70 72 6f 74 6f otocol":."3",."proto
2017-06-24 10:36:39.853 (RFPlayer) 63 6f 6c 4d 65 61 6e 69 6e 67 22 3a 20 22 42 4c 59 53 53 22 colMeaning":."BLYSS"
2017-06-24 10:36:39.853 (RFPlayer) 2c 20 22 69 6e 66 6f 54 79 70 65 22 3a 20 22 32 22 2c 20 22 ,."infoType":."2",."
2017-06-24 10:36:39.853 (RFPlayer) 66 72 65 71 75 65 6e 63 79 22 3a 20 22 34 33 33 39 32 30 22 frequency":."433920"
2017-06-24 10:36:39.853 (RFPlayer) 7d 2c 22 69 6e 66 6f 73 22 3a 20 7b 22 73 75 62 54 79 70 65 },"infos":.{"subType
2017-06-24 10:36:39.854 (RFPlayer) 22 3a 20 22 30 22 2c 20 22 73 75 62 54 79 70 65 4d 65 61 6e ":."0",."subTypeMean
2017-06-24 10:36:39.854 (RFPlayer) 69 6e 67 22 3a 20 22 44 65 74 65 63 74 6f 72 2f 53 65 6e 73 ing":."Detector/Sens
2017-06-24 10:36:39.854 (RFPlayer) 6f 72 22 2c 20 22 69 64 22 3a 20 22 32 35 36 32 39 32 33 32 or",."id":."25629232
2017-06-24 10:36:39.854 (RFPlayer) 34 22 2c 20 22 71 75 61 6c 69 66 69 65 72 22 3a 20 22 30 22 4",."qualifier":."0"
2017-06-24 10:36:39.854 (RFPlayer) 7d 7d 7d 0a 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. }}}..
2017-06-24 10:36:39.854 (RFPlayer) Calling message handler 'onMessage'.
2017-06-24 10:36:39.854 (RFPlayer) Last Message was 69.082314 seconds ago, Message clear
2017-06-24 10:36:39.854 (RFPlayer) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-82", "floorNoise": "-104", "rfQuality": "5", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292324", "qualifier": "0"}}}
2017-06-24 10:36:39.855 (RFPlayer) infoType : 2
2017-06-24 10:36:39.855 (RFPlayer) Error while decoding or reading JSON
2017-06-24 10:36:39.855 (RFPlayer) Debug : Error Decoding/Reading { "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-82", "floorNoise": "-104", "rfQuality": "5", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292324", "qualifier": "0"}}}
Bouton B.G :

Code : Tout sélectionner

 2017-06-24 10:37:40.772 (RFPlayer) Received 326 bytes of data:.
2017-06-24 10:37:40.772 (RFPlayer) 5a 49 41 33 33 7b 20 22 66 72 61 6d 65 22 20 3a 7b 22 68 65 ZIA33{."frame".:{"he
2017-06-24 10:37:40.773 (RFPlayer) 61 64 65 72 22 3a 20 7b 22 66 72 61 6d 65 54 79 70 65 22 3a ader":.{"frameType":
2017-06-24 10:37:40.773 (RFPlayer) 20 22 30 22 2c 20 22 63 6c 75 73 74 65 72 22 3a 20 22 30 22 ."0",."cluster":."0"
2017-06-24 10:37:40.773 (RFPlayer) 2c 20 22 64 61 74 61 46 6c 61 67 22 3a 20 22 30 22 2c 20 22 ,."dataFlag":."0",."
2017-06-24 10:37:40.773 (RFPlayer) 72 66 4c 65 76 65 6c 22 3a 20 22 2d 36 33 22 2c 20 22 66 6c rfLevel":."-63",."fl
2017-06-24 10:37:40.773 (RFPlayer) 6f 6f 72 4e 6f 69 73 65 22 3a 20 22 2d 31 30 34 22 2c 20 22 oorNoise":."-104",."
2017-06-24 10:37:40.773 (RFPlayer) 72 66 51 75 61 6c 69 74 79 22 3a 20 22 31 30 22 2c 20 22 70 rfQuality":."10",."p
2017-06-24 10:37:40.773 (RFPlayer) 72 6f 74 6f 63 6f 6c 22 3a 20 22 33 22 2c 20 22 70 72 6f 74 rotocol":."3",."prot
2017-06-24 10:37:40.773 (RFPlayer) 6f 63 6f 6c 4d 65 61 6e 69 6e 67 22 3a 20 22 42 4c 59 53 53 ocolMeaning":."BLYSS
2017-06-24 10:37:40.773 (RFPlayer) 22 2c 20 22 69 6e 66 6f 54 79 70 65 22 3a 20 22 32 22 2c 20 ",."infoType":."2",.
2017-06-24 10:37:40.773 (RFPlayer) 22 66 72 65 71 75 65 6e 63 79 22 3a 20 22 34 33 33 39 32 30 "frequency":."433920
2017-06-24 10:37:40.773 (RFPlayer) 22 7d 2c 22 69 6e 66 6f 73 22 3a 20 7b 22 73 75 62 54 79 70 "},"infos":.{"subTyp
2017-06-24 10:37:40.773 (RFPlayer) 65 22 3a 20 22 30 22 2c 20 22 73 75 62 54 79 70 65 4d 65 61 e":."0",."subTypeMea
2017-06-24 10:37:40.773 (RFPlayer) 6e 69 6e 67 22 3a 20 22 44 65 74 65 63 74 6f 72 2f 53 65 6e ning":."Detector/Sen
2017-06-24 10:37:40.774 (RFPlayer) 73 6f 72 22 2c 20 22 69 64 22 3a 20 22 32 35 36 32 39 32 33 sor",."id":."2562923
2017-06-24 10:37:40.774 (RFPlayer) 32 32 22 2c 20 22 71 75 61 6c 69 66 69 65 72 22 3a 20 22 30 22",."qualifier":."0
2017-06-24 10:37:40.774 (RFPlayer) 22 7d 7d 7d 0a 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. "}}}..
2017-06-24 10:37:40.774 (RFPlayer) Calling message handler 'onMessage'.
2017-06-24 10:37:40.774 (RFPlayer) Last Message was 14.328831 seconds ago, Message clear
2017-06-24 10:37:40.774 (RFPlayer) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-63", "floorNoise": "-104", "rfQuality": "10", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292322", "qualifier": "0"}}}
2017-06-24 10:37:40.774 (RFPlayer) infoType : 2
2017-06-24 10:37:40.774 (RFPlayer) Error while decoding or reading JSON
2017-06-24 10:37:40.775 (RFPlayer) Debug : Error Decoding/Reading { "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-63", "floorNoise": "-104", "rfQuality": "10", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292322", "qualifier": "0"}}}
Bouton B.D :

Code : Tout sélectionner

 2017-06-24 10:38:15.591 (RFPlayer) Received 323 bytes of data:.
2017-06-24 10:38:15.591 (RFPlayer) 33 33 7b 20 22 66 72 61 6d 65 22 20 3a 7b 22 68 65 61 64 65 33{."frame".:{"heade
2017-06-24 10:38:15.591 (RFPlayer) 72 22 3a 20 7b 22 66 72 61 6d 65 54 79 70 65 22 3a 20 22 30 r":.{"frameType":."0
2017-06-24 10:38:15.591 (RFPlayer) 22 2c 20 22 63 6c 75 73 74 65 72 22 3a 20 22 30 22 2c 20 22 ",."cluster":."0",."
2017-06-24 10:38:15.591 (RFPlayer) 64 61 74 61 46 6c 61 67 22 3a 20 22 30 22 2c 20 22 72 66 4c dataFlag":."0",."rfL
2017-06-24 10:38:15.591 (RFPlayer) 65 76 65 6c 22 3a 20 22 2d 36 32 22 2c 20 22 66 6c 6f 6f 72 evel":."-62",."floor
2017-06-24 10:38:15.592 (RFPlayer) 4e 6f 69 73 65 22 3a 20 22 2d 31 30 34 22 2c 20 22 72 66 51 Noise":."-104",."rfQ
2017-06-24 10:38:15.592 (RFPlayer) 75 61 6c 69 74 79 22 3a 20 22 31 30 22 2c 20 22 70 72 6f 74 uality":."10",."prot
2017-06-24 10:38:15.592 (RFPlayer) 6f 63 6f 6c 22 3a 20 22 33 22 2c 20 22 70 72 6f 74 6f 63 6f ocol":."3",."protoco
2017-06-24 10:38:15.592 (RFPlayer) 6c 4d 65 61 6e 69 6e 67 22 3a 20 22 42 4c 59 53 53 22 2c 20 lMeaning":."BLYSS",.
2017-06-24 10:38:15.592 (RFPlayer) 22 69 6e 66 6f 54 79 70 65 22 3a 20 22 32 22 2c 20 22 66 72 "infoType":."2",."fr
2017-06-24 10:38:15.592 (RFPlayer) 65 71 75 65 6e 63 79 22 3a 20 22 34 33 33 39 32 30 22 7d 2c equency":."433920"},
2017-06-24 10:38:15.592 (RFPlayer) 22 69 6e 66 6f 73 22 3a 20 7b 22 73 75 62 54 79 70 65 22 3a "infos":.{"subType":
2017-06-24 10:38:15.592 (RFPlayer) 20 22 30 22 2c 20 22 73 75 62 54 79 70 65 4d 65 61 6e 69 6e ."0",."subTypeMeanin
2017-06-24 10:38:15.592 (RFPlayer) 67 22 3a 20 22 44 65 74 65 63 74 6f 72 2f 53 65 6e 73 6f 72 g":."Detector/Sensor
2017-06-24 10:38:15.592 (RFPlayer) 22 2c 20 22 69 64 22 3a 20 22 32 35 36 32 39 32 33 32 31 22 ",."id":."256292321"
2017-06-24 10:38:15.592 (RFPlayer) 2c 20 22 71 75 61 6c 69 66 69 65 72 22 3a 20 22 30 22 7d 7d ,."qualifier":."0"}}
2017-06-24 10:38:15.592 (RFPlayer) 7d 0a 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. }..
2017-06-24 10:38:15.592 (RFPlayer) Calling message handler 'onMessage'.
2017-06-24 10:38:15.593 (RFPlayer) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-62", "floorNoise": "-104", "rfQuality": "10", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292321", "qualifier": "0"}}}
2017-06-24 10:38:15.593 (RFPlayer) infoType : 2
2017-06-24 10:38:15.593 (RFPlayer) Error while decoding or reading JSON
2017-06-24 10:38:15.593 (RFPlayer) Debug : Error Decoding/Reading { "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-62", "floorNoise": "-104", "rfQuality": "10", "protocol": "3", "protocolMeaning": "BLYSS", "infoType": "2", "frequency": "433920"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "256292321", "qualifier": "0"}}}
On y voit bien 4 id différents, sur protocole Blyss, mais le script Python ne s'appuie que sur l'InfoType, qui est 2 et correspond à une trame "Visionic".
Le "parse" de la trame doit planter à l'instruction id_lsb = DecData.

if infoType == "2":
protocol = DecData['frame']['header']['protocol']
frequency = DecData['frame']['header']['frequency']
SubType = DecData['frame']['infos']['subType']
id_lsb = DecData['frame']['infos']['id_lsb']
id_msb = DecData['frame']['infos']['id_msb']
qualifier = list(bin(DecData['frame']['infos']['qualifier'])[2:])
Domoticz.Debug("id_lsb : " + id_lsb + " id_msb : " + id_msb + " subType :" + SubType)


J'ai provisoirement forcé le script à passer dans le pavé "InfoType 1" (qui correspond à BLYSS) et autorisé la création de device ==> OK !
Je suis revenu en arrière sur le script.

Reste à savoir si "Protocole = Blyss" avec "InfoType = 2" est un problème de transco issu du RFPlayer ??

Re: Plugin Rfplayer Rfp1000

Publié : 26 juin 2017, 11:32
par zaraki673
Bonjour Ogulf,

Merci pour tous ces tests :D

je vais essayer de répondre a toutes questions :P

Pour le Deltia 833 : Domoticz peut effectivement créer des interrupteurs pour gérer plus de 3zones, reste a savoir si le récepteur le supportes, comme tu le fais remarquer. Bon pour le moment j ai un problème avec l envoie des trames (cf ta question d après)

Pour l'id dans l'infotype 10, dans la dernière version du plugin, j ai modifié le décodage de l'id, du coup il faut recréer les devices dans domoticz, l'ancienne ID comprenait le code area, que l 'on récupère aussi dans la trame, j'ai donc décomposait l'id en deux (idd et Unit).
Maintenant je but sur comment emmètre ce code area ^^ vu que le code id de base ne peut être émis car trop long.

Pour le blyss vu en infotype2, c'est le decodage du rfplayer, coté domoticz je ne fais qu'interprété la trame json reçu, je vais regarder pour patcher ça :D

Par contre désolé d'avance, mais je ne vais pas pouvoir m'en occuper avant au moins 2 semaines.

;)

Re: Plugin Rfplayer Rfp1000

Publié : 26 juin 2017, 14:10
par vulbas
ça me donne tres tres envie de changer mon calybox 230 par un deltia 833 tout ça ;)

Re: Plugin Rfplayer Rfp1000

Publié : 26 juin 2017, 15:17
par ogulf
@zaraki673 : Ok bien noté toutes tes infos, je laisse se créer les 3 nouveaux devices dans Domoticz, et si j'ai bien suivi par ailleurs sur le forum, je fais "remplacer" pour garder l'historique ;)
Pour l'envoi de la trame avec le code area, on peut le recevoir mais on ne peut pas l'émettre ? Le message émis est limité en taille ? Par le RFPlayer ?
Et pas de pb pour le délai !!

@vulbas : inutile de passer par le Deltia 833... Attends que les fonctionnalités soient implémentées (mode association et envoi de trames au récepteur) et c'est ton RFPlayer + plugin qui feront le reste ! 8-) Ah si... faudra quand même des récepteurs Delta Dore X2D pour tes radiateurs !
A noter : un même récepteur (RF660FP pour ce qui me concerne) peut commander plusieurs radiateurs par FP, cela demande de relier les fils pilotes de chaque radiateur au récepteur (et tu as 2, 3, ... radiateurs sur la même zone). Sinon c'est un récepteur par radiateur.

Re: Plugin Rfplayer Rfp1000

Publié : 26 juin 2017, 22:05
par vulbas
tres tres bien, merci pour les info. j'ai 3 zones pour et 7 radiateurs, par contre du coup je me pose des questions concernant le delestage.
actuellement c'est mon calybox qui gere ça, les 3 zones et le balon sont dessus.... je pense que le calybox 230 peut recevoir des ordres, mais j'ai du mal à avoir les bonnes info, je ne sais pas exactement ce qu'il peut faire