Soucis avec la programmation de l'automatisme

Hello @hbe

A priori la programmation ne fonctionne pas. Pour un équipement, j’ai 2 automatisme qui doivent se déclencher un entre 8h et 20h et l’autre entre 20h et 8h. Le premier automatisme semble prendre le pas même après 20h.

Je regarde les logs mais ce n’est pas clair, il semble lancer les 2 en même temps

[2021-10-13 10:53:17][DEBUG] : START NIGHT LIGHT AUTOMATISME with presence 0
[2021-10-13 10:53:17][DEBUG] : AUTOM QUEUE :[{"time":1634115127,"instanceId":"61669e37c018a","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : Autom queue [{"time":1634115127,"instanceId":"61669e37c018a","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : SET AUTOMATISME QUEUE : []
[2021-10-13 10:53:17][DEBUG] : AUTOM QUEUE :[]
[2021-10-13 10:53:17][DEBUG] : SET AUTOMATISME QUEUE : [{"time":1634115197,"instanceId":"61669e7d2ae8e","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : AUTOM QUEUE :[{"time":1634115197,"instanceId":"61669e7d2ae8e","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : SET AUTOMATISME QUEUE : [{"time":1634115197,"instanceId":"61669e7d2ae8e","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0},{"time":1634115197,"instanceId":"61669e7d3eacc","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : start sleep night light with max time: 30
[2021-10-13 10:53:17][DEBUG] : start sleep night light with max time: 780

Je regarde ca

Tu n’aurais pas les logs avant ?
Tu dois avoir des logs avec :

START AUTOMATISME

voici

[2021-10-13 10:53:16][DEBUG] : START AUTOMATISME
[2021-10-13 10:53:16][DEBUG] : time day 1
[2021-10-13 10:53:16][DEBUG] : date day 3
[2021-10-13 10:53:16][DEBUG] : time day 2
[2021-10-13 10:53:16][DEBUG] : date day 3
[2021-10-13 10:53:16][DEBUG] : time day 3
[2021-10-13 10:53:16][DEBUG] : date day 3
[2021-10-13 10:53:16][DEBUG] : start date 08:00
[2021-10-13 10:53:16][DEBUG] : end date 20:00
[2021-10-13 10:53:16][DEBUG] : In time start date before end date
[2021-10-13 10:53:16][DEBUG] : Automatisme type is: night_light
[2021-10-13 10:53:17][DEBUG] : 1 equipments contain this automatisme
[2021-10-13 10:53:17][DEBUG] : 1 equipments are authorized
[2021-10-13 10:53:17][DEBUG] : --------------------------------
[2021-10-13 10:53:17][DEBUG] : START NIGHT LIGHT AUTOMATISME with presence 0
[2021-10-13 10:53:17][DEBUG] : AUTOM QUEUE :[{"time":1634115127,"instanceId":"61669e37c018a","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0},{"time":1634115127,"instanceId":"61669e37d2060","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : Autom queue [{"time":1634115127,"instanceId":"61669e37c018a","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0},{"time":1634115127,"instanceId":"61669e37d2060","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : SET AUTOMATISME QUEUE : [{"time":1634115127,"instanceId":"61669e37c018a","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : Pull values
[2021-10-13 10:53:17][DEBUG] : --------------------------------
[2021-10-13 10:53:17][DEBUG] : START AUTOMATISME
[2021-10-13 10:53:17][DEBUG] : time day 1
[2021-10-13 10:53:17][DEBUG] : date day 3
[2021-10-13 10:53:17][DEBUG] : time day 2
[2021-10-13 10:53:17][DEBUG] : date day 3
[2021-10-13 10:53:17][DEBUG] : time day 3
[2021-10-13 10:53:17][DEBUG] : date day 3
[2021-10-13 10:53:17][DEBUG] : start date 20:00
[2021-10-13 10:53:17][DEBUG] : end date 08:00
[2021-10-13 10:53:17][DEBUG] : In time start date after end date
[2021-10-13 10:53:17][DEBUG] : Automatisme type is: night_light
[2021-10-13 10:53:17][DEBUG] : 1 equipments contain this automatisme
[2021-10-13 10:53:17][DEBUG] : 1 equipments are authorized
[2021-10-13 10:53:17][DEBUG] : --------------------------------
[2021-10-13 10:53:17][DEBUG] : START NIGHT LIGHT AUTOMATISME with presence 0
[2021-10-13 10:53:17][DEBUG] : AUTOM QUEUE :[{"time":1634115127,"instanceId":"61669e37c018a","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : Autom queue [{"time":1634115127,"instanceId":"61669e37c018a","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : SET AUTOMATISME QUEUE : []
[2021-10-13 10:53:17][DEBUG] : AUTOM QUEUE :[]
[2021-10-13 10:53:17][DEBUG] : SET AUTOMATISME QUEUE : [{"time":1634115197,"instanceId":"61669e7d2ae8e","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : AUTOM QUEUE :[{"time":1634115197,"instanceId":"61669e7d2ae8e","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : SET AUTOMATISME QUEUE : [{"time":1634115197,"instanceId":"61669e7d2ae8e","status":1,"idAutomatisme":"2408","uniqueId":2,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Jour","ponderation":0},{"time":1634115197,"instanceId":"61669e7d3eacc","status":1,"idAutomatisme":"2417","uniqueId":3,"automatismeType":"night_light","humanName":null,"name":"Automatisme Prise Nuit","ponderation":0}]
[2021-10-13 10:53:17][DEBUG] : start sleep night light with max time: 30
[2021-10-13 10:53:17][DEBUG] : start sleep night light with max time: 780

Merci :slight_smile:
J’ai pu trouver le problème. Je corrige et je refait une Beta cet aprem ou ce soir.

Bien à toi

1 « J'aime »

Livré en Beta ! En espérant que tout refonctionne de ton côté.

Je saurai demain matin si cela a fonctionné

Hello @hbe
Malheureusement cela n’a pas fonctionné. j’ai programmé tous les jours de la semaine et avec des créneaux qui couvrent toute une journée et pour les 2 automatismes il indique no valid found time

[2021-10-14 06:44:05][DEBUG] : START AUTOMATISME
[2021-10-14 06:44:05][DEBUG] : time day 1
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 2
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 3
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 4
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : start date 08:00
[2021-10-14 06:44:05][DEBUG] : end date 20:00
[2021-10-14 06:44:05][DEBUG] : time day 5
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : Pull values
[2021-10-14 06:44:05][DEBUG] : time day 6
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 7
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : No valide time found
[2021-10-14 06:44:05][DEBUG] : END PULL NOT IN INTERVAL
[2021-10-14 06:44:05][DEBUG] : --------------------------------
[2021-10-14 06:44:05][DEBUG] : START AUTOMATISME
[2021-10-14 06:44:05][DEBUG] : time day 1
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 2
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 3
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 4
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : start date 20:00
[2021-10-14 06:44:05][DEBUG] : end date 08:00
[2021-10-14 06:44:05][DEBUG] : time day 5
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 6
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : time day 7
[2021-10-14 06:44:05][DEBUG] : date day 4
[2021-10-14 06:44:05][DEBUG] : No valide time found
[2021-10-14 06:44:05][DEBUG] : END PULL NOT IN INTERVAL
[2021-10-14 06:44:07][DEBUG] : Pull values

Mince j’y retourne alors.
Je te tiens au courant

1 « J'aime »

Je confirme que plus rien ne se déclenche

J’ai isolé le problème. Je prends mon temps pour faire le test des deux cas et je relance une Beta pour te débloquer.

Cas 1:

[2021-10-14 08:49:47][DEBUG] : START AUTOMATISME
[2021-10-14 08:49:47][DEBUG] : time day 1
[2021-10-14 08:49:47][DEBUG] : date day 4
[2021-10-14 08:49:47][DEBUG] : time day 2
[2021-10-14 08:49:47][DEBUG] : date day 4
[2021-10-14 08:49:47][DEBUG] : time day 3
[2021-10-14 08:49:47][DEBUG] : date day 4
[2021-10-14 08:49:47][DEBUG] : time day 4
[2021-10-14 08:49:47][DEBUG] : date day 4
[2021-10-14 08:49:47][DEBUG] : start date 08:00
[2021-10-14 08:49:47][DEBUG] : end date 20:00
[2021-10-14 08:49:47][DEBUG] : In time start date before end date

Cas 2:

[2021-10-14 08:53:02][DEBUG] : START AUTOMATISME
[2021-10-14 08:53:02][DEBUG] : time day 1
[2021-10-14 08:53:02][DEBUG] : date day 4
[2021-10-14 08:53:02][DEBUG] : time day 2
[2021-10-14 08:53:02][DEBUG] : date day 4
[2021-10-14 08:53:02][DEBUG] : time day 3
[2021-10-14 08:53:02][DEBUG] : date day 4
[2021-10-14 08:53:02][DEBUG] : time day 4
[2021-10-14 08:53:02][DEBUG] : date day 4
[2021-10-14 08:53:02][DEBUG] : start date 17:00
[2021-10-14 08:53:02][DEBUG] : end date 09:00
[2021-10-14 08:53:02][DEBUG] : In time start date after end date

Tout est bon, je regarde pour corriger un autre problème sur l’automatisme modification lumineuse et je lance une béta

1 « J'aime »

Bon j’ai fait pas mal de tests ce qui m’a permit de corriger d’autres problèmes.
N’hésites pas à me faire un retour :slight_smile:

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.