Domoticz & IFTTT

Forum dédié aux questions concernant la configuration de votre serveur sous Linux
florian54
Messages : 13
Inscription : 31 mai 2017, 21:31

Domoticz & IFTTT

Message par florian54 »

Bonjour à tous !

Je viens de passer récemment mon RPi3 et sa carte SD sous BUSTER et la dernière version de Domoticz (2021.1).
Seulement depuis cette mise à jour je rencontre un problème particulier concernant les commandes vocales sous IFTTT :

Je dois demander deux fois la commande pour que l'action s'exécute correctement.
A la première demande, IFTTT répond bien mais aucune action ne se passe, à la deuxième demande cela fonctionne normalement.

Du côté des LOG je peux voir que DOMOTICZ semble reboot automatiquement :

A 7h22 ce matin :

Code : Tout sélectionner

2022-01-18 07:22:51.929 Status: Domoticz V2021.1 (c)2012-2021 GizMoCuz
2022-01-18 07:22:51.929 Status: Build Hash: 8547c5b7e, Date: 2021-04-17 17:29:11
2022-01-18 07:22:51.929 Status: Startup Path: /home/pi/domoticz/
2022-01-18 07:22:52.130 Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2022-01-18 07:22:52.178 Status: WebServer(SSL) started on address: :: with port 443
2022-01-18 07:22:52.190 Status: TCPServer: shared server started...
2022-01-18 07:22:52.190 Status: RxQueue: queue worker started...
2022-01-18 07:22:54.191 Status: RFXCOM 433MHZ: Worker started...
2022-01-18 07:22:54.198 Status: NETATMO: Worker started...
2022-01-18 07:22:54.201 Status: enocean usb: Worker started...
2022-01-18 07:22:54.264 Status: Raspberry PI: System: Raspberry Pi
2022-01-18 07:22:54.308 Status: Raspberry PI: Hardware Monitor: Started (OStype Raspberry Pi Linux)
2022-01-18 07:22:54.308 Status: NotificationSystem: thread started...
2022-01-18 07:22:54.311 Status: EventSystem: reset all events...
2022-01-18 07:22:54.316 Status: EventSystem: reset all device statuses...
2022-01-18 07:22:54.377 Status: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2022-01-18 07:22:54.377 Status: EventSystem: Started
2022-01-18 07:22:54.378 Status: EventSystem: Queue thread started...
2022-01-18 07:22:54.404 Status: enocean usb: Using serial port: /dev/ttyUSBENOCEAN
2022-01-18 07:22:54.404 Status: enocean usb: EnOcean Send: XXXXXX
2022-01-18 07:22:54.405 Status: enocean usb: EnOcean Send: XXXXXX
2022-01-18 07:22:54.480 Status: enocean usb: XXXXXX
2022-01-18 07:22:54.480 Status: enocean usb: Transceiver ID_Base: XXXXXX
2022-01-18 07:22:54.680 Status: enocean usb: XXXXXXXX
2022-01-18 07:22:54.680 Status: enocean usb: Version_Info, App: XXXXXX, API: XXXXXXX, ChipID: XXXXXXX ChipVersion: XXXXXXX, Description: GATEWAYCTRL
2022-01-18 07:22:55.195 Status: RFXCOM 433MHZ: Using serial port: /dev/ttyUSBRFXCOM
2022-01-18 07:22:55.846 Status: RFXCOM 433MHZ: Async Disabled
2022-01-18 07:23:00.614 Status: NETATMO: No Weather Station devices found...
Puis à 7h32 :

Code : Tout sélectionner

 2022-01-18 07:32:52.646 Status: Domoticz V2021.1 (c)2012-2021 GizMoCuz
2022-01-18 07:32:52.648 Status: Build Hash: 8547c5b7e, Date: 2021-04-17 17:29:11
2022-01-18 07:32:52.648 Status: Startup Path: /home/pi/domoticz/
2022-01-18 07:32:52.675 Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2022-01-18 07:32:52.683 Status: WebServer(SSL) started on address: :: with port 443
2022-01-18 07:32:52.687 Status: TCPServer: shared server started...
2022-01-18 07:32:52.688 Status: RxQueue: queue worker started...
2022-01-18 07:32:54.688 Status: RFXCOM 433MHZ: Worker started...
2022-01-18 07:32:54.689 Status: NETATMO: Worker started...
2022-01-18 07:32:54.689 Status: enocean usb: Worker started...
2022-01-18 07:32:54.708 Status: Raspberry PI: System: Raspberry Pi
2022-01-18 07:32:54.775 Status: Raspberry PI: Hardware Monitor: Started (OStype Raspberry Pi Linux)
2022-01-18 07:32:54.775 Status: NotificationSystem: thread started...
2022-01-18 07:32:54.776 Status: EventSystem: reset all events...
2022-01-18 07:32:54.777 Status: EventSystem: reset all device statuses...
2022-01-18 07:32:54.829 Status: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2022-01-18 07:32:54.829 Status: EventSystem: Started
2022-01-18 07:32:54.829 Status: EventSystem: Queue thread started...
2022-01-18 07:32:54.893 Status: enocean usb: Using serial port: /dev/ttyUSBENOCEAN
2022-01-18 07:32:54.893 Status: enocean usb: EnOcean Send: XXXXXX
2022-01-18 07:32:54.893 Status: enocean usb: EnOcean Send: XXXXXX
2022-01-18 07:32:54.968 Status: enocean usb: XXXXXX
2022-01-18 07:32:54.968 Status: enocean usb: Transceiver ID_Base: XXXXXX
2022-01-18 07:32:55.168 Status: enocean usb: XXXXXX
2022-01-18 07:32:55.168 Status: enocean usb: Version_Info, App: XXXXXX, API: XXXXXX, ChipID: XXXXXX, ChipVersion: XXXXXX, Description: GATEWAYCTRL
2022-01-18 07:32:55.692 Status: RFXCOM 433MHZ: Using serial port: /dev/ttyUSBRFXCOM
2022-01-18 07:32:56.343 Status: RFXCOM 433MHZ: Async Disabled
2022-01-18 07:33:00.789 Status: NETATMO: No Weather Station devices found... 
Puis ça recommence à 7h37; 7h42...
Trouvez-vous cela normal ? Du côté des erreurs; toujours cette même erreur lors du présumé reboot ?!

Sachant que Mydomoticz n'est pas activé dans la configuration.

Code : Tout sélectionner

 2022-01-18 07:22:52.188 Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
2022-01-18 07:32:52.686 Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
2022-01-18 07:37:55.256 Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
2022-01-18 07:42:57.734 Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
2022-01-18 07:48:00.303 Error: No servers are configured. Hence mydomoticz will not be started either (if configured) 
Ce que je peux remarquer également c'est que certains de mes plannings, aléatoirement, peut ne pas fonctionner.
Peut-être si l'ordre est passé pendant cette phase de reboot ?

Merci de votre aide !
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Domoticz & IFTTT

Message par Keros »

Regarde la 4e ligne des logs :
2022-01-18 07:22:52.130 Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
DomoticZ ne démarre pas correctement ce qui doit entrainer tes différents soucis.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
florian54
Messages : 13
Inscription : 31 mai 2017, 21:31

Re: Domoticz & IFTTT

Message par florian54 »

Han...! Honteux c'est devant mes yeux effectivement...
Je peux voir dans le menu setup > A propos que la librairie Python n'est pas installée....

Sans titre.jpg
Sans titre.jpg (29.58 Kio) Consulté 2343 fois

Pour alimenter le sujet; J'installe l'ensemble et je reviens vers le forum pour clôturer ou non le sujet

Code : Tout sélectionner

sudo apt install python3-dev
florian54
Messages : 13
Inscription : 31 mai 2017, 21:31

Re: Domoticz & IFTTT

Message par florian54 »

Je me permet de répondre :

J'ai effectué la MAJ mais le problème persiste :

Sans titre.jpg
Sans titre.jpg (34.42 Kio) Consulté 2329 fois

Ici à 17h34 puis à 17h44 :

Code : Tout sélectionner

 2022-01-18 17:34:21.897 Status: Domoticz V2021.1 (c)2012-2021 GizMoCuz
2022-01-18 17:34:21.899 Status: Build Hash: 8547c5b7e, Date: 2021-04-17 17:29:11
2022-01-18 17:34:21.899 Status: Startup Path: /home/pi/domoticz/
2022-01-18 17:34:22.396 Status: PluginSystem: Started, Python version '3.7.3'.
2022-01-18 17:34:22.419 Status: WebServer(SSL) started on address: :: with port 443
2022-01-18 17:34:22.430 Status: TCPServer: shared server started...
2022-01-18 17:34:22.430 Status: RxQueue: queue worker started...
2022-01-18 17:34:24.450 Status: Raspberry PI: System: Raspberry Pi
2022-01-18 17:34:24.493 Status: Raspberry PI: Hardware Monitor: Started (OStype Raspberry Pi Linux)
2022-01-18 17:34:24.493 Status: NotificationSystem: thread started...
2022-01-18 17:34:24.497 Status: EventSystem: reset all events...
2022-01-18 17:34:24.502 Status: EventSystem: reset all device statuses...
2022-01-18 17:34:24.616 Status: Python EventSystem: Initalizing event module.
2022-01-18 17:34:24.617 Status: EventSystem: Started
2022-01-18 17:34:24.617 Status: EventSystem: Queue thread started...

2022-01-18 17:44:27.636 Status: Domoticz V2021.1 (c)2012-2021 GizMoCuz
2022-01-18 17:44:27.638 Status: Build Hash: 8547c5b7e, Date: 2021-04-17 17:29:11
2022-01-18 17:44:27.638 Status: Startup Path: /home/pi/domoticz/
2022-01-18 17:44:27.732 Status: PluginSystem: Started, Python version '3.7.3'.
2022-01-18 17:44:27.742 Status: WebServer(SSL) started on address: :: with port 443
2022-01-18 17:44:27.745 Status: TCPServer: shared server started...
2022-01-18 17:44:27.746 Status: RxQueue: queue worker started...
2022-01-18 17:44:29.766 Status: Raspberry PI: System: Raspberry Pi
2022-01-18 17:44:29.784 Status: Raspberry PI: Hardware Monitor: Started (OStype Raspberry Pi Linux)
2022-01-18 17:44:29.784 Status: NotificationSystem: thread started...
2022-01-18 17:44:29.785 Status: EventSystem: reset all events...
2022-01-18 17:44:29.786 Status: EventSystem: reset all device statuses...
2022-01-18 17:44:29.885 Status: Python EventSystem: Initalizing event module.
2022-01-18 17:44:29.886 Status: EventSystem: Started
2022-01-18 17:44:29.886 Status: EventSystem: Queue thread started... 
adv
Messages : 580
Inscription : 02 févr. 2016, 13:54
Contact :

Re: Domoticz & IFTTT

Message par adv »

Hello, alors tu dois demander deux fois à IFTTT effectivement après un reboot pour qu'il exécute un ordre, ça me le fait aussi.
Jusqu'ici c'est normal.
Ton pbm est bien le reboot intempestif !
C'est quand même bien bien chelou à 10 minutes d'intervalle pile !!!
Est-ce seulement Domoticz qui redémarre, ou le pi aussi ?!
Que donnent les commandes "crontab -e" et "crontab" ?
Raspberry pi 3 - Domoticz 2024.4 | Piface v.2 + Téléinfo + RFXtrx433E
sondes Oregon | motorisations Somfy Yslo Flex 2 RTS
prises chacon, wifi | Sonoff easyESP, Tasmota, Espurna | ParadoxMG5050
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Domoticz & IFTTT

Message par Keros »

Tu n'as pas un daemon qui vérifierait le fonctionnement de DomoticZ toutes les 10 minutes ?
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
florian54
Messages : 13
Inscription : 31 mai 2017, 21:31

Re: Domoticz & IFTTT

Message par florian54 »

J'ai déjà trouvé la source du redémarrage : l'application MONIT !
J'ai désinstallé l'application et depuis c'est stable, je ne vois plus de redémarrage.

Maintenant pourquoi MONIT lancait un redémarrage de Domoticz uniquement; pas du RPi c'est autre chose...
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Domoticz & IFTTT

Message par Keros »

Je m'en doutais ;)

Généralement Monit ne fait redémarrer que DomoticZ. Après cela dépend de ce que tu as configuré.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Répondre