Page 2 sur 3

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 06 août 2024, 11:52
par pipiche
c'est parfait. Merci

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 06 août 2024, 12:14
par pipiche
si tu peux faire un simple

Code : Tout sélectionner

git pull
et relancer le plugin, j'ai fait quelques changements dans le code

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 06 août 2024, 20:11
par YopYop
Fait.

Apparemment l'alerte "Tamper" ne se déclenche plus sur les vibrations et les fermetures de porte mais toujours sur les ouvertures.

Je n'ai pas vu d'autre changement.

Log en pièce jointe.

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 08 août 2024, 14:38
par pipiche
peux-tu activer le debug Widget et faire des tests, ensuite pousser les logs ici.

merci d'avance

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 08 août 2024, 23:42
par YopYop
Voila,

j'ai nettoyé un peu le log mais je n'ai pas pu aller très loin de peur d'effacer des infos qu'il fallait garder.

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 09 août 2024, 09:57
par pipiche
manque le fichier !

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 13 août 2024, 14:04
par YopYop
Oups, désolé.

Erreur corrigée

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 13 août 2024, 16:17
par pipiche
essayes un update (toujours sur cette branche)

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 01 sept. 2024, 19:08
par YopYop
Bonjour,

désolé de pas avoir répondu avant, j'étais en congés loin de ma domotique.

J'ai voulu tester la mise à jour mais je rencontre une difficulté. Mes logs sont bourrés d'erreur avec cette branche :
2024-09-01 19:03:38.098 Error: conbee: Call to function 'onHeartbeat' failed, exception details:
2024-09-01 19:03:38.098 Error: conbee: Traceback (most recent call last):
2024-09-01 19:03:38.098 Error: conbee: File "/home/domotique/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1578, in onHeartbeat
2024-09-01 19:03:38.098 Error: conbee: _plugin.onHeartbeat()
2024-09-01 19:03:38.098 Error: conbee: File "/home/domotique/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 891, in onHeartbeat
2024-09-01 19:03:38.098 Error: conbee: processListOfDevices(self, Devices)
2024-09-01 19:03:38.098 Error: conbee: File "/home/domotique/domoticz/plugins/Domoticz-Zigbee/Modules/heartbeat.py", line 969, in processListOfDevices
2024-09-01 19:03:38.098 Error: conbee: hr_process_device(self, Devices, NwkId)
2024-09-01 19:03:38.098 Error: conbee: File "/home/domotique/domoticz/plugins/Domoticz-Zigbee/Modules/heartbeat.py", line 677, in hr_process_device
2024-09-01 19:03:38.098 Error: conbee: process_main_powered_or_force_devices( self, NwkId, device_hearbeat, _mainPowered, enabledEndDevicePolling, model)
2024-09-01 19:03:38.098 Error: conbee: File "/home/domotique/domoticz/plugins/Domoticz-Zigbee/Modules/heartbeat.py", line 690, in process_main_powered_or_force_devices
2024-09-01 19:03:38.098 Error: conbee: rescheduleAction = ( rescheduleAction or tuya_polling(self, NwkId) )
2024-09-01 19:03:38.098 Error: conbee: File "/home/domotique/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 251, in tuya_polling
2024-09-01 19:03:38.098 Error: conbee: tuya_data_query, tuya_data_request_polling, tuya_data_request_polling_additional, tuya_elapse_time_consecutive_polling,additional_polls = tuya_polling_values(self, nwkid, device_model, tuya_device_info)
2024-09-01 19:03:38.098 Error: conbee: File "/home/domotique/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 192, in tuya_polling_values
2024-09-01 19:03:38.098 Error: conbee: if current_battery_level and current_battery_level < 30:
2024-09-01 19:03:38.098 Error: conbee: TypeError: '<' not supported between instances of 'str' and 'int'


Ca revient toutes les 5 secondes.

Pas de souci sur la version stable.

Re: Optimisation - Détecteur Lexman Ouverture porte / Vibration

Publié : 01 sept. 2024, 19:31
par pipiche
c'est fixé sur la branche wip-stable7-7.1.13 depuis pas mal de temps
donc fais simplement un update si tu es deja sur cette branche sinon

git checkout wip-stable7-7.1.13
git pull
sudo python3 -m pip install -r requirements.txt --upgrade