sasu-drooz / Domoticz-Rfplayer

Domoticz python Plugin for Ziblue RfPlayer Rfp1000
GNU General Public License v3.0
12 stars 16 forks source link

Device chacon EMW200 #47

Closed manolo75 closed 6 years ago

manolo75 commented 6 years ago

Bonjour,

J'ai essayé de créer un switch on/off pour une prise électrique murale Chacon EMW200. Il est positionné sur A1. J'ai donc mis A1 dans la case device ID pour le créer, et Chacon en type de device; Le switch est bien créé mais il ne fonctionne pas quand je l'actionne : 2017-12-15 07:40:46.671 User: Admin initiated a switch command (399/RFPlayer ZiBlue - Manual Switch - A1/On) 2017-12-15 07:40:46.695 (RFPlayer ZiBlue) Calling message handler 'onCommand'. 2017-12-15 07:40:46.696 (RFPlayer ZiBlue) SendtoRfplayer - Options find in DB: {'id': 'A1', 'infoType': '1', 'protocol': '4'} for devices unit 41 2017-12-15 07:40:46.696 (RFPlayer ZiBlue - Manual Switch - A1) Updating device from 0:'off' to have values 1:'on'. 2017-12-15 07:40:46.707 (RFPlayer ZiBlue) Sending 22 bytes of data: 2017-12-15 07:40:46.707 (RFPlayer ZiBlue) 5a 49 41 2b 2b 4f 4e 20 43 48 41 43 4f 4e 20 49 44 20 41 31 ZIA++ON.CHACON.ID.A1 2017-12-15 07:40:46.707 (RFPlayer ZiBlue) 0a 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 2017-12-15 07:40:47.109 (RFPlayer ZiBlue) Received 49 bytes of data: 2017-12-15 07:40:47.109 (RFPlayer ZiBlue) 5a 49 41 2d 2d 0a 65 72 72 6f 72 20 72 65 71 75 65 73 74 20 ZIA--.error.request. 2017-12-15 07:40:47.109 (RFPlayer ZiBlue) 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-12-15 07:40:47.109 (RFPlayer ZiBlue) 72 3a 20 41 31 0a 0a 0a 0d .. .. .. .. .. .. .. .. .. .. .. r:.A1.... 2017-12-15 07:40:47.110 (RFPlayer ZiBlue) Calling message handler 'onMessage'. 2017-12-15 07:40:47.110 (RFPlayer ZiBlue) Last Message was 2.320258 seconds ago, Message clear

Je me suis trompé dans le device ID ?

zzdomi commented 6 years ago

En fouinant sur le web j'ai trouvé que pour une prise avec le code A1 il fallait envoyer sur A2. A tester!?

zaraki673 commented 6 years ago

ne pas oublier la politique de ziblue sur le piratage

si tu dois emmettre A1, bon courage pour trouver la correspondance :( il te faut un emmetteur régler sur A1 pour savoir le code ID reçu par le rfplayer (et ca seras pas A1 ça c'est sur :( )

2017-12-17 14:21 GMT+01:00 zzdomi notifications@github.com:

En fouinant sur le web j'ai trouvé que pour une prise avec le code A1 il fallait envoyer sur A2. A tester!?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/sasu-drooz/Domoticz-Rfplayer/issues/47#issuecomment-352255238, or mute the thread https://github.com/notifications/unsubscribe-auth/AHGF7OQWllVnfZqvbb_QAfrlrEU0aK45ks5tBRVFgaJpZM4RDE4g .

zzdomi commented 6 years ago

Pour ces anciennes prises à roue codeuses, il faut prendre le protocole X10 aka lighting1.

zzdomi commented 6 years ago

J'ai fait un test avec mon rfxtrx:

Lighting1 command

Packettype = Lighting1 subtype = EMW200 Sequence nbr = 75 housecode = A unitcode = 1 Command = Off Signal level = 0 -120dBm

et j'ai reçu ça au niveau rfplayer:

ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-41", "floorNoise": "-84", "rfQuality": "10", "protocol": "6", "protocolMeaning": "DOMIA", "infoType": "0", "frequency": "433920"},"infos": {"subType": "0", "id": "111", "subTypeMeaning": "OFF", "idMeaning": "G16"}}}

zaraki673 commented 6 years ago

A1=G16 ... mais est ce que G16=A1 ...(si ton rfplayer envoie G16 ton rfxtrx reçois t-il bien A1)

2017-12-17 17:44 GMT+01:00 zzdomi notifications@github.com:

J'ai fait un test avec mon rfxtrx: Lighting1 command Packettype = Lighting1 subtype = EMW200 Sequence nbr = 75 housecode = A unitcode = 1 Command = Off Signal level = 0 -120dBm

et j'ai reçu ça au niveau rfplayer:

ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-41", "floorNoise": "-84", "rfQuality": "10", "protocol": "6", "protocolMeaning": "DOMIA", "infoType": "0", "frequency": "433920"},"infos": {"subType": "0", "id": "111", "subTypeMeaning": "OFF", "idMeaning": "G16"}}}

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/sasu-drooz/Domoticz-Rfplayer/issues/47#issuecomment-352268772, or mute the thread https://github.com/notifications/unsubscribe-auth/AHGF7OggWfYOoOnl6I5_ESIPEH5NUT63ks5tBUUIgaJpZM4RDE4g .

zzdomi commented 6 years ago

He bien non, cf la suite:

2017-12-17 18:22:46.654 User: Admin initiated a switch command (45/RFP1 - 6 - 111/On) 2017-12-17 18:22:46.670 (RFP1) Calling message handler 'onCommand'. 2017-12-17 18:22:46.670 (RFP1) SendtoRfplayer - Options found in DB: {} for devices unit 41 2017-12-17 18:22:46.671 Error: (RFP1) 'onCommand' failed 'KeyError'. 2017-12-17 18:22:46.671 Error: (RFP1) ----> Line 311 in /home/domoticz/domoticz/domoticz/plugins/RFPlayer/plugin.py, function onCommand 2017-12-17 18:22:46.671 Error: (RFP1) ----> Line 240 in /home/domoticz/domoticz/domoticz/plugins/RFPlayer/plugin.py, function onCommand 2017-12-17 18:22:46.671 Error: (RFP1) ----> Line 453 in /home/domoticz/domoticz/domoticz/plugins/RFPlayer/plugin.py, function SendtoRfplayer

zaraki673 commented 6 years ago

euh y a un autres soucis, ton device n as plus rien en options :(

2017-12-17 18:24 GMT+01:00 zzdomi notifications@github.com:

He bien non, cf la suite:

2017-12-17 18:22:46.654 User: Admin initiated a switch command (45/RFP1 - 6 - 111/On) 2017-12-17 18:22:46.670 (RFP1) Calling message handler 'onCommand'. 2017-12-17 18:22:46.670 (RFP1) SendtoRfplayer - Options found in DB: {} for devices unit 41 2017-12-17 18:22:46.671 Error: (RFP1) 'onCommand' failed 'KeyError'. 2017-12-17 18:22:46.671 Error: (RFP1) ----> Line 311 in /home/domoticz/domoticz/domoticz/plugins/RFPlayer/plugin.py, function onCommand 2017-12-17 18:22:46.671 Error: (RFP1) ----> Line 240 in /home/domoticz/domoticz/domoticz/plugins/RFPlayer/plugin.py, function onCommand 2017-12-17 18:22:46.671 Error: (RFP1) ----> Line 453 in /home/domoticz/domoticz/domoticz/plugins/RFPlayer/plugin.py, function SendtoRfplayer

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/sasu-drooz/Domoticz-Rfplayer/issues/47#issuecomment-352271235, or mute the thread https://github.com/notifications/unsubscribe-auth/AHGF7CMZOpuSrNr655X5LHTjHp6tqK6xks5tBU5agaJpZM4RDE4g .

zzdomi commented 6 years ago

J'avais créé ce device à la main.

Je viens de refaire la manip. Voilà ce qu'envoie le rfplayer et qui est interprété par le rfxcom:

Packettype = Lighting1 subtype = ARC Sequence nbr = 75 housecode = G unitcode = 16 Command = On Signal level = 7 -64dBm

Packettype = Lighting1 subtype = ARC Sequence nbr = 76 housecode = G unitcode = 16 Command = Off Signal level = 7 -64dBm

Packettype = Lighting1 subtype = ARC Sequence nbr = 77 housecode = G unitcode = 16 Command = On Signal level = 7 -64dBm

manolo75 commented 6 years ago

Bonjour,

J'ai tenté en X10 avec le device ID G16, A1 et A2 et rien de tout cela ne fonctionne.

zaraki673 commented 6 years ago

seul moyen pour les devices a code manuel (switch ou roue codé) est d'avoir une télécommande qui fonctionne avec et d'utilisé le mode Parrot du rfplayer

désolé ;)