Giter Club home page Giter Club logo

Comments (50)

zaraki673 avatar zaraki673 commented on August 18, 2024

https://easydomoticz.com/forum/viewtopic.php?f=8&t=3934&sid=84c85983825d88d553d597857c6c26ba&start=70#p37522

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

Je viens de faire de nouveaux tests, avec la dernière maj du plugin, ce qui me permet d'affiner ce pb d'envoi de commande...

Je suis parti d'une configuration "toute propre", càd que j'ai supprimé mon RFPlayer des matériels, j'ai redémarré Domoticz, recréé le matériel, redémarré une nouvelle fois Domoticz et laissé les devices se créer automatiquement.

Il semblerait que la toute première action faite sur un device (changer le mode de chauffe) soit passée, mais depuis plus aucune ne passe...

Voici les log de Domoticz de la toute première commande après avoir redémarré le service (passage du device de Auto à Eco) :

2017-07-22 16:32:40.417 User: Admin initiated a switch command (62/RFPlayer - 8 - 1890977024/Set Level)
2017-07-22 16:32:40.453 (RFPlayer) Calling message handler 'onCommand'.
2017-07-22 16:32:40.453 (RFPlayer) SendtoRfplayer - Options find in DB: {'frequency': '868350', 'LevelActions': '|||||||||', 'infoType': '10', 'SelectorStyle': '0', 'subType': '5', 'LevelOffHidden': 'True', 'function': '2', 'protocol': '8', 'area': '0', 'id': '1110000101101100000010100', 'LevelNames': 'Off|Eco|Moderat|Medio|Comfort|Stop|Out of frost|Special|Auto|Centralised'} for devices unit 3
2017-07-22 16:32:40.453 (RFPlayer - 8 - 1890977024) Updating device from 0:'50' to have values 0:'10'.
2017-07-22 16:32:40.568 Python: Changed: ID: 62 Name: RFPlayer - 8 - 1890977024, Type: 244, subType: 62, switchType: 18, s_value: 10, n_value: 0, n_value_string: Eco, last_update_string: 2017-07-22 16:32:40
2017-07-22 16:32:40.569 (RFPlayer) Sending 44 bytes of data:.
2017-07-22 16:32:40.569 (RFPlayer) 5a 49 41 2b 2b 44 49 4d 20 25 31 20 38 20 49 44 20 31 31 31 ZIA++DIM.%1.8.ID.111
2017-07-22 16:32:40.569 (RFPlayer) 30 30 30 30 31 30 31 31 30 31 31 30 30 30 30 30 30 31 30 31 00001011011000000101
2017-07-22 16:32:40.569 (RFPlayer) 30 30 0a 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 00..

Puis une autre action (passage du même device de Eco à Stop) :

2017-07-22 16:33:20.628 User: Admin initiated a switch command (62/RFPlayer - 8 - 1890977024/Set Level)
2017-07-22 16:33:20.649 (RFPlayer) Calling message handler 'onCommand'.
2017-07-22 16:33:20.649 (RFPlayer) SendtoRfplayer - Options find in DB: {'LevelActions': '|||||||||', 'LevelNames': 'Off|Eco|Moderat|Medio|Comfort|Stop|Out of frost|Special|Auto|Centralised', 'SelectorStyle': '0', 'LevelOffHidden': 'false'} for devices unit 3
2017-07-22 16:33:20.649 Error: (RFPlayer) 'onCommand' failed 'KeyError'.
2017-07-22 16:33:20.649 Error: (RFPlayer) ----> Line 266 in /home/domoticz/domoticz/plugins/rfplayer/plugin.py, function onCommand
2017-07-22 16:33:20.649 Error: (RFPlayer) ----> Line 221 in /home/domoticz/domoticz/plugins/rfplayer/plugin.py, function onCommand
2017-07-22 16:33:20.649 Error: (RFPlayer) ----> Line 1248 in /home/domoticz/domoticz/plugins/rfplayer/plugin.py, function SendtoRfplayer

On s'aperçoit que le "Option find in DB" n'est pas le même, ce qui me ferait penser à un problème d'initialisation de variable qque part ?

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

Bonjour,

Après mise à jour du plugin dans la version d'hier, j'ai tenté un ajout manuel de "X2D - 868 - OPERATING MODE", voici les messages d'erreurs suite à cela.
2017-08-30 15:44:29.596 (RFP) Debug log level set to: 'true'. 2017-08-30 15:44:29.597 (RFP) Options to find or set : {'subType': '0', 'infoType': '10', 'LevelOffHidden': 'True', 'frequency': '868950', 'protocol': '8', 'SelectorStyle': '0', 'LevelActions': '|||||||||', 'area': '1', 'LevelNames': 'Off|Eco|Moderat|Medio|Comfort|Stop|Out of frost|Special|Auto|Centralised', 'id': '724370689', 'function': '2'} 2017-08-30 15:44:29.597 Error: (RFP) 'onStart' failed 'NameError':'name 'stype' is not defined'. 2017-08-30 15:44:29.597 Error: (RFP) ----> Line 166 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onStart 2017-08-30 15:44:29.597 Error: (RFP) ----> Line 91 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onStart 2017-08-30 15:44:29.597 Error: (RFP) ----> Line 1435 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function CreateDevice 2017-08-30 15:44:39.317 (RFP) Calling message handler 'onHeartbeat'. 2017-08-30 15:44:39.317 Error: (RFP) 'onHeartbeat' failed 'NameError':'name 'SerialConn' is not defined'. 2017-08-30 15:44:39.317 Error: (RFP) ----> Line 186 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat 2017-08-30 15:44:39.317 Error: (RFP) ----> Line 155 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat 2017-08-30 15:44:49.516 (RFP) Calling message handler 'onHeartbeat'. 2017-08-30 15:44:49.517 Error: (RFP) 'onHeartbeat' failed 'NameError':'name 'SerialConn' is not defined'. 2017-08-30 15:44:49.517 Error: (RFP) ----> Line 186 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat 2017-08-30 15:44:49.517 Error: (RFP) ----> Line 155 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat 2017-08-30 15:44:59.736 (RFP) Calling message handler 'onHeartbeat'. 2017-08-30 15:44:59.736 Error: (RFP) 'onHeartbeat' failed 'NameError':'name 'SerialConn' is not defined'. 2017-08-30 15:44:59.736 Error: (RFP) ----> Line 186 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat 2017-08-30 15:44:59.736 Error: (RFP) ----> Line 155 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat 2017-08-30 15:45:09.935 (RFP) Calling message handler 'onHeartbeat'. 2017-08-30 15:45:09.935 Error: (RFP) 'onHeartbeat' failed 'NameError':'name 'SerialConn' is not defined'. 2017-08-30 15:45:09.935 Error: (RFP) ----> Line 186 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat 2017-08-30 15:45:09.936 Error: (RFP) ----> Line 155 in /usr/local/domoticz/var/plugins/RFPlayer/plugin.py, function onHeartbeat

Pour info, j'ai fait de la même manière pour deux volets roulants "RTS - SHUTTER" et cela a fonctionné mais là plus rien ne fonctionne suite à la manip ci-dessus. Tout devient inopérant, pas de possibilité d'annuler l'adjonction qui pose problème ?

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on August 18, 2024

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

En relançant domoticz, ça repart.. désolé pour le dérangement..

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on August 18, 2024

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

Par contre, je m'en sors pas avec le X2D :-(. J'ai un Deltia truc muche 2 zones. J'ai les id et l'area de chaque zone, j'essaie d'ajouter un OPERATING MODE et HEATING SPEED pour chaque zone.
Je ne peux ajouter qu'un seul item. L'autre quand je l'ajoute, le rfp redémarre et m'indique que le device existe déjà.
J'ai un simple interrupteur on/off qui remonte au final et pas un interrupteur sélecteur avec tous les modes listés.
Dur dur la vie d'artiste... ;-) !

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

je ne comprends pas comment ce code est supposé marcher :

        if infoType == "10" :
                id=Options['id']
                Area=Options['area']
                if Level == 0 :
                        lineinput='ZIA++' + str("DIM %0 " + protocol + " ID " + id )
                if Level == 10 :
                        lineinput='ZIA++' + str("DIM %1 " + protocol + " ID " + id)
                if Level == 20 :
                        lineinput='ZIA++' + str("DIM %2 " + protocol + " ID " + id)
                if Level == 30 :
                        lineinput='ZIA++' + str("DIM %3 " + protocol + " ID " + id)
                if Level == 40 :
                        lineinput='ZIA++' + str("DIM %4 " + protocol + " ID " + id)
                if Level == 50 :
                        lineinput='ZIA++' + str("DIM %5 " + protocol + " ID " + id)
                if Level == 60 :
                        lineinput='ZIA++' + str("DIM %6 " + protocol + " ID " + id)
                if Level == 70 :
                        lineinput='ZIA++' + str("DIM %7 " + protocoaisl + " ID " + id)
                if Level == 80 :
                        lineinput='ZIA++' + str("DIM %8 " + protocol + " ID " + id)
                if Level == 90 :
                        lineinput='ZIA++' + str("DIM %9 " + protocol + " ID " + id)
                SerialConn.Send(bytes(lineinput + '\n\r','utf-8'))
                Devices[Unit].Update(nValue =0,sValue = str(Level))

Area est défini, mais pas passé au rfplayer. Mais j'ai demandé l'API, je comprendrai peut-être mieux avec :-)

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

https://www.jeedom.com/forum/viewtopic.php?f=162&t=27226&start=20 a pas mal d'infos (notamment, que ça ne marche pas non plus sur jeedom)

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

j'ai recu l'API de ZiBlue, et les commandes pour les radiateurs sont documentées dans la version 1.10 de la doc (je ne peux pas la diffuser, mais vous pouvez la demander à ZiBase). Les commandes sont différentes de ce qui est implémenté. Je regarde la semaine prochaine pour proposer une version qui fonctionne.

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

j'ai eu le temps de regarder.

pour associer un récepteur (Deltia Dore 1.03 dans mon cas), il faut:

  • appuyer 5s sur le bouton d'association du récepteur
  • envoyer ASSOC X2DELEC A1 (A1 = zone 1)

puis, pour changer l'ordre:

  • confort: ON X2DELEC A1 %3
  • eco: OFF X2DELEC A1 %0
  • HG: OFF X2DELEC A1 %5

et ça marche \o/

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on August 18, 2024

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

Alors j'ai essayé (via le configurateur V1.4) ==> impeccable !
Par contre, j'ai la version 1.9 de la doc API, obtenue début juillet : aucun détail sur les commandes pour le chauffage... Pourtant le firmware n'a pas changé, lui : toujours en 1.20
C'est vraiment dommage !... Car je pense que je l'aurai vu, et donc signalé à zaraki673.

Pour mon test, j'ai d'abord fait à l'identique en 'zone 1' puis j''ai tenté une zone 9 (donc A9 dans les exemples) : les ordres sont bien reconnus !
Et j'ai testé avec un récepteur RF660FP, donc parfaitement compatible (il est bien dans la liste des périphériques X2D sur le site RFPLayer, mais pas encore annoncé compatible).

Vivement l'implémentation dans le plugin RFPlayer pour Domoticz ^_^

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

Oui, ma version de la doc est la 1.10, datée du 04/09/2017.

Le changelog dit:

V1.10 : X2D thermostat frames generation precisions (X2DGAS and X2DELEC).

Par contre, pour l'implem dans Domoticz, je me demande comment la phase d'association pourra être gérée.

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

La doc complète est:
0: ECO, 3: COMFORT, 4: STOP, 5: OUT OF FROST, 7: AUT0

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

Côté Domoticz, je pense qu'il faut :

  • créer un device pour faire l'association, sur 9 zones par exemple : une fois les zones associées plus besoin du device
  • créer les device tels qu'actuellement, en limitant aux possibilité ECO, COMFORT, STP, OUT OF FROST et AUTO, autant de device que de zones souhaitée (création manuelle du coup ??)
  • envoyer l'ordre via RFPlayer : ordre et zone sont connus

Je vais voir pour adapter le plugin chez moi.

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

bonjour,

dans la pull request #31 j'ai ajouté le support pour l'utilisation des commandes X2DELEC. Je suis nul en Python, et je ne suis pas sûr d'avoir compromis le rôle des différents identifiants numériques (infotype, protocol) donc j'ai fait de mon mieux.

Pour l'utiliser, il faut ajouter des devices en "updatant" le hardware rfplayer, et y entrant à chaque fois des params différents. Cad que si je veux créer 3 devices pour des zones 1, 2, 3, il faut faire:

  • setup
  • hardware
  • choisir le rfplayer
  • manual create device: X2D ELEC (heater regulation)
  • device ID: 1
  • area: 1
  • cliquer sur update
  • manual create device: X2D ELEC (heater regulation)
  • device ID: 2
  • area: 2
  • cliquer sur update
  • manual create device: X2D ELEC (heater regulation)
  • device ID: 3
  • area: 3
  • cliquer sur update

Ensuite, pour associer les modules: (dans mon cas des Deltia 1.03)

  • appuyer sur le bouton du module pendant 5 secondes. Il se met à clignoter.
  • dans domoticz, cliquer sur Assoc
  • le module s'arrête de clignoter, et on peut vérifier que ça fonctionne bien en cliquant sur les autres boutons

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

sinon, je ne sais pas s'il y a des modes ECO+1/ECO+2, ni à quoi correspond le mode AUTO, donc je n'ai ajouté que Off / HG / ECO / Confort. (l'API ne dit rien sur ECO+1/ECO+2)

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

à la réflexion, je ne suis pas sûr que le type d'interrupteur choisi soit le meilleur: visiblement, ça ne permet pas de programmer plusieurs niveaux dans les "Timers" de domoticz, seulement Off/On. Ou alors j'ai raté un truc ?

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

tu as quoi comme modules côté radiateur ? comment as-tu vérifié que confort-1/confort-2 marchaient ?

tu es reparti de mes modifs ou tu as fait tes propres modifs ? l'association marche sans pb chez moi. Comment tu envoies les ordres si tu n'as pas associé avant ?

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

Je viens seulement de voir ta pull request #31 : j'essaye ce soir et vous dis ce qu'il en est !

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

Il me semble que les "infotype" et "protocol" sont spécifiques au dongle RFPlayer.
Cad que tant que les infotype 12 ou protocol 20 ne seront pas exploités ton code marchera.
Par contre, après...

Mes modifications sur le SendToRfplayer sont les mêmes que toi, mais pour l'infotype = 10 et adaptées aux différents Level (différents chez toi).
La création manuelle de device est à faire sur X2D Operating Mode (en 433 ou 868).
Cela devrait créer un switch avec toutes les commandes... Par contre chez moi ça ne marche pas : j'ai une erreur dans la log et le device n'est pas créé... :-(

Voilà mon code modifié (l'association ne marche pas....) :

if infoType == "10" :
	id=Options['id']
	Area=Options['area']
	if Level == 0 : #Off = Stop
		lineinput='ZIA++' + str("OFF X2DELEC A"+area + " %4")
	if Level == 10 : #Eco
		lineinput='ZIA++' + str("OFF X2DELEC A"+area + " %0")
	if Level == 20 : #Conf-2 ???
		lineinput='ZIA++' + str("OFF X2DELEC A"+area + " %1")
	if Level == 30 : #Conf-1 ???
		lineinput='ZIA++' + str("OFF X2DELEC A"+area + " %2")
	if Level == 40 : #Conf
		lineinput='ZIA++' + str("ON X2DELEC A"+area + " %3")
	if Level == 50 : #Stop = Off
		lineinput='ZIA++' + str("OFF X2DELEC A"+area + " %4")
	if Level == 60 : #Hors Gel
		lineinput='ZIA++' + str("OFF X2DELEC A"+area + " %5")
	if Level == 70 : #Assoc
		lineinput='ZIA++' + str("ASSOC X2DELEC A"+area)
	if Level == 80 : #Auto
		lineinput='ZIA++' + str("DIM %8 " + protocol + " ID " + id)
	if Level == 90 : #Centralised
		lineinput='ZIA++' + str("DIM %9 " + protocol + " ID " + id)

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on August 18, 2024

Bonsoir, desolé pas bcp de temps en ce moment, je merge la request #31 ?

je me remets sur le sujet des que possible,

merci ;)

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

de mon point de vue tu peux, même s'il y a aura probablement besoin de qqes cycles en plus pour nettoyer. notamment j'ai ajouté mon patch à côté du support existant pour X2D, alors qu'il valait peut-être mieux remplacer ce qui ne marchait pas, mais en conservant ce qui marchait.

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

@ogulf je ne vois pas tes RF660P dans http://rfplayer.com/peripheriques/?cat=98 ? peut-être que c'est pour ça que l'association ne fonctionne pas ?

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on August 18, 2024

je verrais plus tard pour le ménage ^^,

merci beaucoup ;)

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

@lnussbaum : si si, ils y sont bien, regarde bien (ne liste que le matériel X2D : il est tout à la fin)
Quant à l'association, elle marche avec le rfplayer_configuratorV1_4.jar et la commande que tu as donnée : j'ai essayé en zone A1 et en zone A9 directement (sans passer par Domoticz)

@zaraki673 : il semble qu'il y ait une régression dans le décodage de l'infotype 10, cf ci-dessous pour fonction 1 et fonction 2. Je crée une issue ?
A noter : mes devices ont été créés avec une ancienne version du plugin, c'est peut-être pour ça ?

Je pense par ailleurs que Inussbaum a raison : il faut implémenter ses modif dans l'infotype 10 sans en créer un nouveau.

2017-10-10 19:00:46.982 (RFPlayer) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "1", "rfLevel": "-60", "floorNoise": "-105", "rfQuality": "10", "protocol": "8", "protocolMeaning": "X2D", "infoType": "10", "frequency": "868350"},"infos": {"subType": "5", "subTypeMeaning": "DRIVER RF", "id": "1890977025", "area": "1", "qualifier": "32", "qualifierMeaning": { "flags": []}, "function": "2", "functionMeaning": "OPERATING MODE", "state": "7", "stateMeaning": "AUTO"}}}
2017-10-10 19:00:46.982 (RFPlayer) infoType : 10
2017-10-10 19:00:46.982 (RFPlayer) id binary : 1110000101101100000010100000001
2017-10-10 19:00:46.983 (RFPlayer) area b: 000001
2017-10-10 19:00:46.983 (RFPlayer) id decode b: 1110000101101100000010100
2017-10-10 19:00:46.983 (RFPlayer) area i: 2
2017-10-10 19:00:46.983 (RFPlayer) id decode i: 29546516
2017-10-10 19:00:46.983 (RFPlayer) id decode h: 1c2d814
2017-10-10 19:00:46.983 (RFPlayer) Options to find or set : {'LevelActions': '|||||||||', 'function': '2', 'infoType': '10', 'LevelNames': 'Off|Eco|Moderat|Medio|Comfort|Stop|Out of frost|Special|Auto|Centralised', 'id': '1110000101101100000010100', 'area': '1', 'protocol': '8', 'subType': '5', 'SelectorStyle': '0', 'LevelOffHidden': 'True', 'frequency': '868350'}
2017-10-10 19:00:46.983 (RFPlayer) Error while decoding Infotype10 frame

2017-10-10 19:00:51.995 (RFPlayer) ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "1", "rfLevel": "-55", "floorNoise": "-105", "rfQuality": "10", "protocol": "8", "protocolMeaning": "X2D", "infoType": "10", "frequency": "868350"},"infos": {"subType": "5", "subTypeMeaning": "DRIVER RF", "id": "1890977026", "area": "2", "qualifier": "32", "qualifierMeaning": { "flags": []}, "function": "1", "functionMeaning": "HEATING SPEED", "state": "0", "stateMeaning": "OFF"}}}
2017-10-10 19:00:51.995 (RFPlayer) infoType : 10
2017-10-10 19:00:51.996 (RFPlayer) id binary : 1110000101101100000010100000010
2017-10-10 19:00:51.996 (RFPlayer) area b: 000010
2017-10-10 19:00:51.996 (RFPlayer) id decode b: 1110000101101100000010100
2017-10-10 19:00:51.996 (RFPlayer) area i: 3
2017-10-10 19:00:51.996 (RFPlayer) id decode i: 29546516
2017-10-10 19:00:51.996 (RFPlayer) id decode h: 1c2d814
2017-10-10 19:00:51.996 (RFPlayer) Options to find or set : {'function': '1', 'infoType': '10', 'id': '1890977026', 'area': '2', 'protocol': '8', 'subType': '5', 'frequency': '868350'}
2017-10-10 19:00:51.996 (RFPlayer) Error while decoding Infotype10 frame

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

Tout marche nickel ce matin avec seulement mes modifs du code sur infotype 10 de La procédure SendToRfplayer :-)
1- j'avais une erreur de code pour l'association des récepteurs, c'est pour ça que ça ne marchait pas... bonjour le boulet... corrigé !
2- j'avais renommé et supprimé certains Level d'un des devices créé il y a qques mois par une ancienne version du plugin. Du coup la dernière version plantait sur le DOption ["id"] qui n'existait plus (pkoi j'en sais rien). Suppression des anciens devices !
3- création manuelle Operating Mode en 868 (valeur 7). Je n'ai pas essayé avec 433 mais pas de raison que ça ne marche pas. ATTENTION : ne pas modifier le device créé !
4- association avec RF660P ok
5- ordres Eco, Off, Stop, Confort ok
6- testé sur deux zones differentes ok

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

Je viens de voir que les modifications proposées par Inussbaum ont été intégrées pour l'envoi des commandes de chauffage X2D aux récepteurs 👍

Cependant le plugin ne fonctionne pas pour les devices créés automatiquement par le plugin.
En effet, ces derniers sont identifiés avec un Infotype 10 et pas avec un Infotype 12, du coup l'envoi des commandes échoue.

Comme je l'avais déjà proposé, est-il possible de modifier le plugin comme suit (je ne sais pas créer de Pull Requests) ?

Version V1.0.6
Modifications identifiées par # Modif ogulf + Inussbaum

def SendtoRfplayer(Unit, Command, Level, Hue):
...
        if infoType == "10" :
                 id=Options['id']
                 Area=Options['area']
		# Modif ogul + Inussbaum - Début
		 if Level == 0 :
                         lineinput='ZIA++' + str("OFF X2DELEC A" + Area + " %4")
                 if Level == 10 : #Eco
                         lineinput="ZIA++" + str("OFF X2DELEC A" + Area + " %0")
                 if Level == 20 : #Confort-2
                         lineinput='ZIA++' + str("OFF X2DELEC A" + Area + " %1")
                 if Level == 30 : #Confort-1
                         lineinput='ZIA++' + str("OFF X2DELEC A" + Area + " %2")
                 if Level == 40 : #Confort
                         lineinput="ZIA++" + str("ON X2DELEC A" + Area + " %3")
                 if Level == 50 : #Stop
                         lineinput="ZIA++" + str("OFF X2DELEC A" + Area + " %4")
                 if Level == 60 : #HorsGel
                         lineinput="ZIA++" + str("OFF X2DELEC A" + Area + " %5")
                 if Level == 70 : #Association
                         lineinput="ZIA++" + str("ASSOC X2DELEC A" + Area)
		# Modif ogul + Inussbaum - Fin
		 if Level == 80 : #Auto
                         lineinput='ZIA++' + str("DIM %8 " + protocol + " ID " + id)
                 if Level == 90 : #Special
                         lineinput='ZIA++' + str("DIM %9 " + protocol + " ID " + id)
                 SerialConn.Send(bytes(lineinput + '\n\r','utf-8'))
                 Devices[Unit].Update(nValue =0,sValue = str(Level))
...

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

@ogulf si tu as une version basée sur la mienne, mais corrigée, peux-tu l'envoyer (directement le fichier modifié, en piece jointe dans le commentaire) ? comme ça je teste chez moi, et je propose quelque chose d'intégrable dans une pull request.

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

ok, j'ai créé une nouvelle pull request en intégrant tes changements + des fixes supplémentaires:
#34

donc cette fois ci, c'est bien l'infotype 10 qui est utilisé. la création manuelle fonctionne. je suppose que la création automatique fonctionne aussi, mais je ne peux pas tester. j'ai aussi trié les niveaux (boutons) pour les avoir par "température" croissante.

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

à mon avis, cette fois ci, tout est bon, et on peut considérer ça comme résolu

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

Bonsoir, perso les commandes fonctionnent nickel mais je n'arrive pas à piloter les inter sélecteur par script ou par planning. Je n'ai que l'état on ou off dispo. Je le fais pour des volets roulants mais là impossible. Une idée ? Ou peut-être une correction à venir dans la dernière version ci-avant ?

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

ça marche chez moi avec la version de la pull request 34 (mais j'utilise l'API de domoticz avec un script en cron, par contre, je n'ai pas configuré le planning dans domoticz). il faut bien définir le "Level", sinon ça ne marche pas

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

Merci pour le retour. Je le fais bien avec les level effectivement mais c'est ko. Je vais attendre la nouvelle version du plugin pour tester à nouveau.

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

tu peux essayer avec https://github.com/lnussbaum/Domoticz-Rfplayer/blob/master/plugin.py éventuellement

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

Effectivement ça fonctionne tout de suite mieux !! Merci ! Au plaisir.

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

@Inussbaum : une petite erreur de copier/coller dans le PullRequests #34...

Actuellement :
517 + if Level == 60 : # assoc
518 + lineinput="ZIA++ ON X2DELEC A"+Area + " %3"

A modifier en :
517 + if Level == 60 : # assoc
518 + lineinput="ZIA++ ASSOC X2DELEC A"+Area

Pour le reste ça doit être bon ^_^
Bien vu la francisation des commandes !! 👍

A noter : pour celles et ceux qui ont déjà des devices créés manuellement ou automatiquement avec le RFPlayer... Et bien il faut les recréer (suite réorganisation des Level du Selector Switch).

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on August 18, 2024

Merci a tous pour ces modifications/corrections ;)

from domoticz-rfplayer.

ogulf avatar ogulf commented on August 18, 2024

You're welcome :)

from domoticz-rfplayer.

lnussbaum avatar lnussbaum commented on August 18, 2024

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

Bonjour, j'ai mis en place la #35 hier soir. Impossible de créer manuellement un device X2D 868 Operating mode ou autre qui me donne un inter sélecteur. J'ai un inter X10 on/off seulement quelques soit le type de device choisi :-/ ! J'ai fait un reset usine partiel du rfplayer aussi.. idem après.

Un petit tuto pour tous les types de device serait le bienvenu à terme non ?

from domoticz-rfplayer.

yoannrouzic avatar yoannrouzic commented on August 18, 2024

J'ai écrit trop vite...
En relisant le script plugin.py, j'ai finalement pu créer un device Operating mode pour chaque zone.
Domoticz a planté une fois sur les deux créations..?

Pour mon histoire de commande de l'interrupteur sélecteur, c'est réglé, le problème venait de moi côté prog blockly, je faisais un test de level (Level=20%) sur un inter sélecteur au lieu de faire un test sur le nom de l'état "Eco" par exemple.

Tout est bon pour moi.

from domoticz-rfplayer.

zaraki673 avatar zaraki673 commented on August 18, 2024

vu que tout est bon , je clos,

Un Grand merci à vous pour vos contributions

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.